mesa: change GL_MAX_COMPUTE_WORK_GROUP_COUNT to UINT

AMD wants to report UINT32_MAX here.

Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16881>
This commit is contained in:
Marek Olšák
2022-06-05 18:34:03 -04:00
parent c1381daab8
commit e76d5c7bc5
+2 -2
View File
@@ -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))