[Mesa-dev] [PATCH] i965: don't fail to shift height images for levels.

Dave Airlie airlied at gmail.com
Tue Aug 23 01:10:01 UTC 2016


ping? esp the Igalia people.


On 27 May 2016 at 14:57, Dave Airlie <airlied at gmail.com> wrote:
> From: Dave Airlie <airlied at redhat.com>
>
> This fixes one subtest of:
> GL44-CTS.shader_image_size.advanced-nonMS-fs-int
>
> I've no idea why this wouldn't be scaled up here,
> and I've no idea what else will break, but I might
> as well open for discussion.
>
> Signed-off-by: Dave Airlie <airlied at redhat.com>
> ---
>  src/mesa/drivers/dri/i965/intel_tex_image.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/src/mesa/drivers/dri/i965/intel_tex_image.c b/src/mesa/drivers/dri/i965/intel_tex_image.c
> index 9cc426c..58cecd3 100644
> --- a/src/mesa/drivers/dri/i965/intel_tex_image.c
> +++ b/src/mesa/drivers/dri/i965/intel_tex_image.c
> @@ -49,8 +49,7 @@ intel_miptree_create_for_teximage(struct brw_context *brw,
>     /* Figure out image dimensions at start level. */
>     for (i = intelImage->base.Base.Level; i > 0; i--) {
>        width <<= 1;
> -      if (height != 1)
> -         height <<= 1;
> +      height <<= 1;
>        if (intelObj->base.Target == GL_TEXTURE_3D)
>           depth <<= 1;
>     }
> --
> 2.5.5
>
> _______________________________________________
> 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