[Mesa-dev] [PATCH 23/26] i965: Make brw_set_message_descriptor() non-static.

Kristian Høgsberg hoegsberg at gmail.com
Fri Dec 11 12:59:55 PST 2015


Kenneth Graunke <kenneth at whitecape.org> writes:

> I want to use this directly from brw_vec4_generator.cpp.
>
> Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>

Reviewed-by: Kristian Høgsberg <krh at bitplanet.net>

> ---
>  src/mesa/drivers/dri/i965/brw_eu.h      | 8 ++++++++
>  src/mesa/drivers/dri/i965/brw_eu_emit.c | 2 +-
>  2 files changed, 9 insertions(+), 1 deletion(-)
>
> diff --git a/src/mesa/drivers/dri/i965/brw_eu.h b/src/mesa/drivers/dri/i965/brw_eu.h
> index 686b42b..08ad63a 100644
> --- a/src/mesa/drivers/dri/i965/brw_eu.h
> +++ b/src/mesa/drivers/dri/i965/brw_eu.h
> @@ -204,6 +204,14 @@ void brw_set_sampler_message(struct brw_codegen *p,
>                               unsigned simd_mode,
>                               unsigned return_format);
>  
> +void brw_set_message_descriptor(struct brw_codegen *p,
> +                                brw_inst *inst,
> +                                enum brw_message_target sfid,
> +                                unsigned msg_length,
> +                                unsigned response_length,
> +                                bool header_present,
> +                                bool end_of_thread);
> +
>  void brw_set_dp_read_message(struct brw_codegen *p,
>  			     brw_inst *insn,
>  			     unsigned binding_table_index,
> diff --git a/src/mesa/drivers/dri/i965/brw_eu_emit.c b/src/mesa/drivers/dri/i965/brw_eu_emit.c
> index 25064c0..5fb9662 100644
> --- a/src/mesa/drivers/dri/i965/brw_eu_emit.c
> +++ b/src/mesa/drivers/dri/i965/brw_eu_emit.c
> @@ -534,7 +534,7 @@ brw_set_src1(struct brw_codegen *p, brw_inst *inst, struct brw_reg reg)
>   *       \b before filling out any message-specific data.  Callers can
>   *       choose not to fill in irrelevant bits; they will be zero.
>   */
> -static void
> +void
>  brw_set_message_descriptor(struct brw_codegen *p,
>  			   brw_inst *inst,
>  			   enum brw_message_target sfid,
> -- 
> 2.6.2
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list