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:51:55 +0000 (10:51 -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 010d501c601a901a7ecffc2a0d8c9c5dae54b1fb..e0cfc54420e61d5716899684503ff65073189f41 100644 (file)
@@ -482,6 +482,8 @@ tgsi_default_full_instruction( void )
       full_instruction.FullSrcRegisters[i] = tgsi_default_full_src_register();
    }
 
+   full_instruction.Flags = 0x0;
+
    return full_instruction;
 }
 
index 1035bda1a87391b9ce674dee326cefe5929cf616..a26ee5ba8627e80fc11359e79e255a1b4f6ab048 100644 (file)
@@ -87,6 +87,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