[Mesa-dev] [PATCH 2/2] isl: Fix RenderTargetViewExtent for mipmapped 3D surfaces
Jason Ekstrand
jason at jlekstrand.net
Fri Mar 4 19:31:12 UTC 2016
LGTM
On Fri, Mar 4, 2016 at 10:03 AM, Nanley Chery <nanleychery at gmail.com> wrote:
> From: Nanley Chery <nanley.g.chery at intel.com>
>
> Match the comment stated above the assignment.
>
> Signed-off-by: Nanley Chery <nanley.g.chery at intel.com>
> ---
> src/intel/isl/isl_surface_state.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> 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");
> --
> 2.7.2
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20160304/b871e40b/attachment.html>
More information about the mesa-dev
mailing list