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>
This commit is contained in:
Chris Wilson 2016-09-07 14:48:12 +01:00
parent 205146b0fd
commit 5735b3ce3c
1 changed files with 1 additions and 1 deletions

View File

@ -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,