[Mesa-dev] [PATCH 07/30] i965/miptree: Pass the offset into create_for_bo in create_for_dri_image
Pohjolainen, Topi
topi.pohjolainen at gmail.com
Wed Jun 21 13:10:20 UTC 2017
On Fri, Jun 16, 2017 at 03:41:29PM -0700, Jason Ekstrand wrote:
> ---
> src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
Reviewed-by: Topi Pohjolainen <topi.pohjolainen at intel.com>
>
> diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
> index 023c6aa..3bc6827 100644
> --- a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
> +++ b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
> @@ -915,7 +915,7 @@ intel_miptree_create_for_dri_image(struct brw_context *brw,
> */
> struct intel_mipmap_tree *mt =
> intel_miptree_create_for_bo(brw, image->bo, image->format,
> - 0, image->width, image->height, 1,
> + image->offset, image->width, image->height, 1,
> image->pitch,
> MIPTREE_LAYOUT_DISABLE_AUX);
> if (mt == NULL)
> @@ -942,8 +942,6 @@ intel_miptree_create_for_dri_image(struct brw_context *brw,
> }
> }
>
> - mt->offset = image->offset;
> -
> return mt;
> }
>
> --
> 2.5.0.400.gff86faf
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list