i965: Fix comment to include 3d textures
authorAnuj Phogat <anuj.phogat@gmail.com>
Tue, 10 Jan 2017 22:01:00 +0000 (14:01 -0800)
committerAnuj Phogat <anuj.phogat@gmail.com>
Thu, 19 Jan 2017 22:28:18 +0000 (14:28 -0800)
Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
src/mesa/drivers/dri/i965/brw_tex_layout.c

index 768f8a8af18ac2119e501a23072349da778af31e..bf8c3386f0a660a724f18276e834770c3dc2bb03 100644 (file)
@@ -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);