From: Anuj Phogat Date: Tue, 10 Jan 2017 22:01:00 +0000 (-0800) Subject: i965: Fix comment to include 3d textures X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=47d9b3a9dd811ae9c4733d1b0ccdd3eedc7a1b97;p=mesa.git i965: Fix comment to include 3d textures Signed-off-by: Anuj Phogat Reviewed-by: Alejandro PiƱeiro --- diff --git a/src/mesa/drivers/dri/i965/brw_tex_layout.c b/src/mesa/drivers/dri/i965/brw_tex_layout.c index 768f8a8af18..bf8c3386f0a 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);