mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 13:48:06 +02:00
radeonsi/gfx11: extend DB_Z_INFO.NUM_SAMPLES programming to > GFX11
Reviewed-by: Qiang Yu <yuq825@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22833>
This commit is contained in:
parent
52ca879cdd
commit
2bf839f0ae
1 changed files with 4 additions and 3 deletions
|
|
@ -3512,11 +3512,12 @@ static void si_emit_framebuffer_state(struct si_context *sctx)
|
|||
else
|
||||
radeon_set_context_reg_seq(R_028040_DB_Z_INFO, 2);
|
||||
|
||||
/* Gfx11 only: DB_Z_INFO.NUM_SAMPLES should always match the framebuffer samples.
|
||||
* It affects VRS and occlusion queries if depth and stencil are not bound.
|
||||
/* Gfx11+: DB_Z_INFO.NUM_SAMPLES should match the framebuffer samples if no Z/S is bound.
|
||||
* It determines the sample count for VRS, primitive-ordered pixel shading, and occlusion
|
||||
* queries.
|
||||
*/
|
||||
radeon_emit(S_028040_FORMAT(V_028040_Z_INVALID) | /* DB_Z_INFO */
|
||||
S_028040_NUM_SAMPLES(sctx->gfx_level == GFX11 ? sctx->framebuffer.log_samples : 0));
|
||||
S_028040_NUM_SAMPLES(sctx->gfx_level >= GFX11 ? sctx->framebuffer.log_samples : 0));
|
||||
radeon_emit(S_028044_FORMAT(V_028044_STENCIL_INVALID)); /* DB_STENCIL_INFO */
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue