zink: remove pointless test
These are already all the bitsizes there are. No need to test for them. Besides, get_uvec_type already contains an assert for the same condition anyway. Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17676>
This commit is contained in:
parent
8d7ca7783b
commit
02de4a509c
|
@ -1082,10 +1082,7 @@ get_vec_from_bit_size(struct ntv_context *ctx, uint32_t bit_size, uint32_t num_c
|
|||
{
|
||||
if (bit_size == 1)
|
||||
return get_bvec_type(ctx, num_components);
|
||||
if (bit_size == 8 || bit_size == 16 || bit_size == 32 || bit_size == 64)
|
||||
return get_uvec_type(ctx, bit_size, num_components);
|
||||
unreachable("unhandled register bit size");
|
||||
return 0;
|
||||
return get_uvec_type(ctx, bit_size, num_components);
|
||||
}
|
||||
|
||||
static SpvId
|
||||
|
|
Loading…
Reference in New Issue