mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 06:48:06 +02:00
tu: Display when raytracing is disabled in device string
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28447>
This commit is contained in:
parent
46cd7faed3
commit
78b5999c1e
1 changed files with 12 additions and 3 deletions
|
|
@ -1329,13 +1329,22 @@ tu_physical_device_init(struct tu_physical_device *device,
|
|||
const struct fd_dev_info info = fd_dev_info(&device->dev_id);
|
||||
assert(info.chip);
|
||||
|
||||
/* Print a suffix if raytracing is disabled by the SW fuse, in an attempt
|
||||
* to avoid confusion when apps don't work.
|
||||
*/
|
||||
bool raytracing_disabled = info.a7xx.has_sw_fuse &&
|
||||
!device->has_raytracing;
|
||||
const char *rt_suffix = raytracing_disabled ? " (raytracing disabled)" : "";
|
||||
|
||||
if (strncmp(fd_name, "FD", 2) == 0) {
|
||||
device->name = vk_asprintf(&instance->vk.alloc,
|
||||
VK_SYSTEM_ALLOCATION_SCOPE_INSTANCE,
|
||||
"Turnip Adreno (TM) %s", &fd_name[2]);
|
||||
"Turnip Adreno (TM) %s%s", &fd_name[2],
|
||||
rt_suffix);
|
||||
} else {
|
||||
device->name = vk_strdup(&instance->vk.alloc, fd_name,
|
||||
VK_SYSTEM_ALLOCATION_SCOPE_INSTANCE);
|
||||
device->name = vk_asprintf(&instance->vk.alloc,
|
||||
VK_SYSTEM_ALLOCATION_SCOPE_INSTANCE,
|
||||
"%s%s", fd_name, rt_suffix);
|
||||
|
||||
}
|
||||
if (!device->name) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue