[Mesa-dev] [PATCH 01/10] i965: Use constant miptree pointer in tex surface setup

Francisco Jerez currojerez at riseup.net
Wed Aug 19 07:20:00 PDT 2015


Topi Pohjolainen <topi.pohjolainen at intel.com> writes:

> as it is only used for reading.
>
> Signed-off-by: Topi Pohjolainen <topi.pohjolainen at intel.com>
> ---
>  src/mesa/drivers/dri/i965/brw_context.h           | 2 +-
>  src/mesa/drivers/dri/i965/gen7_wm_surface_state.c | 2 +-
>  src/mesa/drivers/dri/i965/gen8_surface_state.c    | 2 +-
>  3 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/src/mesa/drivers/dri/i965/brw_context.h b/src/mesa/drivers/dri/i965/brw_context.h
> index 3553f6e..ae29798 100644
> --- a/src/mesa/drivers/dri/i965/brw_context.h
> +++ b/src/mesa/drivers/dri/i965/brw_context.h
> @@ -990,7 +990,7 @@ struct brw_context
>                                                uint32_t surf_index);
>  
>        void (*emit_texture_surface_state)(struct brw_context *brw,
> -                                         struct intel_mipmap_tree *mt,
> +                                         const struct intel_mipmap_tree *mt,
>                                           GLenum target,
>                                           unsigned min_layer,
>                                           unsigned max_layer,
> diff --git a/src/mesa/drivers/dri/i965/gen7_wm_surface_state.c b/src/mesa/drivers/dri/i965/gen7_wm_surface_state.c
> index 15ab2b0..494bc22 100644
> --- a/src/mesa/drivers/dri/i965/gen7_wm_surface_state.c
> +++ b/src/mesa/drivers/dri/i965/gen7_wm_surface_state.c
> @@ -265,7 +265,7 @@ gen7_emit_buffer_surface_state(struct brw_context *brw,
>  
>  static void
>  gen7_emit_texture_surface_state(struct brw_context *brw,
> -                                struct intel_mipmap_tree *mt,
> +                                const struct intel_mipmap_tree *mt,
>                                  GLenum target,
>                                  unsigned min_layer, unsigned max_layer,
>                                  unsigned min_level, unsigned max_level,
> diff --git a/src/mesa/drivers/dri/i965/gen8_surface_state.c b/src/mesa/drivers/dri/i965/gen8_surface_state.c
> index b2d1a57..c595ec3 100644
> --- a/src/mesa/drivers/dri/i965/gen8_surface_state.c
> +++ b/src/mesa/drivers/dri/i965/gen8_surface_state.c
> @@ -184,7 +184,7 @@ gen8_emit_buffer_surface_state(struct brw_context *brw,
>  
>  static void
>  gen8_emit_texture_surface_state(struct brw_context *brw,
> -                                struct intel_mipmap_tree *mt,
> +                                const struct intel_mipmap_tree *mt,
>                                  GLenum target,
>                                  unsigned min_layer, unsigned max_layer,
>                                  unsigned min_level, unsigned max_level,
> -- 
> 1.9.3
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reviewed-by: Francisco Jerez <currojerez at riseup.net>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 212 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20150819/b9756ddd/attachment.sig>


More information about the mesa-dev mailing list