summaryrefslogtreecommitdiffstats
path: root/src/intel/isl
diff options
context:
space:
mode:
authorNanley Chery <nanley.g.chery@intel.com>2016-03-03 15:49:13 -0800
committerNanley Chery <nanley.g.chery@intel.com>2016-03-04 13:20:44 -0800
commita6fb62a86441ce7296f9d06cf7a71d2f51f3a3f5 (patch)
treed261e144532d5479706e1d34c82b764dc3d2be5d /src/intel/isl
parentb80c8ebc4587a15c823b5223419eadb0ca51cdd1 (diff)
downloadexternal_mesa3d-a6fb62a86441ce7296f9d06cf7a71d2f51f3a3f5.zip
external_mesa3d-a6fb62a86441ce7296f9d06cf7a71d2f51f3a3f5.tar.gz
external_mesa3d-a6fb62a86441ce7296f9d06cf7a71d2f51f3a3f5.tar.bz2
isl: Fix RenderTargetViewExtent for mipmapped 3D surfaces
Match the comment stated above the assignment. Signed-off-by: Nanley Chery <nanley.g.chery@intel.com> Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
Diffstat (limited to 'src/intel/isl')
-rw-r--r--src/intel/isl/isl_surface_state.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/intel/isl/isl_surface_state.c b/src/intel/isl/isl_surface_state.c
index fe8f07c..f3390a6 100644
--- a/src/intel/isl/isl_surface_state.c
+++ b/src/intel/isl/isl_surface_state.c
@@ -346,7 +346,8 @@ isl_genX(surf_fill_state_s)(const struct isl_device *dev, void *state,
* indicates the extent of the accessible 'R' coordinates minus 1 on
* the LOD currently being rendered to.
*/
- s.RenderTargetViewExtent = info->surf->logical_level0_px.depth - 1;
+ s.RenderTargetViewExtent = isl_minify(info->surf->logical_level0_px.depth,
+ info->view->base_level) - 1;
break;
default:
unreachable(!"bad SurfaceType");