i915: move the FALLBACK_DRAW_OFFSET check outside the drawing rect check
authorYuanhan Liu <yuanhan.liu@linux.intel.com>
Tue, 6 Mar 2012 06:40:32 +0000 (14:40 +0800)
committerYuanhan Liu <yuanhan.liu@linux.intel.com>
Wed, 7 Mar 2012 05:20:20 +0000 (13:20 +0800)
commitcf2f9ef015c312ecaa6656519602ae535f7ce9d7
tree46de3f8176a29f7bfa034bde954515eaf423ec1d
parent4aa1ac5fe94b5696095229ee3568bf4fa7cfed95
i915: move the FALLBACK_DRAW_OFFSET check outside the drawing rect check

We have to do fallback when the 'Clipped Drawing Rectangle X/Y Max'
exceed the hardware's limit no matter the drawing rectangle offset
changed or not.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=46665

NOTE: This is a candidate for stable release branches.

Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i915/i915_vtbl.c