mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-21 11:08:24 +02:00
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>
26 lines
632 B
C
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 */
|