[Mesa-dev] [PATCH 1/3] tgsi/scan: set if a fragment shader writes sample mask
eocallaghan at alterapraxis.com
eocallaghan at alterapraxis.com
Tue Jan 5 22:46:44 PST 2016
This series is,
Reviewed-by: Edward O'Callaghan <eocallaghan at alterapraxis.com>
On 2016-01-06 12:46, Marek Olšák wrote:
> From: Marek Olšák <marek.olsak at amd.com>
>
> This will be used by radeonsi.
> ---
> src/gallium/auxiliary/tgsi/tgsi_scan.c | 2 ++
> src/gallium/auxiliary/tgsi/tgsi_scan.h | 1 +
> 2 files changed, 3 insertions(+)
>
> diff --git a/src/gallium/auxiliary/tgsi/tgsi_scan.c
> b/src/gallium/auxiliary/tgsi/tgsi_scan.c
> index e04f407..e3feed9 100644
> --- a/src/gallium/auxiliary/tgsi/tgsi_scan.c
> +++ b/src/gallium/auxiliary/tgsi/tgsi_scan.c
> @@ -392,6 +392,8 @@ tgsi_scan_shader(const struct tgsi_token *tokens,
> }
> else if (semName == TGSI_SEMANTIC_STENCIL) {
> info->writes_stencil = TRUE;
> + } else if (semName == TGSI_SEMANTIC_SAMPLEMASK) {
> + info->writes_samplemask = TRUE;
> }
> }
>
> diff --git a/src/gallium/auxiliary/tgsi/tgsi_scan.h
> b/src/gallium/auxiliary/tgsi/tgsi_scan.h
> index 7e9a559..a3e4378 100644
> --- a/src/gallium/auxiliary/tgsi/tgsi_scan.h
> +++ b/src/gallium/auxiliary/tgsi/tgsi_scan.h
> @@ -82,6 +82,7 @@ struct tgsi_shader_info
> boolean reads_z; /**< does fragment shader read depth? */
> boolean writes_z; /**< does fragment shader write Z value? */
> boolean writes_stencil; /**< does fragment shader write stencil
> value? */
> + boolean writes_samplemask; /**< does fragment shader write sample
> mask? */
> boolean writes_edgeflag; /**< vertex shader outputs edgeflag */
> boolean uses_kill; /**< KILL or KILL_IF instruction used? */
> boolean uses_persp_center;
More information about the mesa-dev
mailing list