[Mesa-dev] [PATCH 2/3] tgsi/scan: fix tgsi_shader_info::reads_z

Nicolai Hähnle nhaehnle at gmail.com
Wed Jan 6 06:35:51 PST 2016


Patches 1 & 2 are

Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>

On 05.01.2016 20:46, Marek Olšák wrote:
> From: Marek Olšák <marek.olsak at amd.com>
>
> This has no users in Mesa.
> ---
>   src/gallium/auxiliary/tgsi/tgsi_scan.c | 5 +++--
>   1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/src/gallium/auxiliary/tgsi/tgsi_scan.c b/src/gallium/auxiliary/tgsi/tgsi_scan.c
> index e3feed9..e3a6fb0 100644
> --- a/src/gallium/auxiliary/tgsi/tgsi_scan.c
> +++ b/src/gallium/auxiliary/tgsi/tgsi_scan.c
> @@ -187,8 +187,9 @@ tgsi_scan_shader(const struct tgsi_token *tokens,
>                     }
>
>                     if (procType == TGSI_PROCESSOR_FRAGMENT &&
> -                      info->reads_position &&
> -                      src->Register.Index == 0 &&
> +		      !src->Register.Indirect &&
> +		      info->input_semantic_name[src->Register.Index] ==
> +		      TGSI_SEMANTIC_POSITION &&
>                         (src->Register.SwizzleX == TGSI_SWIZZLE_Z ||
>                          src->Register.SwizzleY == TGSI_SWIZZLE_Z ||
>                          src->Register.SwizzleZ == TGSI_SWIZZLE_Z ||
>


More information about the mesa-dev mailing list