<div dir="ltr">FWIW, putting "RADV" inside the brackets (e.g. " (RADV, LLVM ...)") would still work for us.</div><div class="gmail_extra"><br><div class="gmail_quote">On 17 August 2018 at 10:38, 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">Yeah, ignore this patch.<span class=""><br>
<br>
On 8/17/18 11:25 AM, Alex Smith wrote:<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
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.<br>
<br>
Thanks,<br>
Alex<br>
<br></span><span class="">
On 17 August 2018 at 10:00, Samuel Pitoiset <<a href="mailto:samuel.pitoiset@gmail.com" target="_blank">samuel.pitoiset@gmail.com</a> <mailto:<a href="mailto:samuel.pitoiset@gmail.com" target="_blank">samuel.pitoiset@gmail.<wbr>com</a>>> wrote:<br>
<br>
Signed-off-by: Samuel Pitoiset <<a href="mailto:samuel.pitoiset@gmail.com" target="_blank">samuel.pitoiset@gmail.com</a><br></span>
<mailto:<a href="mailto:samuel.pitoiset@gmail.com" target="_blank">samuel.pitoiset@gmail.<wbr>com</a>>><div><div class="h5"><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,<br>
void *uuid)<br>
}<br>
<br>
static void<br>
-radv_get_device_name(enum radeon_family family, char *name, size_t<br>
name_len)<br>
+radv_get_device_name(struct radeon_info *info, char *name, size_t<br>
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(stru<wbr>ct<br>
radv_physical_device *device,<br>
<br>
radv_handle_env_var_force_fami<wbr>ly(device);<br>
<br>
- radv_get_device_name(device-><wbr>rad_info.family, device->name,<br>
sizeof(device->name));<br>
+ radv_get_device_name(&device-<wbr>>rad_info, device->name,<br>
sizeof(device->name));<br>
<br>
if (radv_device_get_cache_uuid(de<wbr>vice->rad_info.family,<br>
device->cache_uuid)) {<br>
device->ws->destroy(device->ws<wbr>);<br>
-- 2.18.0<br>
<br>
______________________________<wbr>_________________<br>
mesa-dev mailing list<br></div></div>
<a href="mailto:mesa-dev@lists.freedesktop.org" target="_blank">mesa-dev@lists.freedesktop.org</a> <mailto:<a href="mailto:mesa-dev@lists.freedesktop.org" target="_blank">mesa-dev@lists.freedes<wbr>ktop.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>
<<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>
<br>
<br>
</blockquote>
</blockquote></div><br></div>