From c5c6e0187fd5d535c304ca3fd62de0f5e636c0c2 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Thu, 26 Jul 2018 22:46:21 -0400 Subject: ac/surface: fix MSAA corruption on Vega due to FMASK tile swizzle a needle in the haystack? Cc: 18.1 Reviewed-by: Bas Nieuwenhuizen --- src/amd/common/ac_surface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/amd') diff --git a/src/amd/common/ac_surface.c b/src/amd/common/ac_surface.c index afdae1971e9..2f4f0f8884f 100644 --- a/src/amd/common/ac_surface.c +++ b/src/amd/common/ac_surface.c @@ -1302,7 +1302,7 @@ static int gfx9_compute_miptree(ADDR_HANDLE addrlib, /* This counter starts from 1 instead of 0. */ xin.surfIndex = p_atomic_inc_return(config->info.fmask_surf_index); xin.flags = in->flags; - xin.swizzleMode = in->swizzleMode; + xin.swizzleMode = fin.swizzleMode; xin.resourceType = in->resourceType; xin.format = in->format; xin.numSamples = in->numSamples; -- cgit v1.2.3