[Mesa-dev] [PATCH] i965/cs: drop explicit initialisers in C++ file

Jordan Justen jordan.l.justen at intel.com
Tue May 12 17:04:10 PDT 2015


We could keep them in comments...

Reviewed-by: Jordan Justen <jordan.l.justen at intel.com>

On 2015-05-12 17:01:17, Dave Airlie wrote:
> From: Dave Airlie <airlied at redhat.com>
> 
> gcc 4.4.7 really doesn't like them, and they aren't standard
> C++, they seem to be a gcc extension.
> 
> Signed-off-by: Dave Airlie <airlied at redhat.com>
> ---
>  src/mesa/drivers/dri/i965/brw_cs.cpp | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/src/mesa/drivers/dri/i965/brw_cs.cpp b/src/mesa/drivers/dri/i965/brw_cs.cpp
> index 70731e4..5158755 100644
> --- a/src/mesa/drivers/dri/i965/brw_cs.cpp
> +++ b/src/mesa/drivers/dri/i965/brw_cs.cpp
> @@ -368,9 +368,9 @@ brw_upload_cs_state(struct brw_context *brw)
>  
>  extern "C"
>  const struct brw_tracked_state brw_cs_state = {
> -   .dirty = {
> -      .mesa  = 0,
> -      .brw   = BRW_NEW_CS_PROG_DATA,
> +   {
> +      0,
> +      BRW_NEW_CS_PROG_DATA,
>     },
> -   .emit = brw_upload_cs_state
> +   brw_upload_cs_state
>  };
> -- 
> 2.1.0
> 
> _______________________________________________
> 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