[Mesa-dev] [PATCH] radeonsi: fix images with level > 0
Bas Nieuwenhuizen
bas at basnieuwenhuizen.nl
Fri Jun 3 20:09:14 UTC 2016
Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
On Fri, Jun 3, 2016 at 7:20 PM, Marek Olšák <maraeo at gmail.com> wrote:
> From: Marek Olšák <marek.olsak at amd.com>
>
> This should fix spec at arb_shader_image_load_store@level.
>
> Broken by:
> Commit: 95c5bbae66af3ca1f805d94f6fe8d8e4ba2c9c43
> radeonsi: set some image descriptor fields at bind time
>
> Not tested because I'm on LLVM 3.8 right now.
> ---
> src/gallium/drivers/radeonsi/si_descriptors.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/gallium/drivers/radeonsi/si_descriptors.c b/src/gallium/drivers/radeonsi/si_descriptors.c
> index 44bb568..1dc96fa 100644
> --- a/src/gallium/drivers/radeonsi/si_descriptors.c
> +++ b/src/gallium/drivers/radeonsi/si_descriptors.c
> @@ -582,7 +582,7 @@ static void si_set_shader_image(struct si_context *ctx,
> view->u.tex.last_layer,
> width, height, depth,
> desc, NULL);
> - si_set_mutable_tex_desc_fields(tex, tex->surface.level, level,
> + si_set_mutable_tex_desc_fields(tex, &tex->surface.level[level], level,
> util_format_get_blockwidth(view->format),
> false, desc);
> }
> --
> 2.7.4
>
> _______________________________________________
> 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