summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_context.c
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2015-05-05 11:46:56 -0700
committerKenneth Graunke <kenneth@whitecape.org>2015-05-05 11:52:15 -0700
commitd376c3549b2d9c764d92e2c1e46b20e9c04223a4 (patch)
tree5bf1292cf565ffa4a3c77f894dd96471d0c3aae3 /src/mesa/drivers/dri/i965/brw_context.c
parent07b49f126a6b52b3b7dac8e332975d5f6ca9adfe (diff)
downloadexternal_mesa3d-d376c3549b2d9c764d92e2c1e46b20e9c04223a4.zip
external_mesa3d-d376c3549b2d9c764d92e2c1e46b20e9c04223a4.tar.gz
external_mesa3d-d376c3549b2d9c764d92e2c1e46b20e9c04223a4.tar.bz2
i965: Fix missing type in local variable declaration.
Trivial. Fixes the following compiler warning (from GCC 5.1.0): brw_context.c:629:10: warning: type defaults to ‘int’ in declaration of ‘simd_size’ [-Wimplicit-int] Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_context.c')
-rw-r--r--src/mesa/drivers/dri/i965/brw_context.c2
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 30263d0..6c00f6c 100644
--- a/src/mesa/drivers/dri/i965/brw_context.c
+++ b/src/mesa/drivers/dri/i965/brw_context.c
@@ -626,7 +626,7 @@ brw_adjust_cs_context_constants(struct brw_context *brw)
* is not always true. This allows us to run more test cases, and will be
* required based on desktop GL compute shader requirements.
*/
- const simd_size = ctx->API == API_OPENGL_CORE ? 16 : 8;
+ const int simd_size = ctx->API == API_OPENGL_CORE ? 16 : 8;
const uint32_t max_invocations = simd_size * brw->max_cs_threads;
ctx->Const.MaxComputeWorkGroupSize[0] = max_invocations;