From: Rob Clark Date: Mon, 10 Jun 2019 22:57:43 +0000 (-0700) Subject: freedreno/a6xx: disallow UBWC for z24s8 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=81cc555e9a4337a8103024de32a2e1f325ee6986;p=mesa.git freedreno/a6xx: disallow UBWC for z24s8 This is slightly annoying because it *mostly* works.. but we have some issues to sort out about how to blit z24s8/x24s8/z24x8 with UBWC before we can enable UBWC by default. For now it is a step forward to at least enable it for non-z/s while we figure out how to blit z24s8+UBWC. (The basic issue is that pretending z24s8 is an equivalently sized rgba format for the purpose of blitting falls apart when UBWC is in the picture.) Signed-off-by: Rob Clark Reviewed-by: Kristian H. Kristensen --- diff --git a/src/gallium/drivers/freedreno/a6xx/fd6_resource.c b/src/gallium/drivers/freedreno/a6xx/fd6_resource.c index 33740623bdb..7678e54bc73 100644 --- a/src/gallium/drivers/freedreno/a6xx/fd6_resource.c +++ b/src/gallium/drivers/freedreno/a6xx/fd6_resource.c @@ -194,7 +194,6 @@ ok_ubwc_format(enum a6xx_color_fmt fmt) case RB6_R8G8_SINT: case RB6_R8G8_UINT: case RB6_R8G8_UNORM: - case RB6_X8Z24_UNORM: return true; default: return false;