etnaviv: hook-up etc2 patching
authorChristian Gmeiner <christian.gmeiner@gmail.com>
Thu, 28 Feb 2019 06:26:39 +0000 (07:26 +0100)
committerChristian Gmeiner <christian.gmeiner@gmail.com>
Fri, 1 Mar 2019 07:02:17 +0000 (08:02 +0100)
commit5d09325c1c9b1f0c22713c78472040428f7e588b
tree0397dfd0418f56b24261e56619ea61c42bc289ad
parentd8177f623314a025911cc125783c9d63a0cc803e
etnaviv: hook-up etc2 patching

Changes v1 -> v2:
 - Avoid the GPU sampling from the resource that gets mutated by the the
   transfer map by setting DRM_ETNA_PREP_WRITE.

Changes v2 -> v3:
 - make use of likely(..)
 - drop minor optimization regarding rsc->layout == ETNA_LAYOUT_LINEAR
 - better documentation why DRM_ETNA_PREP_WRITE is needed

Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Reviewed-by: Lucas Stach <l.stach@pengutronix.de>
src/gallium/drivers/etnaviv/etnaviv_resource.c
src/gallium/drivers/etnaviv/etnaviv_resource.h
src/gallium/drivers/etnaviv/etnaviv_transfer.c