freedreno: simplify/cleanup resource status tracking
authorRob Clark <robclark@freedesktop.org>
Fri, 31 Jul 2015 16:07:24 +0000 (12:07 -0400)
committerRob Clark <robclark@freedesktop.org>
Tue, 4 Aug 2015 20:03:45 +0000 (16:03 -0400)
commit5ca032a9a8ece0a8a43151f988215484da3c1811
treec1e3875d44447d71555d960c05898264da87a0e2
parentc7deea51d2b611564c91e146fbd1ed0b547f65c0
freedreno: simplify/cleanup resource status tracking

Collapse dirty/reading bools into status bitmask (and drop writing which
should really be the same as dirty).  And use 'used_resources' list for
all tracking, including zsbuf/cbufs, rather than special casing the
color and depth/stencil buffers.

Signed-off-by: Rob Clark <robclark@freedesktop.org>
src/gallium/drivers/freedreno/freedreno_context.c
src/gallium/drivers/freedreno/freedreno_draw.c
src/gallium/drivers/freedreno/freedreno_resource.c
src/gallium/drivers/freedreno/freedreno_resource.h