[Mesa-dev] [PATCH 01/32] i965/surface_state: Use the minified depth for number of image layers

Pohjolainen, Topi topi.pohjolainen at gmail.com
Thu Jul 20 09:28:42 UTC 2017


I already pushed an equivalent fix (which you actually reviewed).

On Wed, Jul 19, 2017 at 02:01:27PM -0700, Jason Ekstrand wrote:
> Otherwise, if the image is 3D, then we may end up with a number of
> layers that is too high for LOD > 0.
> ---
>  src/mesa/drivers/dri/i965/brw_wm_surface_state.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c b/src/mesa/drivers/dri/i965/brw_wm_surface_state.c
> index 67dc9d8..e878613 100644
> --- a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c
> +++ b/src/mesa/drivers/dri/i965/brw_wm_surface_state.c
> @@ -1662,7 +1662,7 @@ update_image_surface(struct brw_context *brw,
>           struct intel_mipmap_tree *mt = intel_obj->mt;
>           const unsigned num_layers = (!u->Layered ? 1 :
>                                        obj->Target == GL_TEXTURE_CUBE_MAP ? 6 :
> -                                      mt->logical_depth0);
> +                                      mt->level[u->Level].depth);
>  
>           struct isl_view view = {
>              .format = format,
> -- 
> 2.5.0.400.gff86faf
> 
> _______________________________________________
> 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