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
492 Discussions

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

Alastair_D_1
Beginner
1,109 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
1,109 Views

Hi Alastair,

I got the ticket filed and let the team know.

-Michael 

0 Kudos
Michael_C_Intel2
Employee
1,109 Views

Hi Alastair,

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

-Michael 

0 Kudos
Alastair_D_1
Beginner
1,109 Views

Great stuff, thanks Michael.

Ally

0 Kudos
Stefan3D
Honored Contributor II
1,109 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?

0 Kudos
Michael_C_Intel2
Employee
1,109 Views

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

0 Kudos
Stefan3D
Honored Contributor II
1,109 Views

Re-checked with v4474, issue persists

0 Kudos
Islam_A_
Beginner
1,109 Views

Hello Michael,,

this is great stuff...thanks Michael.

0 Kudos
Stefan3D
Honored Contributor II
1,109 Views

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

 

0 Kudos
Reply