9c6d6daf1b
The hardware already checks that any subchannel that we use is valid, but those error messages don't provide much context and can be hard to debug. Add an assert in nv_push that the subchannel we're using has been allocated. This way, we can pinpoint exactly where the incorrect method was used by looking at the stack trace. Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36651>