summaryrefslogtreecommitdiff
path: root/src/sna/sna_blt.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-10-30 09:55:57 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2013-10-30 13:42:44 +0000
commit59531ba31aa479497cb76b67ea972d1cfa6aec79 (patch)
treefcb9ea38b9b2a03137b50aa045115f551f7c7a63 /src/sna/sna_blt.c
parent87655e7df4847542db8da6c8b61006c95b936185 (diff)
sna: Check for wedged after submitting
If we submit prior to an operation, check that we didn't just wedge the GPU. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_blt.c')
-rw-r--r--src/sna/sna_blt.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sna/sna_blt.c b/src/sna/sna_blt.c
index 277f53ec..94486bc8 100644
--- a/src/sna/sna_blt.c
+++ b/src/sna/sna_blt.c
@@ -173,6 +173,8 @@ static bool sna_blt_fill_init(struct sna *sna,
if (!kgem_check_reloc(kgem, 1)) {
_kgem_submit(kgem);
+ if (!kgem_check_bo_fenced(kgem, bo))
+ return false;
_kgem_set_mode(kgem, KGEM_BLT);
}
@@ -2734,6 +2736,8 @@ bool sna_blt_fill_boxes(struct sna *sna, uint8_t alu,
if (!kgem_check_reloc(kgem, 1)) {
_kgem_submit(kgem);
+ if (!kgem_check_bo_fenced(&sna->kgem, bo))
+ return false;
_kgem_set_mode(kgem, KGEM_BLT);
}