summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/svga/svga_context.c
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2010-08-15 13:36:02 +0100
committerJosé Fonseca <jfonseca@vmware.com>2010-08-30 13:01:57 +0100
commit5a70db643295e99ca3f821a34abe474d56a6c872 (patch)
treeef8f07998eb0f67ebb98ac89992e8a0b377f23fe /src/gallium/drivers/svga/svga_context.c
parent007bac83312b29061753e625edfd45ccab9ecc9c (diff)
svga: Re-emit bound rendertargets and texture samplers at the beginning of every command buffer.
Only non null resources. To ensure that relocations are emitted for every resource currently referred.
Diffstat (limited to 'src/gallium/drivers/svga/svga_context.c')
-rw-r--r--src/gallium/drivers/svga/svga_context.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/drivers/svga/svga_context.c b/src/gallium/drivers/svga/svga_context.c
index 3b30b9e341..cd3f6b8982 100644
--- a/src/gallium/drivers/svga/svga_context.c
+++ b/src/gallium/drivers/svga/svga_context.c
@@ -214,6 +214,11 @@ void svga_context_flush( struct svga_context *svga,
svga_screen_cache_flush(svgascreen, fence);
+ /* To force the reemission of rendertargets and texture bindings at
+ * the beginning of every command buffer.
+ */
+ svga->dirty |= SVGA_NEW_COMMAND_BUFFER;
+
if (SVGA_DEBUG & DEBUG_SYNC) {
if (fence)
svga->pipe.screen->fence_finish( svga->pipe.screen, fence, 0);