summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2018-02-13 14:56:28 -0800
committerJason Ekstrand <[email protected]>2018-02-14 13:16:47 -0800
commit5c9d47d9c6508b0b01bfadfd129e55886a016ed1 (patch)
tree2a04fec52aabe7249ccfa37d568520d817799f21 /src/mesa
parent3b4f432d9bbdf86bb6e0e84c6053959aa3194daa (diff)
i965: Add gl_state_index casts for PATCH_VERTICES_IN
This fixes the build in clang Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105088 Reviewed-by: Tapani Pälli <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/i965/brw_nir_uniforms.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_nir_uniforms.cpp b/src/mesa/drivers/dri/i965/brw_nir_uniforms.cpp
index 10a4ff40e5e..69da83ad364 100644
--- a/src/mesa/drivers/dri/i965/brw_nir_uniforms.cpp
+++ b/src/mesa/drivers/dri/i965/brw_nir_uniforms.cpp
@@ -254,7 +254,8 @@ brw_nir_lower_patch_vertices_in_to_uniform(nir_shader *nir)
gl_state_index16 tokens[STATE_LENGTH] = {
STATE_INTERNAL,
nir->info.stage == MESA_SHADER_TESS_CTRL ?
- STATE_TCS_PATCH_VERTICES_IN : STATE_TES_PATCH_VERTICES_IN,
+ (gl_state_index16)STATE_TCS_PATCH_VERTICES_IN :
+ (gl_state_index16)STATE_TES_PATCH_VERTICES_IN,
};
var->num_state_slots = 1;
var->state_slots =