r600g,radeonsi: if discarding whole buffer range, discard whole resource instead
authorMarek Olšák <marek.olsak@amd.com>
Mon, 13 Jan 2014 12:10:06 +0000 (13:10 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 23 Jan 2014 00:47:14 +0000 (01:47 +0100)
commit5dfb10b2f5e1583eeaef9d7258f1d6a445444e9d
tree91cddf907929dba2fbefea011fd897c23d572802
parentee0dc659c849ca9a552edd88d062035cae189068
r600g,radeonsi: if discarding whole buffer range, discard whole resource instead

Also set the unsynchronized flag if the whole resource was discarded
to avoid doing buffer-busy checks again.

Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
src/gallium/drivers/radeon/r600_buffer_common.c