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)
committerIlia Mirkin <imirkin@alum.mit.edu>
Tue, 26 May 2015 01:45:08 +0000 (21:45 -0400)
commitfdad7dfbdae07b9273fc8f57e63258dbe542c9b5
treea9dcd701fdea589b3118ba3cffa7476b852194a4
parent3600439897c79d37c3c654546867ddfa0c420743
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>
src/gallium/drivers/nouveau/nv30/nv30_draw.c