radv: add conformant_trunc_coord to cache UUID
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com> Reviewed-by: Georg Lehmann <dadschoorse@gmail.com> Cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24137>
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user