This fixes the build in clang
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105088
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
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 =