[Mesa-dev] [PATCH 02/17] i965/miptree: Prepare has_color_unresolved() for isl based
Jason Ekstrand
jason at jlekstrand.net
Fri Jul 21 18:18:57 UTC 2017
Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>
On Fri, Jul 21, 2017 at 8:00 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_mipmap_tree.c | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
> b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
> index 56f524abca..3cbdf3c938 100644
> --- a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
> +++ b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
> @@ -2197,7 +2197,11 @@ intel_miptree_has_color_unresolved(const struct
> intel_mipmap_tree *mt,
> num_levels = last_level - start_level + 1;
>
> for (uint32_t level = start_level; level <= last_level; level++) {
> - const uint32_t level_layers = MIN2(num_layers,
> mt->level[level].depth);
> + uint32_t level_layers = mt->surf.size > 0 ?
> + get_num_phys_layers(&mt->surf, level) : mt->level[level].depth;
> +
> + level_layers = MIN2(num_layers, level_layers);
> +
> for (unsigned a = 0; a < level_layers; a++) {
> enum isl_aux_state aux_state =
> intel_miptree_get_aux_state(mt, level, start_layer + a);
> --
> 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/20170721/c99edc06/attachment.html>
More information about the mesa-dev
mailing list