diff options
author | Nicolai Hähnle <[email protected]> | 2015-11-20 12:58:55 +0100 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2015-11-20 22:46:11 +0100 |
commit | 5bda3d0958967b88e739302a480499d1428a0b2a (patch) | |
tree | 6e29fde9faee5131e416ff404f8f0d970049b138 /src/gallium/state_trackers/osmesa/SConscript | |
parent | 6f4fe8e76ada4cd04f20d37825d7763fcc2b62ae (diff) |
radeon: re-prepare query buffers on begin_query for predicate queries
The point of prepare_buffer is to ensure that the query buffer contains valid
initial data for conditional rendering: as long as the buffer is initialized
correctly, the GPU is able to tell whether query results have been written
already (and wait or fall back to unconditional rendering if desired).
This means prepare_buffer needs to be called again when a buffer is reused.
Conversely, for queries that cannot be used for conditional rendering
(notably pipeline statistics), we can re-use buffers immediately, and they
do not need to be initialized.
Reviewed-by: Marek Olšák <[email protected]>
Tested-by: Andy Furniss <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/osmesa/SConscript')
0 files changed, 0 insertions, 0 deletions