[Mesa-dev] [PATCH 1/3] i965: Fix comment to include 3d textures

Alejandro Piñeiro apinheiro at igalia.com
Wed Jan 11 10:37:37 UTC 2017


The three patches:
Reviewed-by: Alejandro Piñeiro <apinheiro at igalia.com>

On 10/01/17 21:56, Anuj Phogat wrote:
> Signed-off-by: Anuj Phogat <anuj.phogat at gmail.com>
> ---
>  src/mesa/drivers/dri/i965/brw_tex_layout.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/src/mesa/drivers/dri/i965/brw_tex_layout.c b/src/mesa/drivers/dri/i965/brw_tex_layout.c
> index 768f8a8..bf8c338 100644
> --- a/src/mesa/drivers/dri/i965/brw_tex_layout.c
> +++ b/src/mesa/drivers/dri/i965/brw_tex_layout.c
> @@ -295,7 +295,8 @@ brw_miptree_layout_2d(struct intel_mipmap_tree *mt)
>     unsigned y = 0;
>     unsigned width = mt->physical_width0;
>     unsigned height = mt->physical_height0;
> -   unsigned depth = mt->physical_depth0; /* number of array layers. */
> +   /* Number of layers of array texture or slices of 3d texture (gen9+). */
> +   unsigned depth = mt->physical_depth0;
>     unsigned int bw, bh;
>  
>     _mesa_get_format_block_size(mt->format, &bw, &bh);



More information about the mesa-dev mailing list