Invalidate a "new" surface before it is bound to a render target view or depth stencil view in order to avoid the unnecessary host side copy of the surface data before it is rendered to. Note that, recycled surface is already invalidated before it is reused.
8a195e2 svga: invalidate new surface before it is bound to a render target view
.../drivers/svga/svga_resource_buffer_upload.c | 5 ++++-
src/gallium/drivers/svga/svga_resource_texture.c | 3 ++-
src/gallium/drivers/svga/svga_resource_texture.h | 9 ++++++++
src/gallium/drivers/svga/svga_screen_cache.c | 5 +++++
src/gallium/drivers/svga/svga_screen_cache.h | 1 +
src/gallium/drivers/svga/svga_surface.c | 22 +++++++++++++++++++-
6 files changed, 42 insertions(+), 3 deletions(-)
Upstream: cgit.freedesktop.org