zink: Initialize primitive types to an invalid value

The memory is zero initialized which corresponds to MESA_PRIM_POINTS.

Fixes: 659c39f ("zink: rework primitive rasterization type logic")
Reviewed-by: Antonino Maniscalco <antonino.maniscalco@collabora.com>
Acked-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25335>
This commit is contained in:
Konstantin Seurer
2023-09-21 19:14:20 +02:00
committed by Marge Bot
parent 867a995ce7
commit 3bf60f904b

View File

@@ -5138,6 +5138,8 @@ zink_context_create(struct pipe_screen *pscreen, void *priv, unsigned flags)
ctx->fb_changed = ctx->rp_changed = true;
ctx->sample_mask_changed = true;
ctx->gfx_pipeline_state.gfx_prim_mode = MESA_PRIM_COUNT;
ctx->gfx_pipeline_state.shader_rast_prim = MESA_PRIM_COUNT;
ctx->gfx_pipeline_state.rast_prim = MESA_PRIM_COUNT;
zink_init_draw_functions(ctx, screen);
zink_init_grid_functions(ctx);