Suggested by Lionel Landwerlin, we add has_bit6_swizzle as
another input when computing driver uuid.
Also fix miscalculation of the length of driver tag.
Signed-off-by: Jianxun Zhang <jianxun.zhang@linux.intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Rohan Garg <rohan.garg@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13936>
* UUID.
*/
_mesa_sha1_init(&sha1_ctx);
- _mesa_sha1_update(&sha1_ctx, intelDriver, strlen(intelDriver) * sizeof(char));
+ _mesa_sha1_update(&sha1_ctx, intelDriver, strlen(intelDriver));
+ _mesa_sha1_update(&sha1_ctx, &devinfo->has_bit6_swizzle,
+ sizeof(devinfo->has_bit6_swizzle));
_mesa_sha1_final(&sha1_ctx, sha1);
memcpy(uuid, sha1, size);
}