b49e7cb3f4
Also adds a missing assert that cdw <= cdw_max. Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20149>