summaryrefslogtreecommitdiffstats
path: root/src/amd
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2018-07-26 22:46:21 -0400
committerMarek Olšák <[email protected]>2018-07-31 22:56:40 -0400
commitc5c6e0187fd5d535c304ca3fd62de0f5e636c0c2 (patch)
tree89e05016d108c456f46d8c6204682a9e7c7628f1 /src/amd
parente6ff5ac4468eb144eb8809997c696009d4a1eaae (diff)
ac/surface: fix MSAA corruption on Vega due to FMASK tile swizzle
a needle in the haystack? Cc: 18.1 <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd')
-rw-r--r--src/amd/common/ac_surface.c2
1 files changed, 1 insertions, 1 deletions
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;