we need to be able to access this for shader rewrites
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9115>
struct zink_shader *gfx_stages[ZINK_SHADER_COUNT];
struct zink_gfx_pipeline_state gfx_pipeline_state;
+ enum pipe_prim_type gfx_prim_mode;
struct hash_table *program_cache;
struct zink_gfx_program *curr_program;
if (drawid_broken != ctx->drawid_broken)
ctx->dirty_shader_stages |= BITFIELD_BIT(PIPE_SHADER_VERTEX);
ctx->gfx_pipeline_state.vertices_per_patch = dinfo->vertices_per_patch;
+ ctx->gfx_prim_mode = dinfo->mode;
struct zink_gfx_program *gfx_program = get_gfx_program(ctx);
if (!gfx_program)
return;