mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 04:00:10 +01:00
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:
parent
867a995ce7
commit
3bf60f904b
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue