On 28.07.2015 19:05, Marek Olšák wrote:
> From: Marek Olšák <marek.ol...@amd.com>
> 
> Broken since:
>     46b2b3b - radeonsi: don't change pipe_resource in resource_copy_region
> 
> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=91444
> ---
>  src/gallium/drivers/radeonsi/si_state.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/gallium/drivers/radeonsi/si_state.c 
> b/src/gallium/drivers/radeonsi/si_state.c
> index ab5c3ca..6c7170d 100644
> --- a/src/gallium/drivers/radeonsi/si_state.c
> +++ b/src/gallium/drivers/radeonsi/si_state.c
> @@ -2511,7 +2511,7 @@ si_create_sampler_view_custom(struct pipe_context *ctx,
>                         S_008F1C_LAST_LEVEL(texture->nr_samples > 1 ?
>                                                     
> util_logbase2(texture->nr_samples) :
>                                                     last_level) |
> -                       S_008F1C_TILING_INDEX(si_tile_mode_index(tmp, 0, 
> false)) |
> +                       S_008F1C_TILING_INDEX(si_tile_mode_index(tmp, 
> base_level, false)) |
>                         S_008F1C_POW2_PAD(texture->last_level > 0) |
>                         S_008F1C_TYPE(si_tex_dim(texture->target, 
> texture->nr_samples)));
>       view->state[4] = (S_008F20_DEPTH(depth - 1) | S_008F20_PITCH(pitch - 
> 1));
> 

Reviewed-and-Tested-by: Michel Dänzer <michel.daen...@amd.com>


-- 
Earthling Michel Dänzer               |               http://www.amd.com
Libre software enthusiast             |             Mesa and X developer
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to