mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
mesa/es3.1: Enable getting MAX_COMPUTE_WORK_GROUP_ values for OpenGL ES 3.1
According to the OpenGL ES 3.1 specification chapter 17, the MAX_COMPUTE_WORK_GROUP_COUNT and MAX_COMPUTE_WORK_GROUP_SIZE is available for glGetIntegeri_v. Signed-off-by: Marta Lofstedt <marta.lofstedt@linux.intel.com> Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
This commit is contained in:
parent
73e5adc4b2
commit
c2a766880d
1 changed files with 2 additions and 2 deletions
|
|
@ -2049,7 +2049,7 @@ find_value_indexed(const char *func, GLenum pname, GLuint index, union value *v)
|
|||
return TYPE_INT;
|
||||
|
||||
case GL_MAX_COMPUTE_WORK_GROUP_COUNT:
|
||||
if (!_mesa_is_desktop_gl(ctx) || !ctx->Extensions.ARB_compute_shader)
|
||||
if (!_mesa_has_compute_shaders(ctx))
|
||||
goto invalid_enum;
|
||||
if (index >= 3)
|
||||
goto invalid_value;
|
||||
|
|
@ -2057,7 +2057,7 @@ find_value_indexed(const char *func, GLenum pname, GLuint index, union value *v)
|
|||
return TYPE_INT;
|
||||
|
||||
case GL_MAX_COMPUTE_WORK_GROUP_SIZE:
|
||||
if (!_mesa_is_desktop_gl(ctx) || !ctx->Extensions.ARB_compute_shader)
|
||||
if (!_mesa_has_compute_shaders(ctx))
|
||||
goto invalid_enum;
|
||||
if (index >= 3)
|
||||
goto invalid_value;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue