From 436df35c17b84424d9664e66cae8b3885491d9ad Mon Sep 17 00:00:00 2001 From: Rhys Perry Date: Wed, 12 Jul 2023 20:50:53 +0100 Subject: [PATCH] radv: add conformant_trunc_coord to cache UUID Signed-off-by: Rhys Perry Reviewed-by: Georg Lehmann Cc: mesa-stable Part-of: --- src/amd/vulkan/radv_physical_device.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/amd/vulkan/radv_physical_device.c b/src/amd/vulkan/radv_physical_device.c index 5631328aa43..cd7b370eed5 100644 --- a/src/amd/vulkan/radv_physical_device.c +++ b/src/amd/vulkan/radv_physical_device.c @@ -102,6 +102,7 @@ static int radv_device_get_cache_uuid(struct radv_physical_device *pdevice, void *uuid) { enum radeon_family family = pdevice->rad_info.family; + bool conformant_trunc_coord = pdevice->rad_info.conformant_trunc_coord; struct mesa_sha1 ctx; unsigned char sha1[20]; unsigned ptr_size = sizeof(void *); @@ -127,6 +128,7 @@ radv_device_get_cache_uuid(struct radv_physical_device *pdevice, void *uuid) #endif _mesa_sha1_update(&ctx, &family, sizeof(family)); + _mesa_sha1_update(&ctx, &conformant_trunc_coord, sizeof(conformant_trunc_coord)); _mesa_sha1_update(&ctx, &ptr_size, sizeof(ptr_size)); _mesa_sha1_final(&ctx, sha1);