From d82f0572180a0d3f4bb87cf49c325439d38ab6e3 Mon Sep 17 00:00:00 2001 From: Indrajit Kumar Das Date: Tue, 21 Apr 2020 15:57:23 +0530 Subject: [PATCH] gallium: prepare framework for supporting AlphaToCoverageDitherControlNV MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Marek Olšák Part-of: --- src/gallium/auxiliary/util/u_screen.c | 1 + src/gallium/include/pipe/p_defines.h | 1 + src/gallium/include/pipe/p_state.h | 1 + 3 files changed, 3 insertions(+) diff --git a/src/gallium/auxiliary/util/u_screen.c b/src/gallium/auxiliary/util/u_screen.c index 2ff5725f34d..b3484beef25 100644 --- a/src/gallium/auxiliary/util/u_screen.c +++ b/src/gallium/auxiliary/util/u_screen.c @@ -428,6 +428,7 @@ u_pipe_screen_get_param_defaults(struct pipe_screen *pscreen, return 512 * 1024; case PIPE_CAP_SYSTEM_SVM: + case PIPE_CAP_ALPHA_TO_COVERAGE_DITHER_CONTROL: return 0; default: diff --git a/src/gallium/include/pipe/p_defines.h b/src/gallium/include/pipe/p_defines.h index 2d21d1d4b43..a3a53735b39 100644 --- a/src/gallium/include/pipe/p_defines.h +++ b/src/gallium/include/pipe/p_defines.h @@ -937,6 +937,7 @@ enum pipe_cap PIPE_CAP_VIEWPORT_SWIZZLE, PIPE_CAP_SYSTEM_SVM, PIPE_CAP_VIEWPORT_MASK, + PIPE_CAP_ALPHA_TO_COVERAGE_DITHER_CONTROL, }; /** diff --git a/src/gallium/include/pipe/p_state.h b/src/gallium/include/pipe/p_state.h index c557ecc1869..2a14b9a4359 100644 --- a/src/gallium/include/pipe/p_state.h +++ b/src/gallium/include/pipe/p_state.h @@ -362,6 +362,7 @@ struct pipe_blend_state unsigned logicop_func:4; /**< PIPE_LOGICOP_x */ unsigned dither:1; unsigned alpha_to_coverage:1; + unsigned alpha_to_coverage_dither:1; unsigned alpha_to_one:1; unsigned max_rt:3; /* index of max rt, Ie. # of cbufs minus 1 */ struct pipe_rt_blend_state rt[PIPE_MAX_COLOR_BUFS];