[Mesa-dev] [PATCH 8/9] gallium/radeon: implement get_query_result_resource
Nicolai Hähnle
nhaehnle at gmail.com
Sat Sep 17 14:52:07 UTC 2016
On 16.09.2016 17:18, Gustaw Smolarczyk wrote:
> 2016-09-16 15:57 GMT+02:00 Nicolai Hähnle <nhaehnle at gmail.com>:
>> From: Nicolai Hähnle <nicolai.haehnle at amd.com>
>>
>> ---
>> src/gallium/drivers/radeon/r600_pipe_common.c | 3 +
>> src/gallium/drivers/radeon/r600_pipe_common.h | 2 +
>> src/gallium/drivers/radeon/r600_query.c | 391 +++++++++++++++++++++++++-
>> src/gallium/drivers/radeon/r600_query.h | 7 +
>> 4 files changed, 402 insertions(+), 1 deletion(-)
[snip]
>> +/* Create the compute shader that is used to collect the results.
>> + *
>> + * One compute grid with a single thread is launched for every query result
>> + * buffer. The thread (optionally) reads a previous summary buffer, then
>> + * accumulates data from the query result buffer, and writes the result either
>> + * to a summary buffer to be consumed by the next grid invocation or to the
>> + * user-supplied buffer.
>> + *
>> + * Data layout:
>> + *
>> + * CONST
>> + * 0.x = end_offset
>> + * 0.y = result_stride
>> + * 0.z = result_count
>> + * 0.w = bit field:
>> + * 0: read previously accumulated values
>
> Are you sure you didn't mean 1 here instead of 0?
Yes, of course. Thanks!
Nicolai
> Regards,
> Gustaw
More information about the mesa-dev
mailing list