Re: [PATCH 4/5] drm/i915: Tidy workaround batch buffer emission

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Feb 16, 2017 at 12:23:24PM +0000, Tvrtko Ursulin wrote:
> +	/*
> +	 * Emit the two workaround batch buffers, recording the offset from the
> +	 * start of the workaround batch buffer object for each and their
> +	 * respective sizes.
> +	 */
> +	for (i = 0; i < ARRAY_SIZE(wa_bb_fn); i++) {
> +		wa_bb[i]->offset = ALIGN(batch_ptr - batch, CACHELINE_BYTES);
> +		batch_ptr = wa_bb_fn[i](engine, batch_ptr);
> +		wa_bb[i]->size = batch_ptr - batch + wa_bb[i]->offset;

wa_bb[i]->size = batch_ptr - (batch + wa_bb[i]->offset);
?

-- 
Chris Wilson, Intel Open Source Technology Centre
_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux