d3d12: Use varying comparison function for TESS stage key compare

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21247>
This commit is contained in:
Giancarlo Devich
2023-02-09 12:34:17 -08:00
committed by Marge Bot
parent 289eb50abf
commit 806f100ad2
+2 -4
View File
@@ -753,14 +753,12 @@ d3d12_compare_shader_keys(const d3d12_shader_key *expect, const d3d12_shader_key
expect->hs.point_mode != have->hs.point_mode ||
expect->hs.spacing != have->hs.spacing ||
expect->hs.patch_vertices_in != have->hs.patch_vertices_in ||
memcmp(&expect->hs.required_patch_outputs, &have->hs.required_patch_outputs,
sizeof(struct d3d12_varying_info)) ||
!d3d12_compare_varying_info(&expect->hs.required_patch_outputs, &have->hs.required_patch_outputs) ||
expect->hs.next_patch_inputs != have->hs.next_patch_inputs)
return false;
} else if (expect->stage == PIPE_SHADER_TESS_EVAL) {
if (expect->ds.tcs_vertices_out != have->ds.tcs_vertices_out ||
memcmp(&expect->ds.required_patch_inputs, &have->ds.required_patch_inputs,
sizeof(struct d3d12_varying_info)) ||
!d3d12_compare_varying_info(&expect->ds.required_patch_inputs, &have->ds.required_patch_inputs) ||
expect->ds.prev_patch_outputs != have ->ds.prev_patch_outputs)
return false;
}