OSDN Git Service

android: always flush softpipe to support SurfaceFlinger
authorChia-I Wu <olvaffe@gmail.com>
Fri, 1 Oct 2010 20:55:42 +0000 (16:55 -0400)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Fri, 6 Apr 2012 03:30:02 +0000 (11:30 +0800)
Just a hack.  Is this still needed?

src/gallium/drivers/softpipe/sp_flush.c

index a2733e9..f0bfd9a 100644 (file)
@@ -50,7 +50,7 @@ softpipe_flush( struct pipe_context *pipe,
 
    draw_flush(softpipe->draw);
 
-   if (flags & SP_FLUSH_TEXTURE_CACHE) {
+   if (1 || (flags & SP_FLUSH_TEXTURE_CACHE)) {
       for (i = 0; i < softpipe->num_fragment_sampler_views; i++) {
          sp_flush_tex_tile_cache(softpipe->fragment_tex_cache[i]);
       }