zink: infer types from load_const instrs to avoid more bitcasts
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Wed, 10 May 2023 12:51:10 +0000 (08:51 -0400)
committerMarge Bot <emma+marge@anholt.net>
Tue, 23 May 2023 01:02:56 +0000 (01:02 +0000)
commit208c31b25fb963ea40977c708837fd8464285255
tree2c655ff13bfb925e212788e4b2ff74db53a4defd
parent9f6be8effb43fcd4ce2fd00045bc6244ddf63529
zink: infer types from load_const instrs to avoid more bitcasts

this walks to uses list for the ssa def to infer a type from one of the
uses to reduce the need to bitcast

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22934>
src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c