diff --git a/src/gallium/drivers/i915/i915_state.c b/src/gallium/drivers/i915/i915_state.c index 0546db5b1fe..a6da6eeca7a 100644 --- a/src/gallium/drivers/i915/i915_state.c +++ b/src/gallium/drivers/i915/i915_state.c @@ -611,7 +611,7 @@ i915_create_vs_state(struct pipe_context *pipe, { struct i915_context *i915 = i915_context(pipe); - struct pipe_shader_state from_nir; + struct pipe_shader_state from_nir = { PIPE_SHADER_IR_TGSI }; if (templ->type == PIPE_SHADER_IR_NIR) { nir_shader *s = templ->ir.nir; @@ -622,7 +622,6 @@ i915_create_vs_state(struct pipe_context *pipe, * per-stage, and i915 FS can't do native integers. So, convert to TGSI, * where the draw path *does* support non-native-integers. */ - from_nir.type = PIPE_SHADER_IR_TGSI; from_nir.tokens = nir_to_tgsi(s, pipe->screen); templ = &from_nir; }