etnaviv: allocate TS memory from KMS when resource bind is SCANOUT
authorLucas Stach <l.stach@pengutronix.de>
Wed, 13 Jul 2022 18:48:33 +0000 (20:48 +0200)
committerMarge Bot <emma+marge@anholt.net>
Thu, 3 Nov 2022 20:24:41 +0000 (20:24 +0000)
commit539cc909292b78ea2c9b1148464edec14ff9d8ed
tree580281f2abb2b489e189b36d7e3cd2ee1302c458
parentf1f89b2e988446ef83b3da4fc8a0a657392e99b5
etnaviv: allocate TS memory from KMS when resource bind is SCANOUT

Some display engines are able to resolve fast clear and/or compression
on the fly and need access to the TS buffer to do so. As they might
have restrictions on which memory they can access, allocate the TS
buffer memory from the KMS side when the resource should be SCANOUT
capable.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Tested-by: Guido Günther <agx@sigxcpu.org>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9780>
src/gallium/drivers/etnaviv/etnaviv_resource.c