brw: Use nir_combined_align in brw_nir_should_vectorize_mem
Better than open-coding this. Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32315>
This commit is contained in:
committed by
Marge Bot
parent
8c795af0b8
commit
da93b13f8b
@@ -1447,11 +1447,7 @@ brw_nir_should_vectorize_mem(unsigned align_mul, unsigned align_offset,
|
||||
}
|
||||
|
||||
|
||||
uint32_t align;
|
||||
if (align_offset)
|
||||
align = 1 << (ffs(align_offset) - 1);
|
||||
else
|
||||
align = align_mul;
|
||||
const uint32_t align = nir_combined_align(align_mul, align_offset);
|
||||
|
||||
if (align < bit_size / 8)
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user