nv50,nvc0: add invalidate_resource support for buffer resources
authorIlia Mirkin <imirkin@alum.mit.edu>
Sun, 3 Apr 2016 19:11:39 +0000 (15:11 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Sat, 9 Apr 2016 18:55:43 +0000 (14:55 -0400)
commitf9480d7918a2da19b8ac85a8326049488feef92b
treec60e9cce43b2984784e053f2f6539d7c9e58a13f
parent30b818d5eb67c7427fbefb456c7bc2d876bf9eac
nv50,nvc0: add invalidate_resource support for buffer resources

Provide a callback to reallocate the underlying storage of a resource so
that it is not bound to any existing fences.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/nouveau_buffer.c
src/gallium/drivers/nouveau/nouveau_buffer.h
src/gallium/drivers/nouveau/nv50/nv50_resource.c
src/gallium/drivers/nouveau/nv50/nv50_resource.h
src/gallium/drivers/nouveau/nv50/nv50_screen.c
src/gallium/drivers/nouveau/nvc0/nvc0_resource.c
src/gallium/drivers/nouveau/nvc0/nvc0_screen.c