anv: Improve readbility of khr_perf_query_availability_offset() and khr_perf_query_data_offset()
No changes in behavior expected here. Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Signed-off-by: José Roberto de Souza <jose.souza@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31239>
This commit is contained in:
committed by
Marge Bot
parent
3d09ffde46
commit
0ced5663e2
@@ -339,14 +339,14 @@ void genX(DestroyQueryPool)(
|
||||
static uint64_t
|
||||
khr_perf_query_availability_offset(struct anv_query_pool *pool, uint32_t query, uint32_t pass)
|
||||
{
|
||||
return query * (uint64_t)pool->stride + pass * (uint64_t)pool->pass_size;
|
||||
return (query * (uint64_t)pool->stride) + (pass * (uint64_t)pool->pass_size);
|
||||
}
|
||||
|
||||
static uint64_t
|
||||
khr_perf_query_data_offset(struct anv_query_pool *pool, uint32_t query, uint32_t pass, bool end)
|
||||
{
|
||||
return query * (uint64_t)pool->stride + pass * (uint64_t)pool->pass_size +
|
||||
pool->data_offset + (end ? pool->snapshot_size : 0);
|
||||
return khr_perf_query_availability_offset(pool, query, pass) +
|
||||
pool->data_offset + (end ? pool->snapshot_size : 0);
|
||||
}
|
||||
|
||||
static struct anv_address
|
||||
|
||||
Reference in New Issue
Block a user