mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 02:38:04 +02:00
i965: Enable compute shaders in more cases for OpenGLES 3.1
Previously we were checking the desktop OpenGL ARB_compute_shader requirements, but for OpenGLES 3.1, the requirements are lower. Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Marta Lofstedt <marta.lofstedt@intel.com>
This commit is contained in:
parent
3e8a6e468b
commit
3b5d442661
1 changed files with 4 additions and 1 deletions
|
|
@ -379,7 +379,10 @@ brw_initialize_context_constants(struct brw_context *brw)
|
|||
[MESA_SHADER_GEOMETRY] = brw->gen >= 6,
|
||||
[MESA_SHADER_FRAGMENT] = true,
|
||||
[MESA_SHADER_COMPUTE] =
|
||||
(ctx->Const.MaxComputeWorkGroupSize[0] >= 1024) ||
|
||||
(ctx->API == API_OPENGL_CORE &&
|
||||
ctx->Const.MaxComputeWorkGroupSize[0] >= 1024) ||
|
||||
(ctx->API == API_OPENGLES2 &&
|
||||
ctx->Const.MaxComputeWorkGroupSize[0] >= 128) ||
|
||||
_mesa_extension_override_enables.ARB_compute_shader,
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue