<?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 compiler complains about comma when there is none in Graphics</title>
    <link>https://community.intel.com/t5/Graphics/GLSL-compiler-complains-about-comma-when-there-is-none/m-p/1111872#M87615</link>
    <description>&lt;P&gt;System Setup Information:&lt;BR /&gt;
	-----------------------------------------&lt;/P&gt;

&lt;P&gt;System Used: &amp;nbsp; Acer Aspire 571G&lt;BR /&gt;
	CPU SKU: &amp;nbsp; i5-5200u&lt;BR /&gt;
	GPU SKU:&amp;nbsp; hd5500&lt;BR /&gt;
	System BIOS Version: 1.32 (latest)&lt;BR /&gt;
	Graphics Driver Version: 20.19.15.4549 (11-10-2016)&lt;BR /&gt;
	GOP/VBIOS Version: 5.5.1025&lt;BR /&gt;
	Operating System: Windows 10&lt;BR /&gt;
	OS Version: build 14986&lt;BR /&gt;
	API: OpenGL&lt;BR /&gt;
	Occurs on non-Intel GPUs?: NO&lt;/P&gt;

&lt;P&gt;Steps to Reproduce:&lt;BR /&gt;
	-------------------------------&lt;BR /&gt;
	1. download attached demo "Quine in one frame"&lt;BR /&gt;
	2. download &lt;A href="http://www.geeks3d.com/geexlab/" target="_blank"&gt;http://www.geeks3d.com/geexlab/&lt;/A&gt;&lt;BR /&gt;
	3. install GeeXLab&lt;BR /&gt;
	4. load XML file&lt;BR /&gt;
	5. check error log&lt;/P&gt;

&lt;P&gt;&lt;BR /&gt;
	Expected Results:&lt;BR /&gt;
	-------------------------------&lt;/P&gt;

&lt;P&gt;Watch Quine demo (at least with NVIDIA GPU, screenshot in ZIP)&lt;/P&gt;

&lt;P&gt;Actual Results:&lt;BR /&gt;
	-------------------------------&lt;/P&gt;

&lt;P&gt;#define a(b)if((x-16)/11+10*y==i){q=b/d;o=q-10*(q/10);}i++;&lt;BR /&gt;
	causes ERROR: 0:35: ',' : syntax error syntax error&lt;/P&gt;

&lt;P&gt;Additional Information:&lt;/P&gt;

&lt;P&gt;I didn't write the demo, just converted it from Shadertoy, credits in XML file&lt;/P&gt;

&lt;P&gt;NB: the latest OpenGL fixes since build 4463 still don't seem to have been added to BDW / Gen8 branch?&lt;/P&gt;</description>
    <pubDate>Mon, 12 Dec 2016 22:51:15 GMT</pubDate>
    <dc:creator>Stefan3D</dc:creator>
    <dc:date>2016-12-12T22:51:15Z</dc:date>
    <item>
      <title>GLSL compiler complains about comma when there is none</title>
      <link>https://community.intel.com/t5/Graphics/GLSL-compiler-complains-about-comma-when-there-is-none/m-p/1111872#M87615</link>
      <description>&lt;P&gt;System Setup Information:&lt;BR /&gt;
	-----------------------------------------&lt;/P&gt;

&lt;P&gt;System Used: &amp;nbsp; Acer Aspire 571G&lt;BR /&gt;
	CPU SKU: &amp;nbsp; i5-5200u&lt;BR /&gt;
	GPU SKU:&amp;nbsp; hd5500&lt;BR /&gt;
	System BIOS Version: 1.32 (latest)&lt;BR /&gt;
	Graphics Driver Version: 20.19.15.4549 (11-10-2016)&lt;BR /&gt;
	GOP/VBIOS Version: 5.5.1025&lt;BR /&gt;
	Operating System: Windows 10&lt;BR /&gt;
	OS Version: build 14986&lt;BR /&gt;
	API: OpenGL&lt;BR /&gt;
	Occurs on non-Intel GPUs?: NO&lt;/P&gt;

&lt;P&gt;Steps to Reproduce:&lt;BR /&gt;
	-------------------------------&lt;BR /&gt;
	1. download attached demo "Quine in one frame"&lt;BR /&gt;
	2. download &lt;A href="http://www.geeks3d.com/geexlab/" target="_blank"&gt;http://www.geeks3d.com/geexlab/&lt;/A&gt;&lt;BR /&gt;
	3. install GeeXLab&lt;BR /&gt;
	4. load XML file&lt;BR /&gt;
	5. check error log&lt;/P&gt;

&lt;P&gt;&lt;BR /&gt;
	Expected Results:&lt;BR /&gt;
	-------------------------------&lt;/P&gt;

&lt;P&gt;Watch Quine demo (at least with NVIDIA GPU, screenshot in ZIP)&lt;/P&gt;

&lt;P&gt;Actual Results:&lt;BR /&gt;
	-------------------------------&lt;/P&gt;

&lt;P&gt;#define a(b)if((x-16)/11+10*y==i){q=b/d;o=q-10*(q/10);}i++;&lt;BR /&gt;
	causes ERROR: 0:35: ',' : syntax error syntax error&lt;/P&gt;

&lt;P&gt;Additional Information:&lt;/P&gt;

&lt;P&gt;I didn't write the demo, just converted it from Shadertoy, credits in XML file&lt;/P&gt;

&lt;P&gt;NB: the latest OpenGL fixes since build 4463 still don't seem to have been added to BDW / Gen8 branch?&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2016 22:51:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Graphics/GLSL-compiler-complains-about-comma-when-there-is-none/m-p/1111872#M87615</guid>
      <dc:creator>Stefan3D</dc:creator>
      <dc:date>2016-12-12T22:51:15Z</dc:date>
    </item>
    <item>
      <title>Hi Stefan,</title>
      <link>https://community.intel.com/t5/Graphics/GLSL-compiler-complains-about-comma-when-there-is-none/m-p/1111873#M87616</link>
      <description>&lt;P&gt;Hi Stefan,&lt;/P&gt;

&lt;P&gt;Your issue is filed and we will investigate.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;It is possible the fixes were not checked in before the next driver release was finalized.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2016 21:37:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Graphics/GLSL-compiler-complains-about-comma-when-there-is-none/m-p/1111873#M87616</guid>
      <dc:creator>Michael_C_Intel2</dc:creator>
      <dc:date>2016-12-14T21:37:11Z</dc:date>
    </item>
    <item>
      <title>Hi Stefan,</title>
      <link>https://community.intel.com/t5/Graphics/GLSL-compiler-complains-about-comma-when-there-is-none/m-p/1111874#M87617</link>
      <description>&lt;P&gt;Hi Stefan,&lt;/P&gt;

&lt;P&gt;The driver team looked into the issue and found no driver bug.&amp;nbsp;&lt;SPAN style="font-size: 1em;"&gt;According to OGL 4.5 spec (&lt;/SPAN&gt;&lt;A href="https://www.opengl.org/registry/doc/GLSLangSpec.4.50.pdf" style="font-size: 1em;"&gt;https://www.opengl.org/registry/doc/GLSLangSpec.4.50.pdf&lt;/A&gt;&lt;SPAN style="font-size: 1em;"&gt;&amp;nbsp;), section 3.3 &amp;nbsp;Preprocessor, the attached shader, where the error occurs, is incorrect. The “Define” macro should have space between identifier and the body, the same as in Cpp standard (Spec says it is related). The error happens, because the parser interprets variable f as a macro function, after which there is a coma which is not expected there. Incorrect defines cause the function ‘mainImage” to be not recognized as function.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;Source to cpp standard: &lt;A href="http://www.cplusplus.com/doc/tutorial/preprocessor/"&gt;http://www.cplusplus.com/doc/tutorial/preprocessor/&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="https://gcc.gnu.org/onlinedocs/cpp/Function-like-Macros.html#Function-like-Macros"&gt;https://gcc.gnu.org/onlinedocs/cpp/Function-like-Macros.html#Function-like-Macros&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="https://gcc.gnu.org/onlinedocs/cpp/Object-like-Macros.html#Object-like-Macros"&gt;https://gcc.gnu.org/onlinedocs/cpp/Object-like-Macros.html#Object-like-Macros&lt;/A&gt; .&amp;nbsp;&lt;/P&gt;

&lt;P&gt;-Michael&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2017 21:25:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Graphics/GLSL-compiler-complains-about-comma-when-there-is-none/m-p/1111874#M87617</guid>
      <dc:creator>Michael_C_Intel2</dc:creator>
      <dc:date>2017-01-06T21:25:43Z</dc:date>
    </item>
    <item>
      <title>Thanks for the infos.</title>
      <link>https://community.intel.com/t5/Graphics/GLSL-compiler-complains-about-comma-when-there-is-none/m-p/1111875#M87618</link>
      <description>&lt;P&gt;Thanks for the infos.&lt;/P&gt;

&lt;P&gt;I'm still puzzled why the &lt;A href="https://www.shadertoy.com/view/Ml3SWj"&gt;original code runs in WebGL&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2017 16:42:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Graphics/GLSL-compiler-complains-about-comma-when-there-is-none/m-p/1111875#M87618</guid>
      <dc:creator>Stefan3D</dc:creator>
      <dc:date>2017-01-11T16:42:00Z</dc:date>
    </item>
  </channel>
</rss>

