mesa/src/amd/vulkan/radv_spm.h
Samuel Pitoiset 4459a1d210 radv: resize the SPM bo when it's too small
This used to abort (see the previous commit) when the hardware wasn't
able to sample all SPM counters because the BO was too small. The SPM
BO can now be resized like the SQTT BO.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31883>
2024-10-29 18:33:17 +00:00

26 lines
632 B
C

/*
* Copyright © 2016 Red Hat.
* Copyright © 2016 Bas Nieuwenhuizen
*
* based in part on anv driver which is:
* Copyright © 2015 Intel Corporation
*
* SPDX-License-Identifier: MIT
*/
#ifndef RADV_SPM_H
#define RADV_SPM_H
#include "radv_device.h"
#include "radv_queue.h"
#include "radv_radeon_winsys.h"
void radv_emit_spm_setup(struct radv_device *device, struct radeon_cmdbuf *cs, enum radv_queue_family qf);
bool radv_spm_init(struct radv_device *device);
void radv_spm_finish(struct radv_device *device);
bool radv_get_spm_trace(struct radv_queue *queue, struct ac_spm_trace *spm_trace);
#endif /* RADV_SPM_H */