<div dir="ltr">All of our Vulkan games rely on the presence of "RADV" somewhere in the device name string to distinguish between RADV and AMDVLK/GPU-PRO, and that's used to check whether the driver version is supported, whether to enable bug workarounds, etc. This will certainly break that.<div><br></div><div>Thanks,</div><div>Alex</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 17 August 2018 at 10:00, Samuel Pitoiset <span dir="ltr"><<a href="mailto:samuel.pitoiset@gmail.com" target="_blank">samuel.pitoiset@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Signed-off-by: Samuel Pitoiset <<a href="mailto:samuel.pitoiset@gmail.com">samuel.pitoiset@gmail.com</a>><br>
---<br>
src/amd/vulkan/radv_device.c | 33 +++---------------------------<wbr>---<br>
1 file changed, 3 insertions(+), 30 deletions(-)<br>
<br>
diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c<br>
index cc88abb57a..e11005a1f8 100644<br>
--- a/src/amd/vulkan/radv_device.c<br>
+++ b/src/amd/vulkan/radv_device.c<br>
@@ -77,41 +77,14 @@ radv_get_device_uuid(struct radeon_info *info, void *uuid)<br>
}<br>
<br>
static void<br>
-radv_get_device_name(enum radeon_family family, char *name, size_t name_len)<br>
+radv_get_device_name(struct radeon_info *info, char *name, size_t name_len)<br>
{<br>
- const char *chip_string;<br>
char llvm_string[32] = {};<br>
<br>
- switch (family) {<br>
- case CHIP_TAHITI: chip_string = "AMD RADV TAHITI"; break;<br>
- case CHIP_PITCAIRN: chip_string = "AMD RADV PITCAIRN"; break;<br>
- case CHIP_VERDE: chip_string = "AMD RADV CAPE VERDE"; break;<br>
- case CHIP_OLAND: chip_string = "AMD RADV OLAND"; break;<br>
- case CHIP_HAINAN: chip_string = "AMD RADV HAINAN"; break;<br>
- case CHIP_BONAIRE: chip_string = "AMD RADV BONAIRE"; break;<br>
- case CHIP_KAVERI: chip_string = "AMD RADV KAVERI"; break;<br>
- case CHIP_KABINI: chip_string = "AMD RADV KABINI"; break;<br>
- case CHIP_HAWAII: chip_string = "AMD RADV HAWAII"; break;<br>
- case CHIP_MULLINS: chip_string = "AMD RADV MULLINS"; break;<br>
- case CHIP_TONGA: chip_string = "AMD RADV TONGA"; break;<br>
- case CHIP_ICELAND: chip_string = "AMD RADV ICELAND"; break;<br>
- case CHIP_CARRIZO: chip_string = "AMD RADV CARRIZO"; break;<br>
- case CHIP_FIJI: chip_string = "AMD RADV FIJI"; break;<br>
- case CHIP_POLARIS10: chip_string = "AMD RADV POLARIS10"; break;<br>
- case CHIP_POLARIS11: chip_string = "AMD RADV POLARIS11"; break;<br>
- case CHIP_POLARIS12: chip_string = "AMD RADV POLARIS12"; break;<br>
- case CHIP_STONEY: chip_string = "AMD RADV STONEY"; break;<br>
- case CHIP_VEGAM: chip_string = "AMD RADV VEGA M"; break;<br>
- case CHIP_VEGA10: chip_string = "AMD RADV VEGA10"; break;<br>
- case CHIP_VEGA12: chip_string = "AMD RADV VEGA12"; break;<br>
- case CHIP_RAVEN: chip_string = "AMD RADV RAVEN"; break;<br>
- default: chip_string = "AMD RADV unknown"; break;<br>
- }<br>
-<br>
snprintf(llvm_string, sizeof(llvm_string),<br>
" (LLVM %i.%i.%i)", (HAVE_LLVM >> 8) & 0xff,<br>
HAVE_LLVM & 0xff, MESA_LLVM_VERSION_PATCH);<br>
- snprintf(name, name_len, "%s%s", chip_string, llvm_string);<br>
+ snprintf(name, name_len, "%s%s", info->name, llvm_string);<br>
}<br>
<br>
static void<br>
@@ -297,7 +270,7 @@ radv_physical_device_init(<wbr>struct radv_physical_device *device,<br>
<br>
radv_handle_env_var_force_<wbr>family(device);<br>
<br>
- radv_get_device_name(device-><wbr>rad_info.family, device->name, sizeof(device->name));<br>
+ radv_get_device_name(&device-><wbr>rad_info, device->name, sizeof(device->name));<br>
<br>
if (radv_device_get_cache_uuid(<wbr>device->rad_info.family, device->cache_uuid)) {<br>
device->ws->destroy(device-><wbr>ws);<br>
<span class="HOEnZb"><font color="#888888">-- <br>
2.18.0<br>
<br>
______________________________<wbr>_________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/mesa-dev</a><br>
</font></span></blockquote></div><br></div>