mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 02:28:10 +02:00
i965: use _mesa_is_desktop_gl helper
Use the helper over opencoding the check. Signed-off-by: Emil Velikov <emil.velikov@collabora.com> Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
6614804d1e
commit
f8812931cf
1 changed files with 1 additions and 1 deletions
|
|
@ -345,7 +345,7 @@ brw_initialize_context_constants(struct brw_context *brw)
|
|||
[MESA_SHADER_GEOMETRY] = devinfo->gen >= 6,
|
||||
[MESA_SHADER_FRAGMENT] = true,
|
||||
[MESA_SHADER_COMPUTE] =
|
||||
((ctx->API == API_OPENGL_COMPAT || ctx->API == API_OPENGL_CORE) &&
|
||||
(_mesa_is_desktop_gl(ctx) &&
|
||||
ctx->Const.MaxComputeWorkGroupSize[0] >= 1024) ||
|
||||
(ctx->API == API_OPENGLES2 &&
|
||||
ctx->Const.MaxComputeWorkGroupSize[0] >= 128) ||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue