mesa: simplify _mesa_delete_list() a bit, add some assertions
authorBrian Paul <brianp@vmware.com>
Sat, 20 Jan 2018 03:57:24 +0000 (20:57 -0700)
committerBrian Paul <brianp@vmware.com>
Thu, 25 Jan 2018 19:17:26 +0000 (12:17 -0700)
commit6c724fb7c14de3088b51748a781983e76c5d8ee1
tree9ecd80e1159d7318dc26073309e0e50272e64614
parentc860171c632a34f9c2a8ab1c06dc5a93325e84c9
mesa: simplify _mesa_delete_list() a bit, add some assertions

All but two cases of the switch did the same n += InstSize[n[0].opcode]
instruction.  Just move it after the switch.

Add some sanity check assertions.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/mesa/main/dlist.c