radeonsi: factor si_query_buffer logic out of si_query_hw
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Tue, 18 Sep 2018 13:52:17 +0000 (15:52 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Wed, 19 Dec 2018 11:02:01 +0000 (12:02 +0100)
commite0f0d3675d462aad4ca30e4383a3530d46e6e85d
tree36a04d25d4b4c93c5bc355d383eb446ef2c52a12
parent0fc6e573dddbaaeac517bb8b03c1484a50943cd9
radeonsi: factor si_query_buffer logic out of si_query_hw

This is a move towards using composition instead of inheritance for
different query types.

This change weakens out-of-memory error reporting somewhat, though this
should be acceptable since we didn't consistently report such errors in
the first place.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeonsi/si_perfcounter.c
src/gallium/drivers/radeonsi/si_query.c
src/gallium/drivers/radeonsi/si_query.h
src/gallium/drivers/radeonsi/si_texture.c