radeonsi: optimize si_invalidate_buffer based on bind_history
authorMarek Olšák <marek.olsak@amd.com>
Sun, 2 Oct 2016 13:50:15 +0000 (15:50 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 4 Oct 2016 14:12:00 +0000 (16:12 +0200)
commit7e6428e0a89815f67ce04c6db5e5fb1368c51ea0
treefbc2dc9bc8286e55686a8186fa9d422cae860402
parente43bd861e8182bd93c54631185e6018fc243aea3
radeonsi: optimize si_invalidate_buffer based on bind_history

Just enclose each section with: if (rbuffer->bind_history & PIPE_BIND_...)

Bioshock Infinite: +1% performance

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net>
src/gallium/drivers/radeonsi/si_descriptors.c