turnip: more/better asserts for tu_cs
authorChia-I Wu <olvaffe@gmail.com>
Mon, 25 Feb 2019 22:55:06 +0000 (14:55 -0800)
committerChia-I Wu <olvaffe@gmail.com>
Mon, 11 Mar 2019 17:02:13 +0000 (10:02 -0700)
commit10c50134422ae166fccfe4fbf4961407b63d20f5
treefa2a84addfa722eb70d9f61e2debc498da992383
parentaa7dd6cb7f54180af91e40e38bf8890c5cc12197
turnip: more/better asserts for tu_cs

Asserting (cur < end) in tu_cs_emit catches much less programming
errors comparing to asserting (cur < reserved_end).  We should never
write more commands than what we have reserved.

Assert IB is non-empty and sane in tu_cs_emit_ib.
src/freedreno/vulkan/tu_cs.h