diff options
author | José Fonseca <[email protected]> | 2010-08-15 13:36:02 +0100 |
---|---|---|
committer | José Fonseca <[email protected]> | 2010-08-30 13:01:57 +0100 |
commit | 5a70db643295e99ca3f821a34abe474d56a6c872 (patch) | |
tree | ef8f07998eb0f67ebb98ac89992e8a0b377f23fe /src/gallium/drivers/svga/svga_context.c | |
parent | 007bac83312b29061753e625edfd45ccab9ecc9c (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.c | 5 |
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 3b30b9e341e..cd3f6b89825 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); |