llvmpipe: remove unneeded draw_flush() call
authorBrian Paul <brianp@vmware.com>
Mon, 10 Dec 2012 17:32:07 +0000 (10:32 -0700)
committerBrian Paul <brianp@vmware.com>
Wed, 12 Dec 2012 15:45:45 +0000 (08:45 -0700)
This is redundant since we're calling draw_bind_fragment_shader()
which already does a flush.

v2: the redundant flush in llvmpipe_set_constant_buffer() has
already been removed by commit 3427466e6dbbb8db7c1ecda6b3859ca1cc5827a3

Reviewed-by: José Fonseca <jfonseca@vmware.com>
src/gallium/drivers/llvmpipe/lp_state_fs.c

index bf59a43f49a321d8f5ef1498bc93787075d09a28..5a8351bff678ed54dd42e9739a0c7fd82a8179c9 100644 (file)
@@ -2312,8 +2312,6 @@ llvmpipe_bind_fs_state(struct pipe_context *pipe, void *fs)
    if (llvmpipe->fs == fs)
       return;
 
-   draw_flush(llvmpipe->draw);
-
    llvmpipe->fs = (struct lp_fragment_shader *) fs;
 
    draw_bind_fragment_shader(llvmpipe->draw,