i965: Make bblock_t::next and friends return NULL at sentinels.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 30 Mar 2016 19:00:02 +0000 (12:00 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 4 Apr 2016 21:34:16 +0000 (14:34 -0700)
commit9486614938035f6bec746d207a9cf79a7def0724
tree961ec1ca7bdd8dff01739f25533b3a180e1f716d
parent5509d43a11d42f15c91572aaf69a0f8e1ec31c71
i965: Make bblock_t::next and friends return NULL at sentinels.

The bblock_t::prev/prev_const/next/next_const API returns bblock_t
pointers, rather than exec_nodes.  So it's a bit surprising.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_cfg.h
src/mesa/drivers/dri/i965/brw_shader.cpp