ac/gpu_info: remove bogus assertion about number of COMPUTE/SDMA queues

For example, my polaris10 GPU now returns 3 compute queues.

Cc: mesa-stable
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25876>
(cherry picked from commit 4f8a225387)
This commit is contained in:
Samuel Pitoiset 2023-10-25 10:22:46 +02:00 committed by Eric Engestrom
parent e0b436252f
commit e3bef4dfa3
2 changed files with 1 additions and 4 deletions

View file

@ -1394,7 +1394,7 @@
"description": "ac/gpu_info: remove bogus assertion about number of COMPUTE/SDMA queues",
"nominated": true,
"nomination_type": 0,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

View file

@ -705,9 +705,6 @@ bool ac_query_gpu_info(int fd, void *dev_p, struct radeon_info *info,
return false;
}
assert(util_is_power_of_two_or_zero(info->ip[AMD_IP_COMPUTE].num_queues));
assert(util_is_power_of_two_or_zero(info->ip[AMD_IP_SDMA].num_queues));
r = amdgpu_query_firmware_version(dev, AMDGPU_INFO_FW_GFX_ME, 0, 0, &info->me_fw_version,
&info->me_fw_feature);
if (r) {