mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 04:48:08 +02:00
panfrost: Account for sample count in tib offsets
I don't know if we have tests for MRT + MSAA but that would hit this. Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7653>
This commit is contained in:
parent
f0a767f0e4
commit
76a428d03b
1 changed files with 5 additions and 2 deletions
|
|
@ -557,10 +557,13 @@ panfrost_mfbd_fragment(struct panfrost_batch *batch, bool has_draws)
|
|||
panfrost_mfbd_emit_rt(batch, rt, surf, rt_offset, cb);
|
||||
|
||||
if (surf) {
|
||||
if (MAX2(surf->nr_samples, surf->texture->nr_samples) > 1)
|
||||
unsigned samples = MAX2(surf->nr_samples, surf->texture->nr_samples);
|
||||
|
||||
if (samples > 1)
|
||||
batch->requirements |= PAN_REQ_MSAA;
|
||||
|
||||
rt_offset += pan_bytes_per_pixel_tib(surf->format) * tib_size;
|
||||
rt_offset += pan_bytes_per_pixel_tib(surf->format) * tib_size *
|
||||
MAX2(samples, 1);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue