[Mesa-dev] [RFC 06/24] nvc0: fix address offset when images have multiple levels

Ilia Mirkin imirkin at alum.mit.edu
Wed Apr 13 20:23:30 UTC 2016


Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>

On Tue, Apr 12, 2016 at 7:56 PM, Samuel Pitoiset
<samuel.pitoiset at gmail.com> wrote:
> This fixes arb_shader_image_load_store-level.
>
> Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
> ---
>  src/gallium/drivers/nouveau/nvc0/nvc0_tex.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_tex.c b/src/gallium/drivers/nouveau/nvc0/nvc0_tex.c
> index fa89324..d1240b4 100644
> --- a/src/gallium/drivers/nouveau/nvc0/nvc0_tex.c
> +++ b/src/gallium/drivers/nouveau/nvc0/nvc0_tex.c
> @@ -890,6 +890,7 @@ nve4_set_surface_info(struct nouveau_pushbuf *push,
>              address += mt->layer_stride * z;
>           }
>        }
> +      address += lvl->offset;
>
>        if (res->base.target == PIPE_TEXTURE_CUBE_ARRAY)
>           depth = view->u.tex.last_layer - view->u.tex.first_layer + 1;
> --
> 2.8.0
>
> _______________________________________________
> 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