OSDN Git Service

nv30/draw: only use the DMA1 object (GART) if the bo is not in VRAM
authorIlia Mirkin <imirkin@alum.mit.edu>
Tue, 26 May 2015 01:12:46 +0000 (21:12 -0400)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 3 Jun 2015 10:53:04 +0000 (11:53 +0100)
commit23c0c94ac36945c08ec21db8fa2b4e36d137320f
tree9075ddb60fd49cb3851de2e8809898e4fe71aa51
parentefaf906415f1cc9cf123cd89dd346c35d327d26b
nv30/draw: only use the DMA1 object (GART) if the bo is not in VRAM

Instead of always having it in the data, let the bo placement decide it.
This fixes glxgears with swtnl forced on.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Ben Skeggs <bskeggs@redhat.com>
Cc: "10.5 10.6" <mesa-stable@lists.freedesktop.org>
(cherry picked from commit fdad7dfbdae07b9273fc8f57e63258dbe542c9b5)
src/gallium/drivers/nouveau/nv30/nv30_draw.c