From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@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 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0570662867==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [IPv6:2610:10:20:722:a800:ff:fe98:4b55]) by gabe.freedesktop.org (Postfix) with ESMTP id 51BE06E110 for ; Sat, 21 Oct 2017 17:32:14 +0000 (UTC) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============0570662867== Content-Type: multipart/alternative; boundary="15086071340.F38cAD0Ec.21089"; charset="UTF-8" --15086071340.F38cAD0Ec.21089 Date: Sat, 21 Oct 2017 17:32:14 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D103393 Bug ID: 103393 Summary: glDispatchComputeGroupSizeARB : gl_GlobalInvocationID !=3D 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=3D134977&action=3Dedit 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 =3D gl_WorkGroupID * gl_LocalGroupSizeARB + gl_LocalInvocationID; but on my computer, arch linux with Radeon RX 580 Se= ries (AMD POLARIS10 / DRM 3.18.0 / 4.13. 7-1-ARCH, LLVM 5.0.0) : mesa version 17.2.2, gl_GlobalInvocationID =3D gl_LocalInvocationID ; only. If I replace uint i =3D gl_GlobalInvocation.x = with=20 uint i =3D gl_WorkGroupID.x * gl_LocalGroupSizeARB.x + gl_LocalInvocationID= .x=20 the output of the compute shader work as expected. --=20 You are receiving this mail because: You are the assignee for the bug.= --15086071340.F38cAD0Ec.21089 Date: Sat, 21 Oct 2017 17:32:14 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated
Bug ID 103393
Summary glDispatchComputeGroupSizeARB : gl_GlobalInvocationID !=3D 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 [details]
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/extensi=
ons/ARB/ARB_compute_variable_group_size.txt
state that gl_GlobalInvocationID =3D gl_WorkGroupID * gl_LocalGroupSizeARB +
gl_LocalInvocationID; but on my computer, arch linux with  Radeon RX 580 Se=
ries
(AMD POLARIS10 / DRM 3.18.0 / 4.13.
7-1-ARCH, LLVM 5.0.0) : mesa version 17.2.2,  gl_GlobalInvocationID =3D
gl_LocalInvocationID ; only. If I replace uint i =3D gl_GlobalInvocation.x =
with=20
uint i =3D gl_WorkGroupID.x * gl_LocalGroupSizeARB.x + gl_LocalInvocationID=
.x=20
the output of the compute shader work as expected.


You are receiving this mail because:
  • You are the assignee for the bug.
= --15086071340.F38cAD0Ec.21089-- --===============0570662867== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0570662867==--