[Intel-gfx] [PATCH] drm/i915: Fix unfenced alignment on pre-G33 hardware

Keith Packard keithp at keithp.com
Mon Jul 18 18:17:16 CEST 2011


On Sat,  9 Jul 2011 09:31:25 +0100, Chris Wilson <chris at chris-wilson.co.uk> wrote:

>  uint32_t
> -i915_gem_get_unfenced_gtt_alignment(struct drm_i915_gem_object *obj)
> +i915_gem_get_unfenced_gtt_alignment(struct drm_i915_gem_object *obj,
> +				    int tiling_mode)
...
> +	return i915_gem_get_gtt_size(obj);

I think you want to pass the new tiling mode to this function rather
than using the object's existing tiling mode. Seems like most of the
issues could easily be explained by using the stale value when trying to
change tiling modes.

-- 
keith.packard at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/intel-gfx/attachments/20110718/099ca8dd/attachment.sig>


More information about the Intel-gfx mailing list