gallium/radeon: cleanup getting PIPE_QUERY_TIMESTAMP result
Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net> Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
631c47384c
commit
daeab0171d
|
@ -953,12 +953,8 @@ static void r600_query_hw_add_result(struct r600_common_context *ctx,
|
||||||
result->u64 += r600_query_read_result(buffer, 0, 2, false);
|
result->u64 += r600_query_read_result(buffer, 0, 2, false);
|
||||||
break;
|
break;
|
||||||
case PIPE_QUERY_TIMESTAMP:
|
case PIPE_QUERY_TIMESTAMP:
|
||||||
{
|
result->u64 = *(uint64_t*)buffer;
|
||||||
uint32_t *current_result = (uint32_t*)buffer;
|
|
||||||
result->u64 = (uint64_t)current_result[0] |
|
|
||||||
(uint64_t)current_result[1] << 32;
|
|
||||||
break;
|
break;
|
||||||
}
|
|
||||||
case PIPE_QUERY_PRIMITIVES_EMITTED:
|
case PIPE_QUERY_PRIMITIVES_EMITTED:
|
||||||
/* SAMPLE_STREAMOUTSTATS stores this structure:
|
/* SAMPLE_STREAMOUTSTATS stores this structure:
|
||||||
* {
|
* {
|
||||||
|
|
Loading…
Reference in New Issue