[Mesa-dev] [PATCH 028/140] amdgpu/addrlib: fix pixel index calculation of thick micro tiling
Marek Olšák
maraeo at gmail.com
Mon Mar 20 22:42:38 UTC 2017
From: Xavi Zhang <xavi.zhang at amd.com>
---
src/amd/addrlib/core/addrlib1.cpp | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/amd/addrlib/core/addrlib1.cpp b/src/amd/addrlib/core/addrlib1.cpp
index 81455f0..0be7bc1 100644
--- a/src/amd/addrlib/core/addrlib1.cpp
+++ b/src/amd/addrlib/core/addrlib1.cpp
@@ -2906,22 +2906,22 @@ ADDR_E_RETURNCODE AddrLib1::ComputeMicroTileEquation(
case 32:
pixelBit[0] = x0;
pixelBit[1] = y0;
pixelBit[2] = x1;
pixelBit[3] = z0;
pixelBit[4] = y1;
pixelBit[5] = z1;
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;
pixelBit[5] = z1;
break;
default:
ADDR_ASSERT_ALWAYS();
break;
}
@@ -3117,22 +3117,22 @@ UINT_32 AddrLib1::ComputePixelIndexWithinMicroTile(
case 32:
pixelBit0 = x0;
pixelBit1 = y0;
pixelBit2 = x1;
pixelBit3 = z0;
pixelBit4 = y1;
pixelBit5 = z1;
break;
case 64:
case 128:
- pixelBit0 = y0;
- pixelBit1 = x0;
+ pixelBit0 = x0;
+ pixelBit1 = y0;
pixelBit2 = z0;
pixelBit3 = x1;
pixelBit4 = y1;
pixelBit5 = z1;
break;
default:
ADDR_ASSERT_ALWAYS();
break;
}
--
2.7.4
More information about the mesa-dev
mailing list