Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-By: Timur Kristóf <timur.kristof@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4002>
return false;
switch (low->intrinsic) {
- case nir_intrinsic_load_ubo:
- case nir_intrinsic_load_ssbo:
case nir_intrinsic_store_ssbo:
+ if (low->src[0].ssa->bit_size < 32 || high->src[0].ssa->bit_size < 32)
+ return false;
+ return align % 4 == 0;
+ case nir_intrinsic_load_ssbo:
+ if (low->dest.ssa.bit_size < 32 || high->dest.ssa.bit_size < 32)
+ return false;
+ case nir_intrinsic_load_ubo:
case nir_intrinsic_load_push_constant:
return align % 4 == 0;
case nir_intrinsic_load_deref: