[Bug 103393] glDispatchComputeGroupSizeARB : gl_GlobalInvocationID != gl_WorkGroupID.x * gl_LocalGroupSizeARB.x + gl_LocalInvocationID.x

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Oct 21 17:32:14 UTC 2017


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

            Bug ID: 103393
           Summary: glDispatchComputeGroupSizeARB : gl_GlobalInvocationID
                    != gl_WorkGroupID.x * gl_LocalGroupSizeARB.x +
                    gl_LocalInvocationID.x
           Product: Mesa
           Version: 17.2
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Drivers/Gallium/radeonsi
          Assignee: dri-devel at lists.freedesktop.org
          Reporter: stephane.chevigny at polymtl.ca
        QA Contact: dri-devel at lists.freedesktop.org

Created attachment 134977
  --> https://bugs.freedesktop.org/attachment.cgi?id=134977&action=edit
Difference between the result of  gl_GlobalInvocationID and gl_WorkGroupID.x *
gl_LocalGroupSizeARB.x + gl_LocalInvocationID.x;

The spec for ARB_compute_variable_group_size in this file
https://www.khronos.org/registry/OpenGL/extensions/ARB/ARB_compute_variable_group_size.txt
state that gl_GlobalInvocationID = gl_WorkGroupID * gl_LocalGroupSizeARB +
gl_LocalInvocationID; but on my computer, arch linux with  Radeon RX 580 Series
(AMD POLARIS10 / DRM 3.18.0 / 4.13.
7-1-ARCH, LLVM 5.0.0) : mesa version 17.2.2,  gl_GlobalInvocationID =
gl_LocalInvocationID ; only. If I replace uint i = gl_GlobalInvocation.x with 
uint i = gl_WorkGroupID.x * gl_LocalGroupSizeARB.x + gl_LocalInvocationID.x 
the output of the compute shader work as expected.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20171021/b1e00d90/attachment-0001.html>


More information about the dri-devel mailing list