summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_cs.cpp
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2015-05-13 09:59:59 +1000
committerDave Airlie <airlied@redhat.com>2015-05-13 10:09:48 +1000
commit71fc52072b1ecf01764c37d64ad160fcbfe19e11 (patch)
treebefc7e0658345fc1a12def2d774c3acab91560a7 /src/mesa/drivers/dri/i965/brw_cs.cpp
parentc696a318ef1eb58f65fb867d5616bbefd1def31e (diff)
downloadexternal_mesa3d-71fc52072b1ecf01764c37d64ad160fcbfe19e11.zip
external_mesa3d-71fc52072b1ecf01764c37d64ad160fcbfe19e11.tar.gz
external_mesa3d-71fc52072b1ecf01764c37d64ad160fcbfe19e11.tar.bz2
i965/cs: drop explicit initialisers in C++ file
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>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_cs.cpp')
-rw-r--r--src/mesa/drivers/dri/i965/brw_cs.cpp10
1 files changed, 6 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..fc2d857 100644
--- a/src/mesa/drivers/dri/i965/brw_cs.cpp
+++ b/src/mesa/drivers/dri/i965/brw_cs.cpp
@@ -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
};