intel: Force stride to be 0 for I915_TILING_NONE.
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 21 Jun 2010 13:20:56 +0000 (14:20 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 21 Jun 2010 21:37:18 +0000 (22:37 +0100)
commit5eec286838118501dd79178c152000ad4cbd70e1
tree2c43ad9b4aae59d54d93061eeccb7380ee57d613
parent1db22ff741f92b84450ec13093e070a6ad5fc857
intel: Force stride to be 0 for I915_TILING_NONE.

When allocating a tiled buffer, if we remove the desired tiling mode due
to it being beyond hardware limits, also remove the stride. This ensures
that we only ever use stride 0 with I915_TILING_NONE.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
intel/intel_bufmgr_gem.c