diff options
author | Xiang, Haihao <haihao.xiang@intel.com> | 2008-01-07 14:08:36 +0800 |
---|---|---|
committer | Xiang, Haihao <haihao.xiang@intel.com> | 2008-01-07 14:08:36 +0800 |
commit | 3369cd9a6f943365242d7832e69788d4aede9a8f (patch) | |
tree | 2cf235e7a047cdd109d293cab7ac1f27e3abc5a9 /src/mesa/drivers/dri/i915/i915_context.h | |
parent | 601a6b872c33bfe3cb4ea03a5a8ba5ebe92dedaf (diff) |
i915: Keith Whitwell's swizzling TEX patch. fix #8283
Diffstat (limited to 'src/mesa/drivers/dri/i915/i915_context.h')
-rw-r--r-- | src/mesa/drivers/dri/i915/i915_context.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i915/i915_context.h b/src/mesa/drivers/dri/i915/i915_context.h index 1070de1a540..c6958dd8d4b 100644 --- a/src/mesa/drivers/dri/i915/i915_context.h +++ b/src/mesa/drivers/dri/i915/i915_context.h @@ -29,6 +29,7 @@ #define I915CONTEXT_INC #include "intel_context.h" +#include "i915_reg.h" #define I915_FALLBACK_TEXTURE 0x1000 #define I915_FALLBACK_COLORMASK 0x2000 @@ -110,6 +111,7 @@ #define I915_PROGRAM_SIZE 192 +#define I915_MAX_INSN (I915_MAX_TEX_INSN+I915_MAX_ALU_INSN) /* Hardware version of a parsed fragment program. "Derived" from the * mesa fragment_program struct. @@ -161,6 +163,10 @@ struct i915_fragment_program */ + /* Track which R registers are "live" for each instruction. + * A register is live between the time it's written to and the last time + * it's read. */ + GLuint usedRegs[I915_MAX_INSN]; /* Helpers for i915_fragprog.c: */ |