[Mesa-dev] [PATCH 13/22] i965/fbo: Add support for isl-based miptrees in rb wrapper
Kenneth Graunke
kenneth at whitecape.org
Tue Jul 18 21:26:13 UTC 2017
On Tuesday, July 18, 2017 1:46:23 AM PDT Topi Pohjolainen 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;
> }
>
Patches 1-13 are:
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
I don't really grok some of the rest, and it sounds like Jason's further
in reviewing this than I am, so I'll just let him handle the rest.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20170718/7f392aaa/attachment.sig>
More information about the mesa-dev
mailing list