radv: do not use a different disk cache key for LLVM
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 20 Sep 2021 15:33:52 +0000 (17:33 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 21 Sep 2021 11:34:42 +0000 (11:34 +0000)
The driver already adds a pipeline hash for LLVM which is redundant.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12938>

src/amd/vulkan/radv_device.c

index 8376892..dad3ba0 100644 (file)
@@ -663,15 +663,12 @@ radv_physical_device_try_create(struct radv_instance *instance, drmDevicePtr drm
       goto fail_wsi;
    }
 
-   /* These flags affect shader compilation. */
-   uint64_t shader_env_flags = (device->use_llvm ? 0 : 0x2);
-
    /* The gpu id is already embedded in the uuid so we just pass "radv"
     * when creating the cache.
     */
    char buf[VK_UUID_SIZE * 2 + 1];
    disk_cache_format_hex_id(buf, device->cache_uuid, VK_UUID_SIZE * 2);
-   device->disk_cache = disk_cache_create(device->name, buf, shader_env_flags);
+   device->disk_cache = disk_cache_create(device->name, buf, 0);
 #endif
 
    if (device->rad_info.chip_class < GFX8 || device->rad_info.chip_class > GFX10)