diff options
author | Emil Velikov <[email protected]> | 2017-10-24 11:58:56 +0100 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2017-11-16 14:06:56 +0000 |
commit | f8812931cf165760a81afb2cbc0520e3aca89f6b (patch) | |
tree | f208000e9c69873558c56c2bc431b7785ec4e3fc /src | |
parent | 6614804d1e9848ffd3402e4b23f4c57d39a59b7c (diff) |
i965: use _mesa_is_desktop_gl helper
Use the helper over opencoding the check.
Signed-off-by: Emil Velikov <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_context.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c index 19d5a2e3503..bc032dc5f69 100644 --- a/src/mesa/drivers/dri/i965/brw_context.c +++ b/src/mesa/drivers/dri/i965/brw_context.c @@ -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) || |