intel: Don't map regions with drm_intel_gem_bo_map_gtt() unless they're tiled.
authorEric Anholt <eric@anholt.net>
Sat, 20 Jun 2009 00:14:27 +0000 (17:14 -0700)
committerEric Anholt <eric@anholt.net>
Sat, 20 Jun 2009 00:25:20 +0000 (17:25 -0700)
commit3b08a43f32d04a0522596d3d37b1c1874e04d5c3
tree1f0aaa0ec79a9163340dc805c78eb5935a8f86b6
parent405300bb190f516e16b704050abe3389b366ed27
intel: Don't map regions with drm_intel_gem_bo_map_gtt() unless they're tiled.

This fixes a regression in region read performance that came in with the
texture tiling changes.  Ideally we'd have an access flag coming in so we
could also use bo_map_gtt for writing, like we do for buffer objects.

Bug #22190
src/mesa/drivers/dri/intel/intel_regions.c