Commit 02a38478 authored by Louis-Francis Ratté-Boulianne's avatar Louis-Francis Ratté-Boulianne Committed by Erik Faye-Lund
Browse files

d3d12: Fix provoking vertex when previous draw has GS variant enabled

parent b4a8bc4a
...@@ -402,7 +402,8 @@ get_provoking_vertex(struct d3d12_selection_context *sel_ctx, bool *alternate) ...@@ -402,7 +402,8 @@ get_provoking_vertex(struct d3d12_selection_context *sel_ctx, bool *alternate)
bool flatshade_first = sel_ctx->ctx->gfx_pipeline_state.rast && bool flatshade_first = sel_ctx->ctx->gfx_pipeline_state.rast &&
sel_ctx->ctx->gfx_pipeline_state.rast->base.flatshade_first; sel_ctx->ctx->gfx_pipeline_state.rast->base.flatshade_first;
*alternate = (mode == GL_TRIANGLE_STRIP || mode == GL_TRIANGLE_STRIP_ADJACENCY) && *alternate = (mode == GL_TRIANGLE_STRIP || mode == GL_TRIANGLE_STRIP_ADJACENCY) &&
(!gs || gs->initial->info.gs.vertices_out > u_prim_vertex_count(mode)->min); (!gs || gs->is_gs_variant ||
gs->initial->info.gs.vertices_out > u_prim_vertex_count(mode)->min);
return flatshade_first ? 0 : u_prim_vertex_count(mode)->min - 1; return flatshade_first ? 0 : u_prim_vertex_count(mode)->min - 1;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment