[Intel-gfx] [PATCH] drm/i915: blitter ring workaround for gen6

Keith Packard keithp at keithp.com
Mon Oct 3 06:20:32 CEST 2011


On Sun,  2 Oct 2011 18:27:12 -0700, Ben Widawsky <ben at bwidawsk.net> wrote:

> +static void blt_ring_begin2(struct intel_ring_buffer *ring)
> +{
> +	if (!ring->private)
> +		return;
> +
> +	intel_ring_emit(ring, MI_LOAD_REGISTER_IMM(1));
> +	intel_ring_emit(ring, 0x2209c);
> +	intel_ring_emit(ring, 0x20002);
> +	intel_ring_emit(ring, MI_FLUSH_DW);
> +	intel_ring_emit(ring, 0x2209c);
> +	intel_ring_emit(ring, MI_LOAD_REGISTER_IMM(1));
> +	intel_ring_emit(ring, 0x2209c);
> +	intel_ring_emit(ring, 0x20000);
> +	intel_ring_emit(ring, MI_LOAD_REGISTER_IMM(1));
> +	intel_ring_emit(ring, 0x2209c);
> +	intel_ring_emit(ring, 0x20000);
> +	intel_ring_emit(ring, MI_NOOP);
> +}
> +

Surely you can provide symbolic names here.

-- 
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/20111002/c69f27b5/attachment.sig>


More information about the Intel-gfx mailing list