The only change in behavior is that RGBX stores now overwrite X, which is
what CB does and it's faster.
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17864>
!(images[i].access & SI_IMAGE_ACCESS_DCC_OFF))
images[i].access |= SI_IMAGE_ACCESS_ALLOW_DCC_STORE;
+ /* 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);
+ 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 */
+ }
+
/* Save the image. */
util_copy_image_view(&saved_image[i], &sctx->images[PIPE_SHADER_COMPUTE].views[i]);
}