From c8782f3ac7bf024a118d3277cec349de8f05311f Mon Sep 17 00:00:00 2001 From: Connor Abbott Date: Wed, 11 Dec 2024 10:51:42 -0500 Subject: [PATCH] freedreno/fdl: Don't enable r8g8 special case for mutable images The blob seems to always use the R16 pitch align. I don't check the block size, because the blob seems to disable UBWC when setting the MUTABLEEN bit. Part-of: --- src/freedreno/fdl/fd6_layout.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/freedreno/fdl/fd6_layout.c b/src/freedreno/fdl/fd6_layout.c index ab923920daa..5fa1067ff33 100644 --- a/src/freedreno/fdl/fd6_layout.c +++ b/src/freedreno/fdl/fd6_layout.c @@ -19,7 +19,8 @@ static bool is_r8g8(const struct fdl_layout *layout) { return layout->cpp == 2 && - util_format_get_nr_components(layout->format) == 2; + util_format_get_nr_components(layout->format) == 2 && + !layout->is_mutable; } void