From 8ef27e8fa9d4b3c854d7d3c20e26ede7d2147753 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Mon, 10 Dec 2012 10:32:07 -0700 Subject: llvmpipe: remove unneeded draw_flush() call MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- src/gallium/drivers/llvmpipe/lp_state_fs.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/gallium/drivers/llvmpipe') diff --git a/src/gallium/drivers/llvmpipe/lp_state_fs.c b/src/gallium/drivers/llvmpipe/lp_state_fs.c index bf59a43f49a..5a8351bff67 100644 --- a/src/gallium/drivers/llvmpipe/lp_state_fs.c +++ b/src/gallium/drivers/llvmpipe/lp_state_fs.c @@ -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, -- cgit v1.2.3