<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Adding expression after &amp;quot;return&amp;quot; statement causes wrong image to be rendered in Graphics</title>
    <link>https://community.intel.com/t5/Graphics/Adding-expression-after-quot-return-quot-statement-causes-wrong/m-p/1096855#M87467</link>
    <description>&lt;P&gt;The files associated with the bug are here:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://github.com/mc-imperial/shader-compiler-bugs/tree/master/Intel-HD-Graphics-520-Windows/wrong_images/large-v440-1f1265b42fca6aab_inv_variant_37" target="_blank"&gt;https://github.com/mc-imperial/shader-compiler-bugs/tree/master/Intel-HD-Graphics-520-Windows/wrong_images/large-v440-1f1265b42fca6aab_inv_variant_37&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;System Setup Information:&lt;/P&gt;

&lt;P&gt;-----------------------------------------&lt;/P&gt;

&lt;P&gt;System Setup Information:&lt;BR /&gt;
	-----------------------------------------&lt;/P&gt;

&lt;P&gt;System Used: Dell XPS&lt;BR /&gt;
	CPU SKU: i7&lt;BR /&gt;
	GPU SKU: HD 520&lt;BR /&gt;
	Processor Line: U-Series&lt;BR /&gt;
	System BIOS Version: Dell Inc. 1.0.0, 10/09/2015&lt;BR /&gt;
	CMOS settings: I can check on request&lt;BR /&gt;
	Graphics Driver Version: 20.19.15.4501&lt;BR /&gt;
	GOP/VBIOS Version: Intel Video BIOS&lt;BR /&gt;
	Operating System: Windows 10&lt;BR /&gt;
	OS Version: Pro&lt;BR /&gt;
	API: OpenGL&lt;BR /&gt;
	Occurs on non-Intel GPUs?: Haven't tried&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Steps to Reproduce:&lt;BR /&gt;
	-------------------------------&lt;/P&gt;

&lt;P&gt;1. Obtain the latest release of get-image, a simple tool that creates&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; a .png image from a fragment shader (alternatively, use some other&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; method observing the effect of a fragment shader)&lt;/P&gt;

&lt;P&gt;2. From a command prompt, execute:&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp; C:\path\to\get_image\bin\Windows\get_image.exe original.frag&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp; This will create output.png, which should look like original.png&lt;/P&gt;

&lt;P&gt;3. From a command prompt, execute:&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp; C:\path\to\get_image\bin\Windows\get_image.exe variant.frag&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp; This will create output.png, which should look like variant.png&lt;/P&gt;

&lt;P&gt;Expected Results:&lt;BR /&gt;
	-------------------------------&lt;BR /&gt;
	Both shaders should render an image that looks like original.png.&amp;nbsp; This is because the only difference between the .frag files is:&lt;/P&gt;

&lt;P&gt;- There is an expression, 1.0, right after the return statement in&lt;BR /&gt;
	&amp;nbsp; "color_at".&amp;nbsp; This expression is unreachable and side-effect free, so&lt;BR /&gt;
	&amp;nbsp; should not impact on the results of shader execution.&lt;/P&gt;

&lt;P&gt;&lt;BR /&gt;
	Actual Results:&lt;BR /&gt;
	-------------------------------&lt;BR /&gt;
	The shaders render completely different images, which they should not.&lt;/P&gt;

&lt;P&gt;Additional Information:&lt;BR /&gt;
	-------------------------------&lt;BR /&gt;
	N/A&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 23 Nov 2016 20:37:25 GMT</pubDate>
    <dc:creator>Alastair_D_1</dc:creator>
    <dc:date>2016-11-23T20:37:25Z</dc:date>
    <item>
      <title>Adding expression after "return" statement causes wrong image to be rendered</title>
      <link>https://community.intel.com/t5/Graphics/Adding-expression-after-quot-return-quot-statement-causes-wrong/m-p/1096855#M87467</link>
      <description>&lt;P&gt;The files associated with the bug are here:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://github.com/mc-imperial/shader-compiler-bugs/tree/master/Intel-HD-Graphics-520-Windows/wrong_images/large-v440-1f1265b42fca6aab_inv_variant_37" target="_blank"&gt;https://github.com/mc-imperial/shader-compiler-bugs/tree/master/Intel-HD-Graphics-520-Windows/wrong_images/large-v440-1f1265b42fca6aab_inv_variant_37&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;System Setup Information:&lt;/P&gt;

&lt;P&gt;-----------------------------------------&lt;/P&gt;

&lt;P&gt;System Setup Information:&lt;BR /&gt;
	-----------------------------------------&lt;/P&gt;

&lt;P&gt;System Used: Dell XPS&lt;BR /&gt;
	CPU SKU: i7&lt;BR /&gt;
	GPU SKU: HD 520&lt;BR /&gt;
	Processor Line: U-Series&lt;BR /&gt;
	System BIOS Version: Dell Inc. 1.0.0, 10/09/2015&lt;BR /&gt;
	CMOS settings: I can check on request&lt;BR /&gt;
	Graphics Driver Version: 20.19.15.4501&lt;BR /&gt;
	GOP/VBIOS Version: Intel Video BIOS&lt;BR /&gt;
	Operating System: Windows 10&lt;BR /&gt;
	OS Version: Pro&lt;BR /&gt;
	API: OpenGL&lt;BR /&gt;
	Occurs on non-Intel GPUs?: Haven't tried&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Steps to Reproduce:&lt;BR /&gt;
	-------------------------------&lt;/P&gt;

&lt;P&gt;1. Obtain the latest release of get-image, a simple tool that creates&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; a .png image from a fragment shader (alternatively, use some other&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; method observing the effect of a fragment shader)&lt;/P&gt;

&lt;P&gt;2. From a command prompt, execute:&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp; C:\path\to\get_image\bin\Windows\get_image.exe original.frag&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp; This will create output.png, which should look like original.png&lt;/P&gt;

&lt;P&gt;3. From a command prompt, execute:&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp; C:\path\to\get_image\bin\Windows\get_image.exe variant.frag&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp; This will create output.png, which should look like variant.png&lt;/P&gt;

&lt;P&gt;Expected Results:&lt;BR /&gt;
	-------------------------------&lt;BR /&gt;
	Both shaders should render an image that looks like original.png.&amp;nbsp; This is because the only difference between the .frag files is:&lt;/P&gt;

&lt;P&gt;- There is an expression, 1.0, right after the return statement in&lt;BR /&gt;
	&amp;nbsp; "color_at".&amp;nbsp; This expression is unreachable and side-effect free, so&lt;BR /&gt;
	&amp;nbsp; should not impact on the results of shader execution.&lt;/P&gt;

&lt;P&gt;&lt;BR /&gt;
	Actual Results:&lt;BR /&gt;
	-------------------------------&lt;BR /&gt;
	The shaders render completely different images, which they should not.&lt;/P&gt;

&lt;P&gt;Additional Information:&lt;BR /&gt;
	-------------------------------&lt;BR /&gt;
	N/A&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2016 20:37:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Graphics/Adding-expression-after-quot-return-quot-statement-causes-wrong/m-p/1096855#M87467</guid>
      <dc:creator>Alastair_D_1</dc:creator>
      <dc:date>2016-11-23T20:37:25Z</dc:date>
    </item>
    <item>
      <title>Hi Alastair,</title>
      <link>https://community.intel.com/t5/Graphics/Adding-expression-after-quot-return-quot-statement-causes-wrong/m-p/1096856#M87468</link>
      <description>&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;Hi Alastair,&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;Can you see if the issue reproduces on this new driver?&amp;nbsp;&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;&lt;A href="https://downloadcenter.intel.com/download/26404/Intel-Graphics-Driver-15-45-"&gt;https://downloadcenter.intel.com/download/26404/Intel-Graphics-Driver-15-45-&lt;/A&gt;&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;-Michael&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2016 18:33:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Graphics/Adding-expression-after-quot-return-quot-statement-causes-wrong/m-p/1096856#M87468</guid>
      <dc:creator>Michael_C_Intel2</dc:creator>
      <dc:date>2016-11-29T18:33:13Z</dc:date>
    </item>
    <item>
      <title>Hi Michael</title>
      <link>https://community.intel.com/t5/Graphics/Adding-expression-after-quot-return-quot-statement-causes-wrong/m-p/1096857#M87469</link>
      <description>&lt;P&gt;Hi Michael&lt;/P&gt;

&lt;P&gt;This one seems to be fixed with the new driver - great.&lt;/P&gt;

&lt;P&gt;Cheers&lt;/P&gt;

&lt;P&gt;Ally&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2016 20:54:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Graphics/Adding-expression-after-quot-return-quot-statement-causes-wrong/m-p/1096857#M87469</guid>
      <dc:creator>Alastair_D_1</dc:creator>
      <dc:date>2016-12-05T20:54:40Z</dc:date>
    </item>
    <item>
      <title>Awesome! Glad to hear. </title>
      <link>https://community.intel.com/t5/Graphics/Adding-expression-after-quot-return-quot-statement-causes-wrong/m-p/1096858#M87470</link>
      <description>&lt;P&gt;Awesome! Glad to hear.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;-Michael&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2016 22:56:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Graphics/Adding-expression-after-quot-return-quot-statement-causes-wrong/m-p/1096858#M87470</guid>
      <dc:creator>Michael_C_Intel2</dc:creator>
      <dc:date>2016-12-06T22:56:32Z</dc:date>
    </item>
  </channel>
</rss>

