Mesa (main): util/blitter: remove duplicated set_sample_mask calls
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Jun 10 17:27:40 UTC 2021
Module: Mesa
Branch: main
Commit: e39b6951ccb623e2530e95551bcad25657fb42bc
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e39b6951ccb623e2530e95551bcad25657fb42bc
Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date: Thu Jun 10 05:49:05 2021 -0400
util/blitter: remove duplicated set_sample_mask calls
it doesn't make sense to have both, so just keep the simpler one
no functional changes because this was redundant
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11294>
---
src/gallium/auxiliary/util/u_blitter.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/src/gallium/auxiliary/util/u_blitter.c b/src/gallium/auxiliary/util/u_blitter.c
index 265b6e3f9b3..bb76c63acca 100644
--- a/src/gallium/auxiliary/util/u_blitter.c
+++ b/src/gallium/auxiliary/util/u_blitter.c
@@ -2705,7 +2705,6 @@ void util_blitter_custom_color(struct blitter_context *blitter,
: ctx->blend[PIPE_MASK_RGBA][0]);
pipe->bind_depth_stencil_alpha_state(pipe, ctx->dsa_keep_depth_stencil);
bind_fs_write_one_cbuf(ctx);
- pipe->set_sample_mask(pipe, (1ull << MAX2(1, dstsurf->texture->nr_samples)) - 1);
/* set a framebuffer state */
fb_state.width = dstsurf->width;
@@ -2768,7 +2767,6 @@ void util_blitter_custom_shader(struct blitter_context *blitter,
pipe->bind_blend_state(pipe, ctx->blend[PIPE_MASK_RGBA][0]);
pipe->bind_depth_stencil_alpha_state(pipe, ctx->dsa_keep_depth_stencil);
pipe->bind_fs_state(pipe, custom_fs);
- pipe->set_sample_mask(pipe, (1ull << MAX2(1, dstsurf->texture->nr_samples)) - 1);
/* set a framebuffer state */
fb_state.width = dstsurf->width;
More information about the mesa-commit
mailing list