[Intel-gfx] [PATCH 1/2] drm/i915: Introduce execlist_port_* accessors
Chris Wilson
chris at chris-wilson.co.uk
Thu Oct 19 14:50:16 UTC 2017
Quoting Mika Kuoppala (2017-10-19 15:39:41)
> +#define __port_add(start, n, mask) (((start) + (n)) & (mask))
> +#define port_head_add(e, n) __port_add((e)->port_head, n, (e)->port_mask)
> +
> +/* Index starting from port_head */
> +static inline struct execlist_port *
> +execlists_port(struct intel_engine_execlists * const execlists,
> + const unsigned int n)
> +{
> + return &execlists->port[port_head_add(execlists, n)];
nth_port cf nth_page?
-Chris
More information about the Intel-gfx
mailing list