OSDN Git Service

nouveau: use the buffer usage to determine placement when no binding
authorIlia Mirkin <imirkin@alum.mit.edu>
Mon, 23 Nov 2015 01:58:56 +0000 (20:58 -0500)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 3 Dec 2015 18:43:11 +0000 (18:43 +0000)
commit26114e86e3bcb1a6f1a6484169791394be23de9a
tree2d95ed99a1b51c1d9d4e5932d9600d0c3b6289ed
parenta6be31fc250aae4b4a1711d162dd6957d03884eb
nouveau: use the buffer usage to determine placement when no binding

With ARB_direct_state_access, buffers can be created without any binding
hints at all. We still need to allocate these buffers to VRAM or GART,
as we don't have logic down the line to place them into GPU-mappable
space. Ideally we'd be able to shift these things around based on usage.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=92438
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: "11.0 11.1" <mesa-stable@lists.freedesktop.org>
(cherry picked from commit 079f713754a9e5d7802b655d54320bd37f24fbfa)
src/gallium/drivers/nouveau/nouveau_buffer.c