Mesa (master): util: don't set unused blend state
Keith Whitwell
keithw at kemper.freedesktop.org
Mon Apr 20 15:12:27 UTC 2009
Module: Mesa
Branch: master
Commit: c7c76ba561197b15cf9ad9028335fbc8c2c48890
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c7c76ba561197b15cf9ad9028335fbc8c2c48890
Author: Keith Whitwell <keithw at vmware.com>
Date: Fri Apr 17 11:29:39 2009 +0100
util: don't set unused blend state
Try to avoid creating multiple blend atoms.
---
src/gallium/auxiliary/util/u_blit.c | 4 ----
src/gallium/auxiliary/util/u_gen_mipmap.c | 4 ----
2 files changed, 0 insertions(+), 8 deletions(-)
diff --git a/src/gallium/auxiliary/util/u_blit.c b/src/gallium/auxiliary/util/u_blit.c
index 29c3f85..414cf91 100644
--- a/src/gallium/auxiliary/util/u_blit.c
+++ b/src/gallium/auxiliary/util/u_blit.c
@@ -89,10 +89,6 @@ util_create_blit(struct pipe_context *pipe, struct cso_context *cso)
/* disabled blending/masking */
memset(&ctx->blend, 0, sizeof(ctx->blend));
- ctx->blend.rgb_src_factor = PIPE_BLENDFACTOR_ONE;
- ctx->blend.alpha_src_factor = PIPE_BLENDFACTOR_ONE;
- ctx->blend.rgb_dst_factor = PIPE_BLENDFACTOR_ZERO;
- ctx->blend.alpha_dst_factor = PIPE_BLENDFACTOR_ZERO;
ctx->blend.colormask = PIPE_MASK_RGBA;
/* no-op depth/stencil/alpha */
diff --git a/src/gallium/auxiliary/util/u_gen_mipmap.c b/src/gallium/auxiliary/util/u_gen_mipmap.c
index b32ad1c..690412a 100644
--- a/src/gallium/auxiliary/util/u_gen_mipmap.c
+++ b/src/gallium/auxiliary/util/u_gen_mipmap.c
@@ -1278,10 +1278,6 @@ util_create_gen_mipmap(struct pipe_context *pipe,
/* disabled blending/masking */
memset(&ctx->blend, 0, sizeof(ctx->blend));
- ctx->blend.rgb_src_factor = PIPE_BLENDFACTOR_ONE;
- ctx->blend.alpha_src_factor = PIPE_BLENDFACTOR_ONE;
- ctx->blend.rgb_dst_factor = PIPE_BLENDFACTOR_ZERO;
- ctx->blend.alpha_dst_factor = PIPE_BLENDFACTOR_ZERO;
ctx->blend.colormask = PIPE_MASK_RGBA;
/* no-op depth/stencil/alpha */
More information about the mesa-commit
mailing list