mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
pan/crc: allow setting a NULL pointer to the CRC validity state
Signed-off-by: Loïc Molinari <loic.molinari@collabora.com>
This commit is contained in:
parent
32229dba83
commit
9960843c13
1 changed files with 2 additions and 1 deletions
|
|
@ -1022,7 +1022,8 @@ pan_fb_color_attachment_should_crc(const struct pan_fb_color_attachment *rt,
|
|||
uint64_t mod;
|
||||
struct pan_image_block_size renderblk_sz;
|
||||
|
||||
if (!rt->view || rt->discard || !pan_image_view_has_crc(rt->view))
|
||||
if (!rt->view || rt->discard || !rt->crc_valid ||
|
||||
!pan_image_view_has_crc(rt->view))
|
||||
return false;
|
||||
|
||||
mod = pan_image_view_get_first_plane(rt->view).image->props.modifier;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue