<?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 I came here to report in Graphics</title>
    <link>https://community.intel.com/t5/Graphics/GLSL-linker-crash-with-sampler2DShadow-array/m-p/1045810#M87222</link>
    <description>&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;I came here to report something very similar. Working on a Blender bug report&amp;nbsp;&lt;A href="https://developer.blender.org/T49089"&gt;https://developer.blender.org/T49089&lt;/A&gt;. &lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;Original reporter is using HD 4600.&amp;nbsp;&lt;/SPAN&gt;Below is my system info, after reproducing the crash.&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;Problem seen when viewing a particular test file. Shaders involved are rather big... generated code from Blender's nodal material system. I'll look for any&amp;nbsp;sampler2DShadow arrays &amp;amp; report back.&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;System Setup Information:&lt;BR /&gt;
	-----------------------------------------&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;System Used: Asus Z87-Plus&lt;BR /&gt;
	CPU SKU: i5-4670K&lt;BR /&gt;
	GPU SKU: HD 4600&lt;BR /&gt;
	System BIOS Version: 2170 PC 14.34 03/07/2013&lt;BR /&gt;
	Graphics Driver Version: 10.18.15.4279 WHQL / Win 10 64&lt;BR /&gt;
	Operating System: Windows&lt;BR /&gt;
	OS Version: 10&lt;BR /&gt;
	API: OpenGL&lt;BR /&gt;
	Occurs on non-Intel GPUs?: no&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;&amp;nbsp;&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;&lt;SPAN style="line-height: 1.5;"&gt;Expected Results:&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;&lt;SPAN style="line-height: 1.5;"&gt;-------------------------------&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;glLinkProgram should 1) succeed or 2) fail &amp;amp; report any problems if given bad input.&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;&amp;nbsp;&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;Actual Results:&lt;BR /&gt;
	-------------------------------&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;Crash inside glLinkProgram.&amp;nbsp;&lt;SPAN style="color: rgb(0, 0, 0); font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Segoe UI Web Regular&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;, Lato, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 19.63px;"&gt;The vertex &amp;amp; fragment shaders compiled successfully with nothing in their info logs.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;&amp;nbsp;&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;Additional Information:&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;-------------------------------&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;Tested with a debug context, debug logging enabled. No errors were reported prior to crash.&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;Shaders are GLSL #version 150 &amp;nbsp;compatibility. Context is GL 4.3 compatibility profile.&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;Test file exposes a totally different issue on AMD hardware, nothing to do with shader compilation or linking.&lt;/P&gt;</description>
    <pubDate>Tue, 16 Aug 2016 05:43:37 GMT</pubDate>
    <dc:creator>invisible-cow</dc:creator>
    <dc:date>2016-08-16T05:43:37Z</dc:date>
    <item>
      <title>GLSL linker crash with sampler2DShadow array</title>
      <link>https://community.intel.com/t5/Graphics/GLSL-linker-crash-with-sampler2DShadow-array/m-p/1045808#M87220</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px; line-height: 1.5;"&gt;System Setup Information:&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;-----------------------------------------&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;System Used: Microsoft Surface Pro 3&lt;BR /&gt;
	CPU SKU: i5&lt;BR /&gt;
	GPU SKU: HD4400&lt;BR /&gt;
	Processor Line: ?&lt;BR /&gt;
	System BIOS Version: ?&lt;BR /&gt;
	CMOS settings: ?&lt;BR /&gt;
	Graphics Driver Version:&amp;nbsp;10.18.14.4264&lt;BR /&gt;
	GOP/VBIOS Version: ?&lt;BR /&gt;
	Operating System: Windows&lt;BR /&gt;
	OS Version: 8.1&lt;BR /&gt;
	API: OpenGL&lt;BR /&gt;
	Occurs on non-Intel GPUs?: No&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;Steps to Reproduce:&lt;BR /&gt;
	-------------------------------&lt;BR /&gt;
	1. Compile &amp;amp; link the following vertex &amp;amp; fragment shaders (also can be found here ;&amp;nbsp;https://gist.github.com/nicomgd/08edf6a7741500997414)&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;shader.frag
#version 150

// UNCOMMENT the following line to crash the linker
// Crash happens on driver 10.18.14.4264 on Windows 8.1 x64, on Intel HD 4400
#define CRASH_DRIVER_PLEASE

in vec4 var_shadowTexCoords;
uniform sampler2DShadow py_shadowMaps[ 1 ];

out vec4 fragColor;

#ifdef CRASH_DRIVER_PLEASE

float _eval_shadow( sampler2DShadow shadowMap, vec4 shadowTexCoord )
{
  return textureProj( shadowMap, shadowTexCoord );
}

#else

#define _eval_shadow(a, b) textureProj(a, b)

#endif

void main(void)
{
    float shadow_factor = _eval_shadow( py_shadowMaps[0], var_shadowTexCoords );
    fragColor = vec4(shadow_factor);
}


shader.vert
#version 150

out vec4 var_shadowTexCoords;

void init_shadows_es( vec4 someVertex )
{
  var_shadowTexCoords = someVertex;
}

in vec4 mg_vertex;

void main(void)
{
  init_shadows_es(mg_vertex);
  gl_Position = mg_vertex;
}&lt;/PRE&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;&lt;SPAN style="line-height: 1.5;"&gt;Expected Results:&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;-------------------------------&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;Shaders compile and link.&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;Actual Results:&lt;BR /&gt;
	-------------------------------&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;Shaders compile, and the call to glLinkProgram crashes the application.&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;Additional Information:&lt;BR /&gt;
	-------------------------------&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;The code posted above is a stripped down version of a bigger shader.&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;My understanding is that passing an element of a sampler2DShadow array as an argument to a function causes the crash. If the uniform is changed to become a simple sampler2DShadow value, the crash goes away, idem if the functions are replaced by macros.&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;FWIW the problem does not occur on the latest avail. driver for HD4000.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Sep 2015 20:10:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Graphics/GLSL-linker-crash-with-sampler2DShadow-array/m-p/1045808#M87220</guid>
      <dc:creator>Nicolas_L_1</dc:creator>
      <dc:date>2015-09-24T20:10:06Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/Graphics/GLSL-linker-crash-with-sampler2DShadow-array/m-p/1045809#M87221</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Thanks for filling out the information. I have will get an internal ticket going and talk to the driver team about it.&lt;/P&gt;

&lt;P&gt;-Michael&lt;/P&gt;</description>
      <pubDate>Fri, 25 Sep 2015 15:12:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Graphics/GLSL-linker-crash-with-sampler2DShadow-array/m-p/1045809#M87221</guid>
      <dc:creator>Michael_C_Intel2</dc:creator>
      <dc:date>2015-09-25T15:12:48Z</dc:date>
    </item>
    <item>
      <title>I came here to report</title>
      <link>https://community.intel.com/t5/Graphics/GLSL-linker-crash-with-sampler2DShadow-array/m-p/1045810#M87222</link>
      <description>&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;I came here to report something very similar. Working on a Blender bug report&amp;nbsp;&lt;A href="https://developer.blender.org/T49089"&gt;https://developer.blender.org/T49089&lt;/A&gt;. &lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;Original reporter is using HD 4600.&amp;nbsp;&lt;/SPAN&gt;Below is my system info, after reproducing the crash.&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;Problem seen when viewing a particular test file. Shaders involved are rather big... generated code from Blender's nodal material system. I'll look for any&amp;nbsp;sampler2DShadow arrays &amp;amp; report back.&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;System Setup Information:&lt;BR /&gt;
	-----------------------------------------&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;System Used: Asus Z87-Plus&lt;BR /&gt;
	CPU SKU: i5-4670K&lt;BR /&gt;
	GPU SKU: HD 4600&lt;BR /&gt;
	System BIOS Version: 2170 PC 14.34 03/07/2013&lt;BR /&gt;
	Graphics Driver Version: 10.18.15.4279 WHQL / Win 10 64&lt;BR /&gt;
	Operating System: Windows&lt;BR /&gt;
	OS Version: 10&lt;BR /&gt;
	API: OpenGL&lt;BR /&gt;
	Occurs on non-Intel GPUs?: no&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;&amp;nbsp;&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;&lt;SPAN style="line-height: 1.5;"&gt;Expected Results:&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;&lt;SPAN style="line-height: 1.5;"&gt;-------------------------------&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;glLinkProgram should 1) succeed or 2) fail &amp;amp; report any problems if given bad input.&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;&amp;nbsp;&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;Actual Results:&lt;BR /&gt;
	-------------------------------&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;Crash inside glLinkProgram.&amp;nbsp;&lt;SPAN style="color: rgb(0, 0, 0); font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Segoe UI Web Regular&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;, Lato, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 19.63px;"&gt;The vertex &amp;amp; fragment shaders compiled successfully with nothing in their info logs.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;&amp;nbsp;&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;Additional Information:&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;-------------------------------&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;Tested with a debug context, debug logging enabled. No errors were reported prior to crash.&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;Shaders are GLSL #version 150 &amp;nbsp;compatibility. Context is GL 4.3 compatibility profile.&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;Test file exposes a totally different issue on AMD hardware, nothing to do with shader compilation or linking.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2016 05:43:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Graphics/GLSL-linker-crash-with-sampler2DShadow-array/m-p/1045810#M87222</guid>
      <dc:creator>invisible-cow</dc:creator>
      <dc:date>2016-08-16T05:43:37Z</dc:date>
    </item>
  </channel>
</rss>

