mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 13:48:06 +02:00
radeonsi/gfx11: fix ge_cntl programming
gfx11 renamed PRIM_GRP_SIZE to VERTS_PER_SUBGRP but another change was was missed. Update our code based on PAL's UniversalCmdBuffer::CalcGeCntl function (especially useVgtOnchipCntlForTess being false for gfx11). Fixes:25a66477d0("radeonsi/gfx11: register changes") Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20728> (cherry picked from commitf73cdda983)
This commit is contained in:
parent
8d8987577d
commit
518487158a
2 changed files with 3 additions and 8 deletions
|
|
@ -616,7 +616,7 @@
|
|||
"description": "radeonsi/gfx11: fix ge_cntl programming",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "25a66477d0268181121c0436f62b2100b72df068"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1298,13 +1298,8 @@ static void gfx10_emit_ge_cntl(struct si_context *sctx, unsigned num_patches)
|
|||
if (NGG) {
|
||||
if (HAS_TESS) {
|
||||
if (GFX_VERSION >= GFX11) {
|
||||
unsigned prim_grp_size =
|
||||
G_03096C_PRIM_GRP_SIZE_GFX11(si_get_vs_inline(sctx, HAS_TESS, HAS_GS)->current->ge_cntl);
|
||||
|
||||
ge_cntl = S_03096C_PRIMS_PER_SUBGRP(num_patches) |
|
||||
S_03096C_VERTS_PER_SUBGRP(si_get_vs_inline(sctx, HAS_TESS, HAS_GS)->current->ngg.hw_max_esverts) |
|
||||
S_03096C_BREAK_PRIMGRP_AT_EOI(key.u.tess_uses_prim_id) |
|
||||
S_03096C_PRIM_GRP_SIZE_GFX11(prim_grp_size);
|
||||
ge_cntl = si_get_vs_inline(sctx, HAS_TESS, HAS_GS)->current->ge_cntl |
|
||||
S_03096C_BREAK_PRIMGRP_AT_EOI(key.u.tess_uses_prim_id);
|
||||
} else {
|
||||
ge_cntl = S_03096C_PRIM_GRP_SIZE_GFX10(num_patches) |
|
||||
S_03096C_VERT_GRP_SIZE(0) |
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue