[Mesa-dev] [Bug 106996] Compute shader compiling fails for invalid input layout qualifier used
https://bugs.freedesktop.org/show_bug.cgi?id=106996 Timothy Arceri changed: What|Removed |Added QA Contact|mesa-dev@lists.freedesktop. |intel-3d-bugs@lists.freedes |org |ktop.org Component|Mesa core |glsl-compiler -- You are receiving this mail because: You are the QA Contact for the bug. You are the assignee for the bug.___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev
[Mesa-dev] [Bug 106996] Compute shader compiling fails for invalid input layout qualifier used
https://bugs.freedesktop.org/show_bug.cgi?id=106996 Yunchao He changed: What|Removed |Added CC||yunchao...@intel.com -- You are receiving this mail because: You are the assignee for the bug.___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev
[Mesa-dev] [Bug 106996] Compute shader compiling fails for invalid input layout qualifier used
https://bugs.freedesktop.org/show_bug.cgi?id=106996 Sergii Romantsov changed: What|Removed |Added CC||sergii.romantsov@globallogi ||c.com -- You are receiving this mail because: You are the assignee for the bug.___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev
[Mesa-dev] [Bug 106996] Compute shader compiling fails for invalid input layout qualifier used
https://bugs.freedesktop.org/show_bug.cgi?id=106996 --- Comment #1 from xinghua --- Created attachment 140273 --> https://bugs.freedesktop.org/attachment.cgi?id=140273=edit source code -- You are receiving this mail because: You are the assignee for the bug. You are the QA Contact for the bug.___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev
[Mesa-dev] [Bug 106996] Compute shader compiling fails for invalid input layout qualifier used
https://bugs.freedesktop.org/show_bug.cgi?id=106996 Bug ID: 106996 Summary: Compute shader compiling fails for invalid input layout qualifier used Product: Mesa Version: 17.1 Hardware: Other OS: All Status: NEW Severity: normal Priority: medium Component: Mesa core Assignee: mesa-dev@lists.freedesktop.org Reporter: xinghua@intel.com QA Contact: mesa-dev@lists.freedesktop.org Steps: 1. Attached file is the source code; 2. build the source code, "gcc -o compileshader compileshader.c -lX11 -lepoxy"; 3. run executable file, "./compileshader", mesa explicitly reports "invalid input layout qualifier used", compute shader compiling fails. Notes: 1. I am nearly sure that this issue is not mesa bug. It is possible that my shader is not correct, but I could not find the root cause, so I file the bug to get some help. 2. Compute shader is as below, defines a user-defined function, with image type parameter, if uses "in" key to qualify the parameter, error happens, but if remove "in" and "out" keys, shader compiling successfully. Quotes OpenGL ES GLSL 3.1 spec section 6.1.1, "A function parameter declared with no such qualifier(in, out, inout) means the same thing as specifying in". Here explicitly specifies "in" key, why reports an error. #version 310 es layout(local_size_x=1, local_size_y=1, local_size_z=1) in; layout(r32ui, binding = 0) uniform readonly highp uimage2D uImage_1; layout(r32ui, binding = 1) uniform writeonly highp uimage2D uImage_2; void dataCopy(in readonly highp uimage2D src, out writeonly highp uimage2D dst, ivec2 pos) { uvec4 value = imageLoad(src, pos); imageStore(dst, pos, value); } void main() { dataCopy(uImage_1, uImage_2, ivec2(gl_LocalInvocationID.xy)); } -- You are receiving this mail because: You are the assignee for the bug. You are the QA Contact for the bug.___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev