mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-03 07:48:07 +02:00
radeonsi: make the primitive type constant with tessellation
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18195>
This commit is contained in:
parent
89640f32e0
commit
e19363a44e
1 changed files with 3 additions and 2 deletions
|
|
@ -2222,7 +2222,6 @@ static void si_draw(struct pipe_context *ctx,
|
|||
}
|
||||
}
|
||||
|
||||
enum pipe_prim_type prim = (enum pipe_prim_type)info->mode;
|
||||
unsigned instance_count = info->instance_count;
|
||||
|
||||
/* GFX6-GFX7 treat instance_count==0 as instance_count==1. There is
|
||||
|
|
@ -2239,11 +2238,13 @@ static void si_draw(struct pipe_context *ctx,
|
|||
if (unlikely(!vs ||
|
||||
(!IS_DRAW_VERTEX_STATE && sctx->num_vertex_elements < vs->info.num_vs_inputs) ||
|
||||
(IS_DRAW_VERTEX_STATE && vstate->velems.count < vs->info.num_vs_inputs) ||
|
||||
!sctx->shader.ps.cso || (HAS_TESS != (prim == PIPE_PRIM_PATCHES)))) {
|
||||
!sctx->shader.ps.cso || (HAS_TESS != (info->mode == PIPE_PRIM_PATCHES)))) {
|
||||
assert(0);
|
||||
return;
|
||||
}
|
||||
|
||||
enum pipe_prim_type prim = HAS_TESS ? PIPE_PRIM_PATCHES : (enum pipe_prim_type)info->mode;
|
||||
|
||||
if (GFX_VERSION <= GFX9 && HAS_GS) {
|
||||
/* Determine whether the GS triangle strip adjacency fix should
|
||||
* be applied. Rotate every other triangle if triangle strips with
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue