diff options
author | Anuj Phogat <[email protected]> | 2017-01-10 14:01:00 -0800 |
---|---|---|
committer | Anuj Phogat <[email protected]> | 2017-01-19 14:28:18 -0800 |
commit | 47d9b3a9dd811ae9c4733d1b0ccdd3eedc7a1b97 (patch) | |
tree | 45ac121faf2c2a8d3c8271c4c1204f023ed5d03f /src | |
parent | de0b0a3a9cfd25ac5082223322002710a23da8ab (diff) |
i965: Fix comment to include 3d textures
Signed-off-by: Anuj Phogat <[email protected]>
Reviewed-by: Alejandro PiƱeiro <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_tex_layout.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); |