gallium: prepare framework for supporting AlphaToCoverageDitherControlNV
authorIndrajit Kumar Das <indrajit-kumar.das@amd.com>
Tue, 21 Apr 2020 10:27:23 +0000 (15:57 +0530)
committerIndrajit Kumar Das <indrajit-kumar.das@amd.com>
Thu, 23 Apr 2020 06:28:49 +0000 (11:58 +0530)
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4543>

src/gallium/auxiliary/util/u_screen.c
src/gallium/include/pipe/p_defines.h
src/gallium/include/pipe/p_state.h

index 2ff5725f34d3dafb47f6c9124851a5ef92f43021..b3484beef2546c932ae432092b5111645035bb2b 100644 (file)
@@ -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:
index 2d21d1d4b432f7a072f533f6323f30435ec29efb..a3a53735b395cd3d87ef2dc6764f347f99e7d5df 100644 (file)
@@ -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,
 };
 
 /**
index c557ecc186983bfc4f69e5dec9e878b0c4f2c721..2a14b9a43591dc8564f88a2b665777a340f93b68 100644 (file)
@@ -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];