Mesa (master): gallium: prepare framework for supporting AlphaToCoverageDitherControlNV

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Apr 23 08:07:34 UTC 2020


Module: Mesa
Branch: master
Commit: d82f0572180a0d3f4bb87cf49c325439d38ab6e3
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=d82f0572180a0d3f4bb87cf49c325439d38ab6e3

Author: Indrajit Kumar Das <indrajit-kumar.das at amd.com>
Date:   Tue Apr 21 16:15:23 2020 +0530

gallium: prepare framework for supporting AlphaToCoverageDitherControlNV

Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4543>

---

 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];



More information about the mesa-commit mailing list