mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
radv: disable SPM counters with RGP on GFX11
They are likely different and perfcounters aren't defined on GFX11 yet. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20338>
This commit is contained in:
parent
5fe48baad6
commit
dfa9b5d624
1 changed files with 3 additions and 1 deletions
|
|
@ -4074,7 +4074,9 @@ radv_CreateDevice(VkPhysicalDevice physicalDevice, const VkDeviceCreateInfo *pCr
|
|||
radv_spm_trace_enabled() ? "enabled" : "disabled");
|
||||
|
||||
if (radv_spm_trace_enabled()) {
|
||||
if (device->physical_device->rad_info.gfx_level >= GFX10) {
|
||||
/* TODO: add SPM counters for GFX11. */
|
||||
if (device->physical_device->rad_info.gfx_level == GFX10 ||
|
||||
device->physical_device->rad_info.gfx_level == GFX10_3) {
|
||||
if (!radv_spm_init(device)) {
|
||||
result = VK_ERROR_INITIALIZATION_FAILED;
|
||||
goto fail;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue