anv: enable blorp query reset for performance queries

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Felix DeGrood <felix.j.degrood@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22480>
This commit is contained in:
Lionel Landwerlin
2023-04-13 21:29:36 +03:00
parent 20c330e95d
commit a787728906
2 changed files with 25 additions and 19 deletions

View File

@@ -4153,6 +4153,14 @@ struct anv_query_pool {
uint32_t slots;
struct anv_bo * bo;
/** Location for the KHR_performance_query small batch updating
* ANV_PERF_QUERY_OFFSET_REG
*/
uint32_t khr_perf_preambles_offset;
/** Size of each small batch */
uint32_t khr_perf_preamble_stride;
/* KHR perf queries : */
uint32_t pass_size;
uint32_t data_offset;
@@ -4166,7 +4174,8 @@ struct anv_query_pool {
static inline uint32_t khr_perf_query_preamble_offset(const struct anv_query_pool *pool,
uint32_t pass)
{
return pool->pass_size * pass + 8;
return pool->khr_perf_preambles_offset +
pool->khr_perf_preamble_stride * pass;
}
struct anv_vid_mem {