tgsi: added tgsi_full_instruction::Flags field
authorBrian Paul <brianp@vmware.com>
Thu, 20 Aug 2009 16:25:42 +0000 (10:25 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 20 Aug 2009 16:25:55 +0000 (10:25 -0600)
Users of the parser can make use of this.

src/gallium/auxiliary/tgsi/tgsi_build.c
src/gallium/auxiliary/tgsi/tgsi_parse.h

index d272533d63c764b365317270cf983363f0aee398..94d9c638e1cfb0f6222cf7c5a95d83296c56f867 100644 (file)
@@ -477,6 +477,8 @@ tgsi_default_full_instruction( void )
       full_instruction.FullSrcRegisters[i] = tgsi_default_full_src_register();
    }
 
+   full_instruction.Flags = 0x0;
+
    return full_instruction;
 }
 
index a289e26e3aca6b6e08b31472e9e3971931b5967a..5268c029006ca6c6e4ff4287887014bda6603206 100644 (file)
@@ -91,6 +91,7 @@ struct tgsi_full_instruction
    struct tgsi_instruction_ext_texture InstructionExtTexture;
    struct tgsi_full_dst_register       FullDstRegisters[TGSI_FULL_MAX_DST_REGISTERS];
    struct tgsi_full_src_register       FullSrcRegisters[TGSI_FULL_MAX_SRC_REGISTERS];
+   uint Flags;  /**< user-defined usage */
 };
 
 union tgsi_full_token