radeonsi: don't allow broken compute image copies into A8R8_UNORM

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16215>
This commit is contained in:
Marek Olšák 2022-04-24 22:19:39 -04:00
parent 52f83dce05
commit 4512b212e7
1 changed files with 4 additions and 0 deletions

View File

@ -885,6 +885,10 @@ struct texture_orig_info {
static bool si_can_use_compute_blit(struct si_context *sctx, enum pipe_format format,
unsigned num_samples, bool is_store, bool has_dcc)
{
/* TODO: This format fails AMD_TEST=imagecopy. */
if (format == PIPE_FORMAT_A8R8_UNORM && is_store)
return false;
if (num_samples > 1)
return false;