nouveau: set imported buffers to what the kernel gives us
authorDave Airlie <airlied@gmail.com>
Wed, 10 Jun 2015 03:26:56 +0000 (13:26 +1000)
committerDave Airlie <airlied@gmail.com>
Wed, 10 Jun 2015 04:10:01 +0000 (14:10 +1000)
commitc6877c9e5983287a0741b26a358b7d744aebe232
treef2d10728f83fb0609d3eb0a8ba847d1e16a35023
parent9dca3beb62e894bbd720c5eecb47c0fd2c6132f9
nouveau: set imported buffers to what the kernel gives us

When we import a dma-buf fd from another driver the kernel
gives us the right info, and this trashes it.

Convert the kernel bo flags into the domain flags.

This helps getting reverse prime and glamor working.

Cc: mesa-stable@lists.freedesktop.org
Acked-by: Ben Skeggs <bskeggs@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/nouveau/nv50/nv50_miptree.c