Mesa (master): i965: Mark backend_instruction and bblock_t as structs.

Matt Turner mattst88 at kemper.freedesktop.org
Tue Jun 17 17:18:54 UTC 2014


Module: Mesa
Branch: master
Commit: 836f4299e870a7cff04c2f646a37533d0e68ccd7
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=836f4299e870a7cff04c2f646a37533d0e68ccd7

Author: Matt Turner <mattst88 at gmail.com>
Date:   Sat Jun 14 22:53:40 2014 -0700

i965: Mark backend_instruction and bblock_t as structs.

They have to be marked as structs for C code elsewhere. bblock_t is
already defined as a struct, and all of backend_instruction's fields are
public anyway.

Reviewed-by: Tapani Pälli <tapani.palli at intel.com>
Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>

---

 src/mesa/drivers/dri/i965/brw_fs.h     |    2 +-
 src/mesa/drivers/dri/i965/brw_shader.h |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_fs.h b/src/mesa/drivers/dri/i965/brw_fs.h
index 885c186..b86a31c 100644
--- a/src/mesa/drivers/dri/i965/brw_fs.h
+++ b/src/mesa/drivers/dri/i965/brw_fs.h
@@ -54,7 +54,7 @@ extern "C" {
 
 #define MAX_SAMPLER_MESSAGE_SIZE 11
 
-class bblock_t;
+struct bblock_t;
 namespace {
    struct acp_entry;
 }
diff --git a/src/mesa/drivers/dri/i965/brw_shader.h b/src/mesa/drivers/dri/i965/brw_shader.h
index cb47cdb..e602bcd 100644
--- a/src/mesa/drivers/dri/i965/brw_shader.h
+++ b/src/mesa/drivers/dri/i965/brw_shader.h
@@ -43,7 +43,7 @@ enum PACKED register_file {
 
 class cfg_t;
 
-class backend_instruction : public exec_node {
+struct backend_instruction : public exec_node {
 public:
    bool is_tex() const;
    bool is_math() const;




More information about the mesa-commit mailing list