intel: fix the wrong code to detect null texture.
authorYuanhan Liu <yuanhan.liu@linux.intel.com>
Fri, 23 Sep 2011 05:34:26 +0000 (13:34 +0800)
committerYuanhan Liu <yuanhan.liu@linux.intel.com>
Fri, 23 Sep 2011 05:34:26 +0000 (13:34 +0800)
commit1a662e7c18cab98f1b122f6766faf338725de673
tree324909360c66ce8fabdc324fa0df3e0d6e14fc58
parentcd6b8421cac2df89dc6365ce368232e461caffcd
intel: fix the wrong code to detect null texture.

There is already comments show how to detect a null texture. Fix the
code to match the comments.

This would fix the oglc divzero(basic.texQOrWEqualsZero) and
divzero(basic.texTrivialPrim) test case fail.

Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/intel/intel_mipmap_tree.c