From 5a70db643295e99ca3f821a34abe474d56a6c872 Mon Sep 17 00:00:00 2001 From: José Fonseca Date: Sun, 15 Aug 2010 13:36:02 +0100 Subject: 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. --- src/gallium/drivers/svga/svga_context.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/gallium/drivers/svga/svga_context.c') 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); -- cgit v1.2.3