intel: make CLOCK_TAI optional for non-Linux

src/intel/common/xe/intel_gem.c:72:9: error: use of undeclared identifier 'CLOCK_TAI'
   case CLOCK_TAI:
        ^

Fixes: ae0df368a8 ("intel/common: Add intel_gem_read_correlate_cpu_gpu_timestamp()")
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26392>
This commit is contained in:
Jan Beich 2023-11-29 04:13:26 +01:00 committed by Marge Bot
parent ec43c20182
commit 5c32c41f65

View file

@ -69,7 +69,9 @@ xe_gem_read_correlate_cpu_gpu_timestamp(int fd,
#endif
case CLOCK_REALTIME:
case CLOCK_BOOTTIME:
#ifdef CLOCK_TAI
case CLOCK_TAI:
#endif
break;
default:
return false;