i965: Mark backend_instruction and bblock_t as structs.
authorMatt Turner <mattst88@gmail.com>
Sun, 15 Jun 2014 05:53:40 +0000 (22:53 -0700)
committerMatt Turner <mattst88@gmail.com>
Tue, 17 Jun 2014 17:18:33 +0000 (10:18 -0700)
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@intel.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/dri/i965/brw_fs.h
src/mesa/drivers/dri/i965/brw_shader.h

index 885c186bb390ab4af3406086474685e0425ab792..b86a31c37714a5f060af58e0924a26a977a29fa3 100644 (file)
@@ -54,7 +54,7 @@ extern "C" {
 
 #define MAX_SAMPLER_MESSAGE_SIZE 11
 
-class bblock_t;
+struct bblock_t;
 namespace {
    struct acp_entry;
 }
index cb47cdb46fe0f7ea634b58d21cf0fc13a2ca273c..e602bcd2fa4119863470f978b6dbccb76ea20bdc 100644 (file)
@@ -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;