radeon: split hw query buffer handling from cs emit
authorNicolai Hähnle <nhaehnle@gmail.com>
Wed, 18 Nov 2015 11:05:11 +0000 (12:05 +0100)
committerNicolai Hähnle <nhaehnle@gmail.com>
Wed, 18 Nov 2015 11:27:13 +0000 (12:27 +0100)
commitc207c55fc08a1bf3dd40e79b3aaec34afbee2e55
treeb03993158edabc2d081a081f2ec185fdb9f817ad
parent1d10b3d01e8af58f3c14bf39af8b592860ab36aa
radeon: split hw query buffer handling from cs emit

The idea here is that driver queries implemented outside of common code
will use the same query buffer handling with different logic for starting
and stopping the corresponding counters.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
[Fixed a rebase conflict and re-tested before pushing.]
src/gallium/drivers/radeon/r600_query.c
src/gallium/drivers/radeon/r600_query.h