intel: Fix a case when mapping large texture fails
authorAnuj Phogat <anuj.phogat@gmail.com>
Mon, 27 Feb 2012 19:09:29 +0000 (11:09 -0800)
committerAnuj Phogat <anuj.phogat@gmail.com>
Tue, 20 Mar 2012 22:11:39 +0000 (15:11 -0700)
commitcdcfd5d1d60179e60e3a0a47dda71bfe91083105
treedcf55167abf9e34a3d3f9548a401bbb2b06d927e
parent2097af97288650f5aacd02b5ab09fd456579f882
intel: Fix a case when mapping large texture fails

This patch handles a case when mapping a large texture fails
in drm_intel_gem_bo_map_gtt(). These changes avoid assertion
failure later in the driver as reported in following bugs:

https://bugs.freedesktop.org/show_bug.cgi?id=44970
https://bugs.freedesktop.org/show_bug.cgi?id=46303

Testing: No regressions in piglit quick.tests

Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com>
src/mesa/drivers/dri/intel/intel_mipmap_tree.c
src/mesa/drivers/dri/intel/intel_regions.c