mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 05:10:11 +01:00
anv/pps: remove assert for double init
pps initializes perf counter multiple times, once from GpuDataSource::register_data_source and once from GpuDataSource::OnSetup. This is fine, except we should replace failing assert with skip on second call. Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38224>
This commit is contained in:
parent
b962063d72
commit
faddb5d497
1 changed files with 2 additions and 1 deletions
|
|
@ -73,7 +73,8 @@ bool IntelDriver::init_perfcnt()
|
|||
*/
|
||||
this->clock_id = intel_pps_clock_id(drm_device.gpu_num);
|
||||
|
||||
assert(!perf && "Intel perf should not be initialized at this point");
|
||||
if (perf)
|
||||
return true;
|
||||
|
||||
perf = std::make_unique<IntelPerf>(drm_device.fd);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue