nir/opt_load_store_vectorize: Use bit sizes when checking mask compatibility
Without this, it was checking bit size compatibility with bit sizes such
as 96 which is clearly invalid.
No shader-db changes on Ice Lake
Fixes: ce9205c03b
"nir: add a load/store vectorization pass"
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6871>
This commit is contained in:

committed by
Marge Bot

parent
f6667cb0ce
commit
57e7c5f05e
@@ -683,11 +683,11 @@ new_bitsize_acceptable(struct vectorize_ctx *ctx, unsigned new_bit_size,
|
||||
return false;
|
||||
|
||||
unsigned write_mask = nir_intrinsic_write_mask(low->intrin);
|
||||
if (!writemask_representable(write_mask, low_size, new_bit_size))
|
||||
if (!writemask_representable(write_mask, get_bit_size(low), new_bit_size))
|
||||
return false;
|
||||
|
||||
write_mask = nir_intrinsic_write_mask(high->intrin);
|
||||
if (!writemask_representable(write_mask, high_size, new_bit_size))
|
||||
if (!writemask_representable(write_mask, get_bit_size(high), new_bit_size))
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user