[Mesa-dev] [PATCH 01/27] i965/meta: Remove unused brw_get_rb_for_slice()

Jason Ekstrand jason at jlekstrand.net
Mon Jan 16 17:05:41 UTC 2017


Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>

On Mon, Jan 16, 2017 at 1:13 AM, Topi Pohjolainen <
topi.pohjolainen at gmail.com> wrote:

> Signed-off-by: Topi Pohjolainen <topi.pohjolainen at intel.com>
> ---
>  src/mesa/drivers/dri/i965/brw_meta_util.c | 44
> -------------------------------
>  src/mesa/drivers/dri/i965/brw_meta_util.h |  5 ----
>  2 files changed, 49 deletions(-)
>
> diff --git a/src/mesa/drivers/dri/i965/brw_meta_util.c
> b/src/mesa/drivers/dri/i965/brw_meta_util.c
> index 6d6b692..07a160f 100644
> --- a/src/mesa/drivers/dri/i965/brw_meta_util.c
> +++ b/src/mesa/drivers/dri/i965/brw_meta_util.c
> @@ -267,50 +267,6 @@ brw_meta_mirror_clip_and_scissor(const struct
> gl_context *ctx,
>  }
>
>  /**
> - * Creates a new named renderbuffer that wraps the first slice
> - * of an existing miptree.
> - *
> - * Clobbers the current renderbuffer binding (ctx->CurrentRenderbuffer).
> - */
> -struct gl_renderbuffer *
> -brw_get_rb_for_slice(struct brw_context *brw,
> -                     struct intel_mipmap_tree *mt,
> -                     unsigned level, unsigned layer, bool flat)
> -{
> -   struct gl_context *ctx = &brw->ctx;
> -   struct gl_renderbuffer *rb = ctx->Driver.NewRenderbuffer(ctx,
> 0xDEADBEEF);
> -   struct intel_renderbuffer *irb = intel_renderbuffer(rb);
> -
> -   rb->RefCount = 1;
> -   rb->Format = mt->format;
> -   rb->_BaseFormat = _mesa_get_format_base_format(mt->format);
> -
> -   /* Program takes care of msaa and mip-level access manually for
> stencil.
> -    * The surface is also treated as Y-tiled instead of as W-tiled
> calling for
> -    * twice the width and half the height in dimensions.
> -    */
> -   if (flat) {
> -      const unsigned halign_stencil = 8;
> -
> -      rb->NumSamples = 0;
> -      rb->Width = ALIGN(mt->total_width, halign_stencil) * 2;
> -      rb->Height = (mt->total_height / mt->physical_depth0) / 2;
> -      irb->mt_level = 0;
> -   } else {
> -      rb->NumSamples = mt->num_samples;
> -      rb->Width = mt->logical_width0;
> -      rb->Height = mt->logical_height0;
> -      irb->mt_level = level;
> -   }
> -
> -   irb->mt_layer = layer;
> -
> -   intel_miptree_reference(&irb->mt, mt);
> -
> -   return rb;
> -}
> -
> -/**
>   * Determine if fast color clear supports the given clear color.
>   *
>   * Fast color clear can only clear to color values of 1.0 or 0.0.  At the
> diff --git a/src/mesa/drivers/dri/i965/brw_meta_util.h
> b/src/mesa/drivers/dri/i965/brw_meta_util.h
> index 93bc72c..207a54b 100644
> --- a/src/mesa/drivers/dri/i965/brw_meta_util.h
> +++ b/src/mesa/drivers/dri/i965/brw_meta_util.h
> @@ -57,11 +57,6 @@ brw_is_color_fast_clear_compatible(struct brw_context
> *brw,
>                                     const struct intel_mipmap_tree *mt,
>                                     const union gl_color_union *color);
>
> -struct gl_renderbuffer *brw_get_rb_for_slice(struct brw_context *brw,
> -                                             struct intel_mipmap_tree *mt,
> -                                             unsigned level, unsigned
> layer,
> -                                             bool flat);
> -
>  #ifdef __cplusplus
>  }
>  #endif
> --
> 2.5.5
>
> _______________________________________________
> 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/20170116/f907b133/attachment.html>


More information about the mesa-dev mailing list