d3d12: Use short circuit in shader key compare; update key hash
authorGiancarlo Devich <gdevich@microsoft.com>
Tue, 14 Mar 2023 18:50:03 +0000 (11:50 -0700)
committerMarge Bot <emma+marge@anholt.net>
Fri, 17 Mar 2023 07:43:08 +0000 (07:43 +0000)
commit9bbf5505f06e4b4b178e7dd47c2e173f0415d695
treeb4166a48958b00c613f8a7c84f8183670304d195
parent32e058017d4be36d9006ab51790cc3d23b15e7d0
d3d12: Use short circuit in shader key compare; update key hash

Move common key compare to the final step; change to short circuit from
memcmp.

Update key hash to treat varying pointers as uint64.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21909>
src/gallium/drivers/d3d12/d3d12_compiler.cpp
src/gallium/drivers/d3d12/d3d12_compiler.h