[Mesa-dev] [PATCH 13/22] i965/fbo: Add support for isl-based miptrees in rb wrapper
Jason Ekstrand
jason at jlekstrand.net
Tue Jul 18 20:59:55 UTC 2017
Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>
On Tue, Jul 18, 2017 at 1:46 AM, Topi Pohjolainen <
topi.pohjolainen at gmail.com> wrote:
> Signed-off-by: Topi Pohjolainen <topi.pohjolainen at intel.com>
> ---
> src/mesa/drivers/dri/i965/intel_fbo.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/src/mesa/drivers/dri/i965/intel_fbo.c
> b/src/mesa/drivers/dri/i965/intel_fbo.c
> index 1fa40bb5c9..fee4b6fa8c 100644
> --- a/src/mesa/drivers/dri/i965/intel_fbo.c
> +++ b/src/mesa/drivers/dri/i965/intel_fbo.c
> @@ -540,6 +540,10 @@ intel_renderbuffer_update_wrapper(struct brw_context
> *brw,
> irb->layer_count = 1;
> } else if (mt->target != GL_TEXTURE_3D && image->TexObject->NumLayers
> > 0) {
> irb->layer_count = image->TexObject->NumLayers;
> + } else if (mt->surf.size > 0) {
> + irb->layer_count = mt->surf.dim == ISL_SURF_DIM_3D ?
> + minify(mt->surf.logical_level0_px.depth,
> level) :
> + mt->surf.logical_level0_px.array_len;
> } else {
> irb->layer_count = mt->level[level].depth / layer_multiplier;
> }
> --
> 2.11.0
>
> _______________________________________________
> 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/20170718/db6558ce/attachment-0001.html>
More information about the mesa-dev
mailing list