mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 06:58:05 +02:00
pan/crc: Disallow CRC on sparse AFBC images
AFBC-P images are read only. Signed-off-by: Loïc Molinari <loic.molinari@collabora.com>
This commit is contained in:
parent
dbd3f9b6ad
commit
8c7adaf1ea
1 changed files with 4 additions and 0 deletions
|
|
@ -107,6 +107,10 @@ pan_fb_color_attachment_should_crc(const struct pan_fb_color_attachment *rt,
|
|||
if (!drm_is_afbc(mod))
|
||||
return true;
|
||||
|
||||
/* AFBC-P images are read only. */
|
||||
if (!(mod & AFBC_FORMAT_MOD_SPARSE))
|
||||
return false;
|
||||
|
||||
/* AFBC render block size must fit in a single pass. */
|
||||
renderblk_sz = pan_afbc_renderblock_size(mod);
|
||||
if (tile_size < renderblk_sz.width * renderblk_sz.height)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue