Fixes:
0482ff31588d5c - radeonsi: don't do image stores with RGBX, L, LA, I, and SRGB formats
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8707
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9176
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23687>
/* Simplify the format according to what image stores support. */
if (images[i].access & PIPE_IMAGE_ACCESS_WRITE) {
images[i].format = util_format_linear(images[i].format); /* SRGB not supported */
- images[i].format = util_format_luminance_to_red(images[i].format);
+ /* Keep L8A8 formats as-is because GFX7 is unable to store into R8A8 for some reason. */
images[i].format = util_format_intensity_to_red(images[i].format);
images[i].format = util_format_rgbx_to_rgba(images[i].format); /* prevent partial writes */
}