mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 22:20:09 +01:00
radeonsi: disable binning correctly on gfx11.5
Fixes: b44a886b84 - amd/common: add registers for gfx11.5
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27943>
This commit is contained in:
parent
62d360c287
commit
20445f296b
1 changed files with 4 additions and 1 deletions
|
|
@ -393,6 +393,9 @@ static void si_emit_dpbb_disable(struct si_context *sctx)
|
|||
if (sctx->gfx_level >= GFX10) {
|
||||
struct uvec2 bin_size = {};
|
||||
struct uvec2 bin_size_extend = {};
|
||||
unsigned binning_disabled =
|
||||
sctx->gfx_level >= GFX11_5 ? V_028C44_BINNING_DISABLED
|
||||
: V_028C44_DISABLE_BINNING_USE_NEW_SC;
|
||||
|
||||
bin_size.x = 128;
|
||||
bin_size.y = sctx->framebuffer.min_bytes_per_pixel <= 4 ? 128 : 64;
|
||||
|
|
@ -404,7 +407,7 @@ static void si_emit_dpbb_disable(struct si_context *sctx)
|
|||
|
||||
radeon_opt_set_context_reg(sctx, R_028C44_PA_SC_BINNER_CNTL_0,
|
||||
SI_TRACKED_PA_SC_BINNER_CNTL_0,
|
||||
S_028C44_BINNING_MODE(V_028C44_DISABLE_BINNING_USE_NEW_SC) |
|
||||
S_028C44_BINNING_MODE(binning_disabled) |
|
||||
S_028C44_BIN_SIZE_X(bin_size.x == 16) |
|
||||
S_028C44_BIN_SIZE_Y(bin_size.y == 16) |
|
||||
S_028C44_BIN_SIZE_X_EXTEND(bin_size_extend.x) |
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue