diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2016-09-07 14:48:12 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2016-09-07 14:48:12 +0100 |
commit | 5735b3ce3cff21f902e42532b324623a5283c2de (patch) | |
tree | 036fa9f084d04494aafbdccf7eb78cb388d9d1bd /src/sna/sna_dri2.c | |
parent | 205146b0fdc8db016e5cfeeae5a6b25df3470ebc (diff) |
sna/dri2: Fix busy engine check
We should be using the kernel's exec-id and not our own index.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_dri2.c')
-rw-r--r-- | src/sna/sna_dri2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/sna_dri2.c b/src/sna/sna_dri2.c index 32832dd5..0c697dda 100644 --- a/src/sna/sna_dri2.c +++ b/src/sna/sna_dri2.c @@ -1139,7 +1139,7 @@ static void sna_dri2_select_mode(struct sna *sna, struct kgem_bo *dst, struct kg * the cost of the query. */ mode = KGEM_RENDER; - if ((busy.busy & 0xffff) == KGEM_BLT) + if ((busy.busy & 0xffff) == I915_EXEC_BLT) mode = KGEM_BLT; kgem_bo_mark_busy(&sna->kgem, busy.handle == src->handle ? src : dst, |