st/xorg: these flushes shouldn't be necessary
authorZack Rusin <zackr@vmware.com>
Wed, 4 Nov 2009 23:08:44 +0000 (18:08 -0500)
committerZack Rusin <zackr@vmware.com>
Wed, 4 Nov 2009 23:10:33 +0000 (18:10 -0500)
performance optimization

src/gallium/state_trackers/xorg/xorg_composite.c

index 1bc3350e8b62393889e2197eb1f243b8e6eaaf84..a8d779b8ad1a12a32c4287a106b74a6dfab2c794 100644 (file)
@@ -290,12 +290,6 @@ bind_samplers(struct exa_context *exa, int op,
    memset(&src_sampler, 0, sizeof(struct pipe_sampler_state));
    memset(&mask_sampler, 0, sizeof(struct pipe_sampler_state));
 
-   if ((pSrc && exa->pipe->is_texture_referenced(exa->pipe, pSrc->tex, 0, 0) &
-        PIPE_REFERENCED_FOR_WRITE) ||
-       (pMask && exa->pipe->is_texture_referenced(exa->pipe, pMask->tex, 0, 0) &
-        PIPE_REFERENCED_FOR_WRITE))
-      exa->pipe->flush(exa->pipe, PIPE_FLUSH_RENDER_CACHE, NULL);
-
    if (pSrcPicture && pSrc) {
       if (exa->has_solid_color) {
          debug_assert(!"solid color with textures");