summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavi Zhang <[email protected]>2015-05-12 04:26:59 -0400
committerMarek Olšák <[email protected]>2017-03-30 14:44:33 +0200
commit120a5d0e42ce7b9fc935a959d3faf10e79c4720e (patch)
tree681812f879ec115aa1e2348ac8ce3efff41baed1
parent199912a9bc7621baa9f1cd185194df133fe338e6 (diff)
amdgpu/addrlib: fix pixel index calculation of thick micro tiling
-rw-r--r--src/amd/addrlib/core/addrlib1.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/amd/addrlib/core/addrlib1.cpp b/src/amd/addrlib/core/addrlib1.cpp
index 81455f0324e..0be7bc143f3 100644
--- a/src/amd/addrlib/core/addrlib1.cpp
+++ b/src/amd/addrlib/core/addrlib1.cpp
@@ -2913,8 +2913,8 @@ ADDR_E_RETURNCODE AddrLib1::ComputeMicroTileEquation(
break;
case 64:
case 128:
- pixelBit[0] = y0;
- pixelBit[1] = x0;
+ pixelBit[0] = x0;
+ pixelBit[1] = y0;
pixelBit[2] = z0;
pixelBit[3] = x1;
pixelBit[4] = y1;
@@ -3124,8 +3124,8 @@ UINT_32 AddrLib1::ComputePixelIndexWithinMicroTile(
break;
case 64:
case 128:
- pixelBit0 = y0;
- pixelBit1 = x0;
+ pixelBit0 = x0;
+ pixelBit1 = y0;
pixelBit2 = z0;
pixelBit3 = x1;
pixelBit4 = y1;