diff options
author | Marek Olšák <[email protected]> | 2016-01-02 17:28:19 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2016-01-07 18:26:05 +0100 |
commit | 18ec76730a75b6fbc2783d6a84a844cb038456ff (patch) | |
tree | 30364a1e9317020909a3eaf38521111fe3b45762 | |
parent | f3658be108aa4637aec44d544164d772774ae165 (diff) |
tgsi/scan: fix tgsi_shader_info::reads_z
This has no users in Mesa.
Reviewed-by: Nicolai Hähnle <[email protected]>
-rw-r--r-- | src/gallium/auxiliary/tgsi/tgsi_scan.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_scan.c b/src/gallium/auxiliary/tgsi/tgsi_scan.c index e3feed9aa98..e3a6fb0437c 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 || |