mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-08 16:36:14 +00:00
tests: implement snb+ XY_SETUP_CLIP_BLT workaround
Better safe than sorry. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
parent
66b88b615c
commit
7af82bb0e5
@ -102,6 +102,14 @@ int main(int argc, char **argv)
|
||||
OUT_BATCH(pitch);
|
||||
OUT_RELOC_FENCED(bo, I915_GEM_DOMAIN_RENDER, 0, 0);
|
||||
ADVANCE_BATCH();
|
||||
|
||||
if (IS_GEN6(devid) || IS_GEN7(devid)) {
|
||||
BEGIN_BATCH(3);
|
||||
OUT_BATCH(XY_SETUP_CLIP_BLT_CMD);
|
||||
OUT_BATCH(0);
|
||||
OUT_BATCH(0);
|
||||
ADVANCE_BATCH();
|
||||
}
|
||||
}
|
||||
|
||||
printf("waiting\n");
|
||||
|
@ -165,6 +165,14 @@ static void emit_blt(drm_intel_bo *src_bo, uint32_t src_tiling, unsigned src_pit
|
||||
OUT_BATCH(src_pitch);
|
||||
OUT_RELOC_FENCED(src_bo, I915_GEM_DOMAIN_RENDER, 0, 0);
|
||||
ADVANCE_BATCH();
|
||||
|
||||
if (IS_GEN6(devid) || IS_GEN7(devid)) {
|
||||
BEGIN_BATCH(3);
|
||||
OUT_BATCH(XY_SETUP_CLIP_BLT_CMD);
|
||||
OUT_BATCH(0);
|
||||
OUT_BATCH(0);
|
||||
ADVANCE_BATCH();
|
||||
}
|
||||
}
|
||||
|
||||
/* All this gem trashing wastes too much cpu time, so give the gpu something to
|
||||
|
Loading…
x
Reference in New Issue
Block a user