i965: Use brw_bo_map[_gtt]() in intel_miptree_map_raw().
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 29 Jan 2014 17:27:09 +0000 (09:27 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 4 Feb 2014 00:16:38 +0000 (16:16 -0800)
commitadaa5a6ca66179a839742c4729a4fc76aa02991f
tree402841af6cb6499781edd92b9c04902e8d2b1659
parente396674d5fb06ef467c7b66cf14ff89df64f2101
i965: Use brw_bo_map[_gtt]() in intel_miptree_map_raw().

This moves the intel_batchbuffer_flush before the drm_intel_bo_busy
call, which is a change in behavior.  However, the old behavior was
broken.

In the future, we may want to only flush in the batchbuffer references
the BO being mapped.  That's certainly more typical.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Carl Worth <cworth@cworth.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/intel_mipmap_tree.c