mask non-chain fence sequence numbers to 32-bit for comparisons
authorjsg <jsg@openbsd.org>
Fri, 16 Sep 2022 01:48:07 +0000 (01:48 +0000)
committerjsg <jsg@openbsd.org>
Fri, 16 Sep 2022 01:48:07 +0000 (01:48 +0000)
commitbcd4d0b591146f9234d5977ee66a641622733862
treebb3e1b7488e4b528289754a8e090f3199f6e260d
parent024d4e74c5087d49565e08031bf85b11a9000cc6
mask non-chain fence sequence numbers to 32-bit for comparisons

Most of drm uses 32-bit sequence numbers in fences.
dma-fence-chain opts into 64-bit comparisons.

Wrapping is handled like i915_seqno_passed() except that if the sequence
numbers are the same one is not considered later than the other.
sys/dev/pci/drm/drm_linux.c
sys/dev/pci/drm/include/linux/dma-fence.h