iris: Allow shared scanout buffer to be placed in smem as well
authorJosé Roberto de Souza <jose.souza@intel.com>
Thu, 20 Apr 2023 18:52:20 +0000 (11:52 -0700)
committerMarge Bot <emma+marge@anholt.net>
Fri, 28 Apr 2023 14:29:14 +0000 (14:29 +0000)
commitec6d520eb996156da69e0a9a5cf9867b00d29320
treeed0e4408413e25a598b63a6628605547fd76361e
parent8b52c9bab74f9aeee298660821fd826279239df2
iris: Allow shared scanout buffer to be placed in smem as well

i915 and Xe kmd allows scanout to display of prime buffers placed
in smem.

Allowing shared and scanout bos to be placed in smem and lmem allows
the dma buf to work in some cases that only lmem is not enough.

Fixes: c10ff1970461 ("iris: Place scanout buffers only into lmem for discrete GPUs")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8867
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8766
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Tested-by: Tapani Pälli <tapani.palli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22665>
src/gallium/drivers/iris/iris_bufmgr.c