Developing Games on Intel Graphics
If you are gaming on graphics integrated in your Intel Processor, this is the place for you! Find answers to your questions or post your issues with PC games
Announcements
The Intel sign-in experience has changed to support enhanced security controls. If you sign in, click here for more information.
467 Discussions

Replacing expression e with (false ? ... : e) causes dramatic change in rendering

Alastair_D_1
Beginner
331 Views

I have a fragment shader for which changing:

            color = vec3(1.0, 0.1, 0.1) * diffuse;

to:

            color = vec3(1.0, 0.1, 0.1) * (false ? mix(targetDepth, time, false) : diffuse);

causes a dramatic change in what is rendered.  However, I would have expected this change to have no effect since (false ? ... : diffuse) should evaluate to diffuse.

To reproduce the issue, rename geexlab.txt (attached) to geexlab.xml and load it in GeeXLab.  The file as is should render something similar to good.png (attached).  This is the expected behaviour of the shader, which originates from here:

http://glslsandbox.com/e#29059

Changing line 99 of geexlab.xml to line 101 should render something similar to bad.png (attached), which is dramatically different.

I am using Iris Graphics 6100, driver version 20.19.15.4352, under Windows 10.

Are others able to reproduce this issue?

Thanks

Ally

 

 

 

0 Kudos
8 Replies
Michael_C_Intel2
Employee
331 Views

Hi Alastair,

I got the ticket filed and let the team know.

-Michael 

Michael_C_Intel2
Employee
331 Views

Hi Alastair,

This issue is fixed and should be available in the next driver release.

-Michael 

Alastair_D_1
Beginner
331 Views

Great stuff, thanks Michael.

Ally

Stefan3D
Honored Contributor II
331 Views

Michael C. (Intel) wrote:

This issue is fixed and should be available in the next driver release.

Driver v4463 is out.

Looks like you forgot to commit the fixes to the Broadwell branch?

Michael_C_Intel2
Employee
331 Views

4463 was released 4/29 before we had a fix for this issue. 

Stefan3D
Honored Contributor II
331 Views

Re-checked with v4474, issue persists

Islam_A_
Beginner
331 Views

Hello Michael,,

this is great stuff...thanks Michael.

Stefan3D
Honored Contributor II
331 Views

Issue still persists with 20.19.15.4501 (8-11-2016)

 

Reply