Mesa (master): gallium/u_blitter: don' t use an empty fragment shader if there's a colorbuffer
Marek Olšák
mareko at kemper.freedesktop.org
Tue Aug 19 10:57:08 UTC 2014
Module: Mesa
Branch: master
Commit: a6fcdbf560804ede8e5574d31ca152f9c400198a
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=a6fcdbf560804ede8e5574d31ca152f9c400198a
Author: Marek Olšák <marek.olsak at amd.com>
Date: Mon Aug 18 00:47:01 2014 +0200
gallium/u_blitter: don't use an empty fragment shader if there's a colorbuffer
This is custom code used by some drivers.
Reviewed-by: Roland Scheidegger <sroland at vmware.com>
---
src/gallium/auxiliary/util/u_blitter.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/auxiliary/util/u_blitter.c b/src/gallium/auxiliary/util/u_blitter.c
index 20fbd80..609e02f 100644
--- a/src/gallium/auxiliary/util/u_blitter.c
+++ b/src/gallium/auxiliary/util/u_blitter.c
@@ -1799,7 +1799,7 @@ void util_blitter_custom_depth_stencil(struct blitter_context *blitter,
pipe->bind_blend_state(pipe, cbsurf ? ctx->blend[PIPE_MASK_RGBA] :
ctx->blend[0]);
pipe->bind_depth_stencil_alpha_state(pipe, dsa_stage);
- ctx->bind_fs_state(pipe, ctx->fs_empty);
+ ctx->bind_fs_state(pipe, cbsurf ? ctx->fs_write_one_cbuf : ctx->fs_empty);
pipe->bind_vertex_elements_state(pipe, ctx->velem_state);
/* set a framebuffer state */
More information about the mesa-commit
mailing list