[igt-dev] [PATCH i-g-t] lib/intel_batchbuffer: Fix typo from src_tiling to dst_tiling

Jeevan B jeevan.b at intel.com
Mon May 16 15:08:24 UTC 2022


fix typo to avoid CRC mismatch for tile-4 tests

Signed-off-by: Jeevan B <jeevan.b at intel.com>
---
 lib/intel_batchbuffer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/intel_batchbuffer.c b/lib/intel_batchbuffer.c
index ebf3c598..8680c9ba 100644
--- a/lib/intel_batchbuffer.c
+++ b/lib/intel_batchbuffer.c
@@ -658,7 +658,7 @@ static uint32_t fast_copy_dword1(unsigned int src_tiling,
 	if (src_tiling == I915_TILING_Yf || src_tiling == I915_TILING_4)
 		/* Repurposed as Tile-4 on DG2 */
 		dword1 |= XY_FAST_COPY_SRC_TILING_Yf;
-	if (dst_tiling == I915_TILING_Yf || src_tiling == I915_TILING_4)
+	if (dst_tiling == I915_TILING_Yf || dst_tiling == I915_TILING_4)
 		/* Repurposed as Tile-4 on DG2 */
 		dword1 |= XY_FAST_COPY_DST_TILING_Yf;
 
-- 
2.36.0



More information about the igt-dev mailing list