i965: Add a safety check for emitting blits.
authorEric Anholt <eric@anholt.net>
Mon, 23 Dec 2013 09:26:56 +0000 (01:26 -0800)
committerEric Anholt <eric@anholt.net>
Thu, 9 Jan 2014 07:23:23 +0000 (15:23 +0800)
commit98cdb2ceede34ad04cd8f65691bd96fbb44bcced
tree2de481cd1dc96dd9a1bd129d516cd6bc8ad44092
parentbdc5241af4aa9afbd66f6c96ee6d20e09f77ea89
i965: Add a safety check for emitting blits.

With all of the flipping and pitch twiddling and miptree layout involved
in our blits, there are lots of ways for us to scribble outside of a
buffer.  Put in a check that we're not about to do so.

This catches a bug that glamor was running into.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
src/mesa/drivers/dri/i965/intel_blit.c