iris/bufmgr: Handle flat_ccs for BO_ALLOC_ZEROED
authorNanley Chery <nanley.g.chery@intel.com>
Mon, 10 Apr 2023 21:26:37 +0000 (14:26 -0700)
committerMarge Bot <emma+marge@anholt.net>
Mon, 17 Apr 2023 19:16:59 +0000 (19:16 +0000)
commitb2d7386631f44bcdb8ba0c42fef78ae7b3380f14
tree70fc84dfb9ca76cc8640e23f114edd0843c592b3
parent215fbbb6049bf6dd2f1b6fda4ab7b111b6c81436
iris/bufmgr: Handle flat_ccs for BO_ALLOC_ZEROED

We can't map the CCS memory region. So, rely on the kernel's zeroing of
new allocations. This is helpful when creating dmabufs that use
compression.

Cc: mesa-stable
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22487>
src/gallium/drivers/iris/iris_bufmgr.c