diff --git a/.pick_status.json b/.pick_status.json index fc94839d5c5..516ff55b434 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -2398,7 +2398,7 @@ "description": "i915g: Initialize the rest of the \"from_nir\" temporary VS struct.", "nominated": true, "nomination_type": 1, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": "2b3fc26da8bed1f70f6631a3fc6c6cd43fe2acc2" }, diff --git a/src/gallium/drivers/i915/i915_state.c b/src/gallium/drivers/i915/i915_state.c index c0c5ce5e648..e473f50a3a5 100644 --- a/src/gallium/drivers/i915/i915_state.c +++ b/src/gallium/drivers/i915/i915_state.c @@ -608,7 +608,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; @@ -619,7 +619,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; }