[Mesa-dev] [PATCH] scons: add code to generate format_fallback.c file

Eric Engestrom eric.engestrom at imgtec.com
Wed Jun 28 08:33:55 UTC 2017


On Tuesday, 2017-06-27 20:58:48 -0600, Brian Paul wrote:
> Fixes broken SCons build since a1983223d8839a0c9

Reviewed-by: Eric Engestrom <eric.engestrom at imgtec.com>

Btw, the format "Fixes: $sha1 [optional commit title]" allows scripts to
parse it and eg. apply to relevant stable branches.

In this case:
Fixes: a1983223d8839a0c9 "mesa: Add _mesa_format_fallback_rgbx_to_rgba() [v2]"

> ---
>  src/mesa/SConscript | 7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/src/mesa/SConscript b/src/mesa/SConscript
> index fa4efe1..b63e15a 100644
> --- a/src/mesa/SConscript
> +++ b/src/mesa/SConscript
> @@ -79,6 +79,13 @@ format_unpack = env.CodeGenerate(
>        command = python_cmd + ' $SCRIPT ' + ' $SOURCE > $TARGET'
>  )
>  
> +format_fallback = env.CodeGenerate(
> +      target = 'main/format_fallback.c',
> +      script = 'main/format_fallback.py',
> +      source = 'main/formats.csv',
> +      command = python_cmd + ' $SCRIPT ' + ' $SOURCE ' + ' $TARGET'
> +)
> +
>  #
>  # Assembly sources
>  #
> -- 
> 1.9.1
> 


More information about the mesa-dev mailing list