mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 09:28:07 +02:00
radeonsi: check for FMASK correctly in gfx10_get_bin_sizes
so that this code is skipped on gfx11+ Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28846>
This commit is contained in:
parent
1a3c5cf17b
commit
98e976dcdb
1 changed files with 1 additions and 1 deletions
|
|
@ -321,7 +321,7 @@ static void gfx10_get_bin_sizes(struct si_context *sctx, unsigned cb_target_enab
|
|||
const unsigned mmrt = num_fragments == 1 ? 1 : (ps_iter_sample ? num_fragments : 2);
|
||||
|
||||
cColor += tex->surface.bpe * mmrt;
|
||||
if (num_samples >= 2 /* if FMASK is bound */) {
|
||||
if (num_samples >= 2 && tex->surface.fmask_offset) {
|
||||
const unsigned fragmentsLog2 = util_logbase2(num_fragments);
|
||||
const unsigned samplesLog2 = util_logbase2(num_samples);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue