mesa: Return ZeroVec/dummyReg instead of NULL pointer 15/7215/1
authorAnuj Phogat <anuj.phogat@gmail.com>
Thu, 27 Jun 2013 23:12:07 +0000 (16:12 -0700)
committerAnuj Phogat <anuj.phogat@gmail.com>
Fri, 28 Jun 2013 17:53:43 +0000 (10:53 -0700)
commitee723ffabb4c76f4c1924436af145f5eca1012fc
tree4c4aaec619542401666770d021d093f9d43c81ce
parentbee49cb0ecbacb9fbc9dddc5e560874adacc518e
mesa: Return ZeroVec/dummyReg instead of NULL pointer

Assertions are not sufficient to check for null pointers as they don't
show up in release builds. So, return ZeroVec/dummyReg instead of NULL
pointer in get_{src,dst}_register_pointer(). This should calm down the
warnings from static analysis tool.

Note: This is a candidate for the 9.1 branch.
Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/program/prog_execute.c