Mesa (main): mesa: change GL_MAX_COMPUTE_WORK_GROUP_COUNT to UINT

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Jun 7 05:19:49 UTC 2022


Module: Mesa
Branch: main
Commit: e76d5c7bc5977c407dafa0b9762481887043633f
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=e76d5c7bc5977c407dafa0b9762481887043633f

Author: Marek Olšák <marek.olsak at amd.com>
Date:   Sun Jun  5 18:34:03 2022 -0400

mesa: change GL_MAX_COMPUTE_WORK_GROUP_COUNT to UINT

AMD wants to report UINT32_MAX here.

Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16881>

---

 src/mesa/main/get.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c
index 1f44de2350f..89b90e6eef7 100644
--- a/src/mesa/main/get.c
+++ b/src/mesa/main/get.c
@@ -2856,8 +2856,8 @@ find_value_indexed(const char *func, GLenum pname, GLuint index, union value *v)
          goto invalid_enum;
       if (index >= 3)
          goto invalid_value;
-      v->value_int = ctx->Const.MaxComputeWorkGroupCount[index];
-      return TYPE_INT;
+      v->value_uint = ctx->Const.MaxComputeWorkGroupCount[index];
+      return TYPE_UINT;
 
    case GL_MAX_COMPUTE_WORK_GROUP_SIZE:
       if (!_mesa_has_compute_shaders(ctx))



More information about the mesa-commit mailing list