intel: Remove num_mapped_regions assertion from _intel_batchbuffer_flush
authorIan Romanick <ian.d.romanick@intel.com>
Wed, 1 Feb 2012 18:37:54 +0000 (11:37 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Tue, 7 Feb 2012 18:00:31 +0000 (10:00 -0800)
commit65b096aeddd9b45ca038f44cc9adfff86c8c48b2
tree43caf9d9003564d4d5300fbe23df3cedbfa013d6
parentd048ab5558cf47edda5a383266dc451db8425d9f
intel: Remove num_mapped_regions assertion from _intel_batchbuffer_flush

There are cases where a buffer can be mapped while another buffer is
flushed.  This can happen in the CopyPixels meta-op path for piglit's
fbo-mipmap-copypix.  After some discussion with Eric, it seems this
assertion is no longer necessary, and it has always been too strict.

NOTE: This is a candidate for the 8.0 branch.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=43328
Cc: Eric Anholt <eric@anholt.net>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
src/mesa/drivers/dri/intel/intel_batchbuffer.c