Oops my bad...
Reviewed-by: Roland Scheidegger <srol...@vmware.com>

Am 02.02.2018 um 07:57 schrieb Dave Airlie:
> From: Dave Airlie <airl...@redhat.com>
> 
> This fixes a crash in:
> KHR-GL45.texture_cube_map_array.texture_size_compute_sh.
> 
> Signed-off-by: Dave Airlie <airl...@redhat.com>
> ---
>  src/gallium/drivers/r600/r600_state_common.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/gallium/drivers/r600/r600_state_common.c 
> b/src/gallium/drivers/r600/r600_state_common.c
> index d9c74b5f47..477372c3c1 100644
> --- a/src/gallium/drivers/r600/r600_state_common.c
> +++ b/src/gallium/drivers/r600/r600_state_common.c
> @@ -1421,7 +1421,7 @@ void eg_setup_buffer_constants(struct r600_context 
> *rctx, int shader_type)
>                       int idx = i - sview_bits;
>                       if (images->enabled_mask & (1 << idx)) {
>                               uint32_t offset = (base_offset / 4) + i;
> -                             constants[offset] = 
> images->views[i].base.resource->array_size / 6;
> +                             constants[offset] = 
> images->views[idx].base.resource->array_size / 6;
>                       }
>               }
>       }
> 

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to