[Mesa-dev] [v2 15/22] i965/miptree: Prepare compressed offsets for isl based

Jason Ekstrand jason at jlekstrand.net
Wed Jul 19 20:28:53 UTC 2017


Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>

On Wed, Jul 19, 2017 at 12:56 PM, Topi Pohjolainen <
topi.pohjolainen at gmail.com> wrote:

> v2 (Jason): Simply switch to isl_surf_get_image_offset_el()
>
> Signed-off-by: Topi Pohjolainen <topi.pohjolainen at intel.com>
> ---
>  src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
> b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
> index 036e3307be..09e8222013 100644
> --- a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
> +++ b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
> @@ -1477,7 +1477,7 @@ intel_miptree_get_image_offset(const struct
> intel_mipmap_tree *mt,
>
>        const unsigned z = mt->surf.dim == ISL_SURF_DIM_3D ? slice : 0;
>        slice = mt->surf.dim == ISL_SURF_DIM_3D ? 0 : slice;
> -      isl_surf_get_image_offset_sa(&mt->surf, level, slice, z,
> +      isl_surf_get_image_offset_el(&mt->surf, level, slice, z,
>                                     &x_offset_sa, &y_offset_sa);
>
>        *x = x_offset_sa;
> --
> 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/20170719/c5425147/attachment.html>


More information about the mesa-dev mailing list