nouveau: add valid range tracking to nouveau_buffer
authorIlia Mirkin <imirkin@alum.mit.edu>
Thu, 27 Feb 2014 06:07:51 +0000 (01:07 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Sun, 9 Mar 2014 06:31:21 +0000 (01:31 -0500)
commit5bf90cb521d1d6f26684b1ce9d0811c636b6abb1
tree955939b89e5d36de43a6866bde400c595a6b5c23
parentcf1c52575d6fea966d818eac4a32ec2decc48576
nouveau: add valid range tracking to nouveau_buffer

This logic is borrowed from the radeon code. The transfer logic will
only get called for PIPE_BUFFER resources, so it shouldn't be necessary
to worry about them becoming render targets.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Christoph Bumiller <e0425955@student.tuwien.ac.at>
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_state.c
src/gallium/drivers/nouveau/nvc0/nvc0_resource.c
src/gallium/drivers/nouveau/nvc0/nvc0_state.c