tgsi/scan: fix tgsi_shader_info::reads_z
This has no users in Mesa. Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
parent
f3658be108
commit
18ec76730a
|
@ -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 ||
|
||||
|
|
Loading…
Reference in New Issue