diff options
author | Brian Paul <[email protected]> | 2009-02-20 13:42:08 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-02-20 13:42:08 -0700 |
commit | 44e018c09e7aeba9fd9f4c380da224bd6622c470 (patch) | |
tree | cbbb9864196469018b93212550b626ea166bf0e4 /src/mesa/shader/arbprogparse.c | |
parent | a79186e29efebed04c927d024b013435e7ff5725 (diff) |
mesa: add TexShadow field to prog_instruction
If the instruction is TEX/TXP/TXL/etc the TexShadow field will be true if
the instruction is a texture fetch with shadow compare.
Diffstat (limited to 'src/mesa/shader/arbprogparse.c')
-rw-r--r-- | src/mesa/shader/arbprogparse.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/shader/arbprogparse.c b/src/mesa/shader/arbprogparse.c index 2e0fc3694a4..62edb7f5954 100644 --- a/src/mesa/shader/arbprogparse.c +++ b/src/mesa/shader/arbprogparse.c @@ -3104,6 +3104,9 @@ parse_fp_instruction (GLcontext * ctx, const GLubyte ** inst, break; } + if (shadow_tex) + fp->TexShadow = 1; + /* Don't test the first time a particular sampler is seen. Each time * after that, make sure the shadow state is the same. */ |