Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Alastair_D_1
Beginner
129 Views

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

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
129 Views

Hi Alastair,

I got the ticket filed and let the team know.

-Michael 

Michael_C_Intel2
Employee
129 Views

Hi Alastair,

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

-Michael 

Alastair_D_1
Beginner
129 Views

Great stuff, thanks Michael.

Ally

Stefan3D
Honored Contributor II
129 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
129 Views

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

Stefan3D
Honored Contributor II
129 Views

Re-checked with v4474, issue persists

Islam_A_
Beginner
129 Views

Hello Michael,,

this is great stuff...thanks Michael.

Stefan3D
Honored Contributor II
129 Views

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

 

Reply