mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 06:48:06 +02:00
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:
parent
0cb26f31fe
commit
436df35c17
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue