From cfba9dd371bdf8031bf2bd77817a7a7976319e61 Mon Sep 17 00:00:00 2001 From: Daniel Vetter Date: Fri, 25 Mar 2011 20:42:57 +0100 Subject: [PATCH] gem_stress: fix blitter_copy on gen4+ Utter fail at copy&pasting. Signed-off-by: Daniel Vetter --- tests/gem_stress.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/gem_stress.c b/tests/gem_stress.c index 751d706..1a31ab3 100644 --- a/tests/gem_stress.c +++ b/tests/gem_stress.c @@ -136,6 +136,7 @@ static void keep_gpu_busy(void) dst_pitch = 4096; cmd_bits = 0; +#if 0 /* busy_buf is untiled */ if (IS_965(devid)) { src_pitch /= 4; cmd_bits |= XY_SRC_COPY_BLT_SRC_TILED; @@ -145,6 +146,7 @@ static void keep_gpu_busy(void) dst_pitch /= 4; cmd_bits |= XY_SRC_COPY_BLT_DST_TILED; } +#endif /* copy lower half to upper half */ BEGIN_BATCH(8); @@ -251,12 +253,12 @@ static void blitter_copyfunc(struct scratch_buf *src, unsigned src_x, unsigned s if (keep_gpu_busy_counter & 1 && !fence_storm) keep_gpu_busy(); - if (IS_965(devid)) { + if (IS_965(devid) && src->tiling) { src_pitch /= 4; cmd_bits |= XY_SRC_COPY_BLT_SRC_TILED; } - if (IS_965(devid)) { + if (IS_965(devid) && dst->tiling) { dst_pitch /= 4; cmd_bits |= XY_SRC_COPY_BLT_DST_TILED; } -- 2.7.4