zink: store and use alu types for ntv defs
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Tue, 9 May 2023 15:26:04 +0000 (11:26 -0400)
committerMarge Bot <emma+marge@anholt.net>
Tue, 23 May 2023 01:02:56 +0000 (01:02 +0000)
commit9f6be8effb43fcd4ce2fd00045bc6244ddf63529
tree6d8b81d470c7b962dbed8bfc9d2f8b5fca2328b6
parent096dcdbd01b0bfb8aac4fab6c72ae449043ff972
zink: store and use alu types for ntv defs

this adds indexing for ssa/reg defs with the accompanying current
type of a given def (inaccurate for objects but whatever), enabling
that type to be used directly in order to avoid bitcasts in some places

this upends the assumption that all stored srcs are uint type

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