All of lore.kernel.org
 help / color / mirror / Atom feed
From: bugzilla-daemon@freedesktop.org
To: dri-devel@lists.freedesktop.org
Subject: [Bug 103393] glDispatchComputeGroupSizeARB : gl_GlobalInvocationID != gl_WorkGroupID.x * gl_LocalGroupSizeARB.x + gl_LocalInvocationID.x
Date: Sat, 21 Oct 2017 17:32:14 +0000	[thread overview]
Message-ID: <bug-103393-502@http.bugs.freedesktop.org/> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 1612 bytes --]

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@lists.freedesktop.org
          Reporter: stephane.chevigny@polymtl.ca
        QA Contact: dri-devel@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.

[-- Attachment #1.2: Type: text/html, Size: 3469 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

             reply	other threads:[~2017-10-21 17:32 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-21 17:32 bugzilla-daemon [this message]
2017-10-21 17:47 ` [Bug 103393] glDispatchComputeGroupSizeARB : gl_GlobalInvocationID.x != gl_WorkGroupID.x * gl_LocalGroupSizeARB.x + gl_LocalInvocationID.x bugzilla-daemon
2017-10-21 17:54 ` bugzilla-daemon
2017-10-21 18:19 ` bugzilla-daemon
2017-10-21 18:23 ` bugzilla-daemon
2017-10-21 18:56 ` bugzilla-daemon
2017-10-21 19:10 ` bugzilla-daemon
2017-10-21 19:26 ` bugzilla-daemon
2017-10-23 12:42 ` bugzilla-daemon
2017-10-24  9:25 ` bugzilla-daemon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-103393-502@http.bugs.freedesktop.org/ \
    --to=bugzilla-daemon@freedesktop.org \
    --cc=dri-devel@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.