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:
Erik Faye-Lund 2022-04-13 10:30:28 +02:00 committed by Marge Bot
parent 8d7ca7783b
commit 02de4a509c
1 changed files with 1 additions and 4 deletions

View File

@ -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