radv: do not emit PA_SC_VRS_OVERRIDE_CNTL from the pipeline on GFX11
PA_SC_VRS_OVERRIDE_CNTL is emitted when a framebuffer is bound because it controls the VRS surface enable bit. Though, if a pipeline is bound after the framebuffer is emitted, it can override the state. Remove it completely since VRS for flat shading and RADV_FORCE_VRS are disabled. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20333>
This commit is contained in:

committed by
Marge Bot

parent
c186420b26
commit
d1e724b952
@@ -4657,11 +4657,7 @@ gfx103_pipeline_emit_vrs_state(struct radeon_cmdbuf *ctx_cs,
|
||||
mode = ps->info.ps.can_discard ? V_028064_SC_VRS_COMB_MODE_MIN : V_028064_SC_VRS_COMB_MODE_PASSTHRU;
|
||||
}
|
||||
|
||||
if (pdevice->rad_info.gfx_level >= GFX11) {
|
||||
radeon_set_context_reg(ctx_cs, R_0283D0_PA_SC_VRS_OVERRIDE_CNTL,
|
||||
S_0283D0_VRS_OVERRIDE_RATE_COMBINER_MODE(mode) |
|
||||
S_0283D0_VRS_RATE((rate_x << 2) | rate_y));
|
||||
} else {
|
||||
if (pdevice->rad_info.gfx_level < GFX11) {
|
||||
radeon_set_context_reg(ctx_cs, R_028064_DB_VRS_OVERRIDE_CNTL,
|
||||
S_028064_VRS_OVERRIDE_RATE_COMBINER_MODE(mode) |
|
||||
S_028064_VRS_OVERRIDE_RATE_X(rate_x) |
|
||||
|
Reference in New Issue
Block a user