r600: consolidate PIPE_BIND_SHARED/SCANOUT handling
authorMarek Olšák <marek.olsak@amd.com>
Thu, 15 Mar 2018 17:39:52 +0000 (18:39 +0100)
committerMichel Dänzer <michel@daenzer.net>
Fri, 16 Mar 2018 16:31:28 +0000 (17:31 +0100)
commitf099c3aef1635f05f295969d296375fe9983a53a
treeac5d290061805015bdd92c6208d9d1a8dde9c8fb
parentf89e735719a63d674f12a892341ce86e10d82d82
r600: consolidate PIPE_BIND_SHARED/SCANOUT handling

(Ported from radeonsi commit f70f6baaa3bb0f8b280ac2eaea69bbffaf7de840)

Allows cached BOs to be reused in more cases.

Bugzilla: https://bugs.freedesktop.org/105171
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
src/gallium/drivers/r600/r600_buffer_common.c
src/gallium/drivers/r600/r600_texture.c