gallium: prepare framework for supporting AlphaToCoverageDitherControlNV

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4543>
This commit is contained in:
Indrajit Kumar Das 2020-04-21 15:57:23 +05:30
parent 227df2a2ba
commit d82f057218
3 changed files with 3 additions and 0 deletions

View 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:

View 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,
};
/**

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