i965/cs: drop explicit initialisers in C++ file
authorDave Airlie <airlied@redhat.com>
Tue, 12 May 2015 23:59:59 +0000 (09:59 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 13 May 2015 00:09:48 +0000 (10:09 +1000)
gcc 4.4.7 really doesn't like them, and they aren't standard
C++, they seem to be a gcc extension.

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/mesa/drivers/dri/i965/brw_cs.cpp

index 70731e4a4fffd66a30ccc626edc328ab7904caf9..fc2d8576495bc8928df5b60e165a949638b80fcf 100644 (file)
@@ -368,9 +368,11 @@ 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,
+   /* explicit initialisers aren't valid C++, comment
+    * them for documentation purposes */
+   /* .dirty = */{
+      /* .mesa = */ 0,
+      /* .brw = */  BRW_NEW_CS_PROG_DATA,
    },
-   .emit = brw_upload_cs_state
+   /* .emit = */ brw_upload_cs_state
 };