<?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 GLSL link error when using gl_ClipDistance in Graphics</title>
    <link>https://community.intel.com/t5/Graphics/GLSL-link-error-when-using-gl-ClipDistance/m-p/1131671#M87699</link>
    <description>&lt;PRE class="brush:cpp;"&gt;Hi,&lt;/PRE&gt;

&lt;P&gt;I have the following problem: I write a simple GLSL program with only a vertex shader which writes into gl_ClipDistance:&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;#version 130

uniform vec4 clipPlane;

out float gl_ClipDistance[1];

void main()
{
&amp;nbsp;gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
&amp;nbsp;gl_ClipDistance[0] = dot(gl_ModelViewMatrix * gl_Vertex, clipPlane);

&amp;nbsp;gl_TexCoord[0] = gl_TextureMatrix[0] * gl_MultiTexCoord0;

&amp;nbsp;gl_FrontColor = gl_Color;
&amp;nbsp;gl_BackColor = gl_Color;
}&lt;/PRE&gt;

&lt;P&gt;It compiles without error, but linkage fails with the error "Out of resource error".&lt;/P&gt;

&lt;P&gt;When I remove the line writing to gl_ClipDistance, there is no error any more.&lt;/P&gt;

&lt;P&gt;There is also no error if a fragment shader is part of the program.&lt;/P&gt;

&lt;P&gt;So the link error only occurs when mixing a programmable vertex shader with the fixed functionality for fragments.&lt;/P&gt;

&lt;P&gt;The same error also occurs when using gl_ClipVertex.&lt;/P&gt;

&lt;P&gt;Thanks in advance.&lt;/P&gt;

&lt;P&gt;Edit:&lt;/P&gt;

&lt;P&gt;* Device: Intel HD Graphics 530&lt;/P&gt;

&lt;P&gt;* Driver: 21.20.16.4590&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 27 Sep 2017 07:45:28 GMT</pubDate>
    <dc:creator>Olivier_L_</dc:creator>
    <dc:date>2017-09-27T07:45:28Z</dc:date>
    <item>
      <title>GLSL link error when using gl_ClipDistance</title>
      <link>https://community.intel.com/t5/Graphics/GLSL-link-error-when-using-gl-ClipDistance/m-p/1131671#M87699</link>
      <description>&lt;PRE class="brush:cpp;"&gt;Hi,&lt;/PRE&gt;

&lt;P&gt;I have the following problem: I write a simple GLSL program with only a vertex shader which writes into gl_ClipDistance:&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;#version 130

uniform vec4 clipPlane;

out float gl_ClipDistance[1];

void main()
{
&amp;nbsp;gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
&amp;nbsp;gl_ClipDistance[0] = dot(gl_ModelViewMatrix * gl_Vertex, clipPlane);

&amp;nbsp;gl_TexCoord[0] = gl_TextureMatrix[0] * gl_MultiTexCoord0;

&amp;nbsp;gl_FrontColor = gl_Color;
&amp;nbsp;gl_BackColor = gl_Color;
}&lt;/PRE&gt;

&lt;P&gt;It compiles without error, but linkage fails with the error "Out of resource error".&lt;/P&gt;

&lt;P&gt;When I remove the line writing to gl_ClipDistance, there is no error any more.&lt;/P&gt;

&lt;P&gt;There is also no error if a fragment shader is part of the program.&lt;/P&gt;

&lt;P&gt;So the link error only occurs when mixing a programmable vertex shader with the fixed functionality for fragments.&lt;/P&gt;

&lt;P&gt;The same error also occurs when using gl_ClipVertex.&lt;/P&gt;

&lt;P&gt;Thanks in advance.&lt;/P&gt;

&lt;P&gt;Edit:&lt;/P&gt;

&lt;P&gt;* Device: Intel HD Graphics 530&lt;/P&gt;

&lt;P&gt;* Driver: 21.20.16.4590&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2017 07:45:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Graphics/GLSL-link-error-when-using-gl-ClipDistance/m-p/1131671#M87699</guid>
      <dc:creator>Olivier_L_</dc:creator>
      <dc:date>2017-09-27T07:45:28Z</dc:date>
    </item>
    <item>
      <title>Is it happening with the</title>
      <link>https://community.intel.com/t5/Graphics/GLSL-link-error-when-using-gl-ClipDistance/m-p/1131672#M87700</link>
      <description>&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;Is it happening with the latest driver release?&amp;nbsp;&amp;nbsp;&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;If so then I need the following template filled out so an issue con be properly reported. Also if you have a binary the exhibits this behavior it would be most helpful.&amp;nbsp;&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: (Manufacturer/Model)&lt;BR /&gt;
	CPU SKU: (i3, i5, Pentium, Celeron, etc.)&lt;BR /&gt;
	GPU SKU: (HD4400, HD5100, etc.)&lt;BR /&gt;
	Processor Line: (Y-Series, U-Series, etc.)&lt;BR /&gt;
	System BIOS Version:&lt;BR /&gt;
	CMOS settings:&lt;BR /&gt;
	Graphics Driver Version:&lt;BR /&gt;
	GOP/VBIOS Version:&lt;BR /&gt;
	Operating System:&lt;BR /&gt;
	OS Version:&lt;BR /&gt;
	API:&lt;BR /&gt;
	Occurs on non-Intel GPUs?:&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;Steps to Reproduce:&lt;BR /&gt;
	-------------------------------&lt;BR /&gt;
	1.&lt;BR /&gt;
	2.&lt;BR /&gt;
	3.&lt;BR /&gt;
	4.&lt;BR /&gt;
	5.&lt;BR /&gt;
	6.&lt;BR /&gt;
	7.&lt;BR /&gt;
	8.&lt;BR /&gt;
	9.&lt;BR /&gt;
	10.&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;Expected Results:&lt;BR /&gt;
	-------------------------------&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;Additional Information:&lt;BR /&gt;
	-------------------------------&lt;/P&gt;</description>
      <pubDate>Fri, 18 May 2018 20:59:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Graphics/GLSL-link-error-when-using-gl-ClipDistance/m-p/1131672#M87700</guid>
      <dc:creator>Michael_C_Intel2</dc:creator>
      <dc:date>2018-05-18T20:59:01Z</dc:date>
    </item>
  </channel>
</rss>

