turnip: Move tu_get_device/driver_uuid() to shared code for GL reuse
This is warm-up for the EXT_external_objects support we are working on (MR!4565).
EXT_external_objects require driver and device UUIDs reported by Vulkan and GL to match. This patch moves the turnip functions to a common place for reuse.
Following review suggestions, a new folder src/freedreno/common
was created and the UUID generation was moved to freedreno_uuid.c/h
.
The generated UUIDs have also been updated: device UUID becomes SHA1("freedreno" + gpu_id)
and driver UUID becomes SHA1(mesa-version + git-head-sha1)
.
Edited by Eduardo Lima Mitev