OSDN Git Service

nv30: set usage to staging so that the buffer is allocated in GART
authorIlia Mirkin <imirkin@alum.mit.edu>
Wed, 31 Aug 2016 06:12:08 +0000 (02:12 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Wed, 31 Aug 2016 14:28:33 +0000 (10:28 -0400)
commit6118bcab4e9f57b834578afb34256d793efe83d0
tree410ba2753d1119af163a87a59053ae06991ead3f
parent5505845945fb9bdd0c752b0f299a627591205dbd
nv30: set usage to staging so that the buffer is allocated in GART

The code a few lines below expects to migrate the bo in question to
VRAM. Since we're filling the initial data via CPU, it's more efficient
to create the temporary buffer in GART. There is no "push" method
implemented, otherwise we'd use that instead.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: mesa-stable@lists.freedesktop.org
src/gallium/drivers/nouveau/nv30/nv30_transfer.c