mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 19:40:10 +01:00
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>
This commit is contained in:
parent
b80c8ebc45
commit
a6fb62a864
1 changed files with 2 additions and 1 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue