<?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 Re: GLSL compiler rejects valid input program in Graphics</title>
    <link>https://community.intel.com/t5/Graphics/GLSL-compiler-rejects-valid-input-program/m-p/472717#M46263</link>
    <description>&lt;P&gt;I can confirm that with HD5500/v4364 &lt;/P&gt;&lt;P&gt;NVIDIA compiler accepts it (it's sloppier in general)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;vec4 temp = -1.0 * (mat3x4(0.0)*vec3(0.0));</description>
    <pubDate>Thu, 21 Jan 2016 02:20:31 GMT</pubDate>
    <dc:creator>Stefan3D</dc:creator>
    <dc:date>2016-01-21T02:20:31Z</dc:date>
    <item>
      <title>GLSL compiler rejects valid input program</title>
      <link>https://community.intel.com/t5/Graphics/GLSL-compiler-rejects-valid-input-program/m-p/472716#M46262</link>
      <description>&lt;P&gt;I find that the following (valid) piece of GLSL is rejected by then Intel GLSL front-end:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# version 150&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void foo() {&lt;/P&gt;&lt;P&gt;    vec4 temp = -(mat3x4(0.0)*vec3(0.0));&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get this error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR: 0:4: '' : unary '-' not allowed for provided data type&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Interestingly, if I rewrite the code like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# version 150&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void foo() {&lt;/P&gt;&lt;P&gt;    vec4 temp = (mat3x4(0.0)*vec3(0.0));&lt;/P&gt;&lt;P&gt;    temp = -temp;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then it is accepted by the front end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an Intel(R) HD Graphics 520 GPU, and I am running driver version 20.19.15.4326 (18/11/2015).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can others reproduce this, and do you agree that it is a compiler bug?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2016 23:59:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Graphics/GLSL-compiler-rejects-valid-input-program/m-p/472716#M46262</guid>
      <dc:creator>ADona4</dc:creator>
      <dc:date>2016-01-20T23:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: GLSL compiler rejects valid input program</title>
      <link>https://community.intel.com/t5/Graphics/GLSL-compiler-rejects-valid-input-program/m-p/472717#M46263</link>
      <description>&lt;P&gt;I can confirm that with HD5500/v4364 &lt;/P&gt;&lt;P&gt;NVIDIA compiler accepts it (it's sloppier in general)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;vec4 temp = -1.0 * (mat3x4(0.0)*vec3(0.0));</description>
      <pubDate>Thu, 21 Jan 2016 02:20:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Graphics/GLSL-compiler-rejects-valid-input-program/m-p/472717#M46263</guid>
      <dc:creator>Stefan3D</dc:creator>
      <dc:date>2016-01-21T02:20:31Z</dc:date>
    </item>
    <item>
      <title>Re: GLSL compiler rejects valid input program</title>
      <link>https://community.intel.com/t5/Graphics/GLSL-compiler-rejects-valid-input-program/m-p/472718#M46264</link>
      <description>&lt;P&gt;Thanks for confirming that you can reproduce this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even if the NVIDIA compiler is sloppier in general, it seems that the Intel compiler is wrong in this instance, agreed?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2016 09:45:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Graphics/GLSL-compiler-rejects-valid-input-program/m-p/472718#M46264</guid>
      <dc:creator>ADona4</dc:creator>
      <dc:date>2016-01-21T09:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: GLSL compiler rejects valid input program</title>
      <link>https://community.intel.com/t5/Graphics/GLSL-compiler-rejects-valid-input-program/m-p/472719#M46265</link>
      <description>&lt;P&gt;Moved discussion to Intel Developer Zone - Developing Games &amp;amp; Graphics on Intel&lt;/P&gt;&lt;P&gt;[&lt;A href="https://software.intel.com/en-us/forums/developing-games-and-graphics-on-intel/topic/607206"&gt;https://software.intel.com/en-us/forums/developing-games-and-graphics-on-intel/topic/607206&lt;/A&gt; &lt;A href="https://software.intel.com/en-us/forums/developing-games-and-graphics-on-intel/topic/607206"&gt;https://software.intel.com/en-us/forums/developing-games-and-graphics-on-intel/topic/607206&lt;/A&gt;]&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2016 16:32:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Graphics/GLSL-compiler-rejects-valid-input-program/m-p/472719#M46265</guid>
      <dc:creator>Bryce__Intel</dc:creator>
      <dc:date>2016-01-21T16:32:59Z</dc:date>
    </item>
  </channel>
</rss>

