[Bug 100274] LunarG Vulkan smoke test fragement shader compiling issue

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sun Mar 19 02:28:41 UTC 2017


https://bugs.freedesktop.org/show_bug.cgi?id=100274

--- Comment #5 from Randy <randy.xu at intel.com> ---
(In reply to Jason Ekstrand from comment #3)
> As I suspected the %color input variable isn't decorated with a location. 
> If you edit the GLSL for both fragment and vertex shaders to make sure it
> had a location on both sides of the interface, that should fix it.

Thanks Jason

The issue can be fixed by adding layout(location = 0) to input variable
"color". We may need emphasize it in spec, i.e. the attribute location should
be set explicitly. It's a little confusing, as the game developer may assume
it's set to 0 implicitly.

diff --git a/LunarGSamples/demos/smoke/Smoke.frag
b/LunarGSamples/demos/smoke/Smoke.frag
index e07a46f..82bee59 100644
--- a/LunarGSamples/demos/smoke/Smoke.frag
+++ b/LunarGSamples/demos/smoke/Smoke.frag
@@ -2,7 +2,7 @@

 precision highp float;

-in vec3 color;
+layout(location = 0) in vec3 color;

 layout(location = 0) out vec4 fragcolor;

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/intel-3d-bugs/attachments/20170319/1d99c4ff/attachment.html>


More information about the intel-3d-bugs mailing list