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/19422>
break;
}
+ case nir_intrinsic_store_buffer_amd:
+ if (nir_intrinsic_access(instr) & ACCESS_USES_FORMAT_AMD) {
+ unsigned writemask = nir_intrinsic_write_mask(instr);
+
+ /* Make sure the writemask is derived from the component count. */
+ validate_assert(state,
+ writemask ==
+ BITFIELD_MASK(nir_src_num_components(instr->src[0])));
+ }
+ break;
+
default:
break;
}