[Mesa-dev] [PATCH 02/15] i965: Add helper for converting isl tiling to bufmgr tiling
Jason Ekstrand
jason at jlekstrand.net
Thu Jun 15 18:12:29 UTC 2017
There are about three different versions of this helper floating around
these days, none of them merged. :-( Let's go ahead and land this and
someone can combine them later.
On Tue, Jun 13, 2017 at 7:50 AM, Topi Pohjolainen <
topi.pohjolainen at gmail.com> wrote:
> Signed-off-by: Topi Pohjolainen <topi.pohjolainen at intel.com>
> ---
> src/mesa/drivers/dri/i965/intel_blit.h | 13 +++++++++++++
> 1 file changed, 13 insertions(+)
>
> diff --git a/src/mesa/drivers/dri/i965/intel_blit.h
> b/src/mesa/drivers/dri/i965/intel_blit.h
> index 2604417e2d..5e4d1f5eb4 100644
> --- a/src/mesa/drivers/dri/i965/intel_blit.h
> +++ b/src/mesa/drivers/dri/i965/intel_blit.h
> @@ -28,6 +28,19 @@
>
> #include "brw_context.h"
>
> +static inline unsigned
> +isl_tiling_to_bufmgr_tiling(enum isl_tiling tiling)
> +{
> + if (tiling == ISL_TILING_X)
> + return I915_TILING_X;
> +
> + if (tiling == ISL_TILING_Y0)
> + return I915_TILING_Y;
> +
> + /* All other are unknown to buffer allocator. */
> + return I915_TILING_NONE;
> +}
> +
> bool
> intelEmitCopyBlit(struct brw_context *brw,
> GLuint cpp,
> --
> 2.11.0
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20170615/796df0e4/attachment-0001.html>
More information about the mesa-dev
mailing list