Skip to content

util/vl_vlc: Use UINT64_MAX instead of ~0UL for cross-plat portability

Sil Vilerino requested to merge sivileri/mesa:fix_vl_vlc_64bit_mask into main

What does this MR do and why?

util/vl_vlc: Use UINT64_MAX instead of ~0UL for cross-plat portability.

vl_vlc_removebits fails on compilers where ~0UL is taken as 32 bits. Use the UINT64_MAX constant instead to ensure proper cross-plat functionality.

More concretely, this fixes broken HEVC Encode using VAAPI on Windows after the frontends/va: Parse HEVC SPS for video signal parameters (8438d636) · Commits · Mesa / mesa · GitLab change.

CC @ckoenig @gdevi @rdong @tengjinchung

Merge request reports