svga: set rendered_to flag with texture uploaded using TransferFromBuffer command
authorCharmaine Lee <charmainel@vmware.com>
Thu, 29 Sep 2016 23:41:21 +0000 (16:41 -0700)
committerBrian Paul <brianp@vmware.com>
Thu, 3 Nov 2016 20:29:22 +0000 (14:29 -0600)
commit4750c4e5439f5c2689051ac072003cc3a2ff5c1b
treeffbd0d35266e5e3ae80695c589e94ca7c4e20692
parent03e1b7cacdf3b595262e50679a83544549c61b3d
svga: set rendered_to flag with texture uploaded using TransferFromBuffer command

This patch sets the rendered_to flag for the texture subresource that
is uploaded using the TransferFromBuffer command. This is to ensure that
the subresource will be read back or invalidated before it will be
directly mapped to. This makes sure that the content of the GB surface
will not be accidentally overwritten by the device at suspend/resume time.

Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/drivers/svga/svga_resource_texture.c