diff options
author | Keith Whitwell <[email protected]> | 2005-11-01 17:25:49 +0000 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2005-11-01 17:25:49 +0000 |
commit | c3626a91cee5034528f3f92c802a8e5947ea5f92 (patch) | |
tree | fd16d99ef237e31067e9f7a74bc2cee471bcc7e9 /src/mesa/shader/nvfragprog.h | |
parent | 6aa6d440d9d312cb984020e746aa80c3dbf6ea2c (diff) |
Several fp and vp tweaks:
- Renumber VERT_RESULT_* values so that they match the
numbers of the corresponding FRAG_ATTRIB_ values.
- Add ctx->VertexProgram._Current and FragmentProgram._Current
values which point to either the current client-supplied
program if enabled, or otherwise to the current mesa-internal
program. Thus this program is always the correct one for
the current state, providing that the mesa flags to turn on
automatic generation are enabled.
- Add callbacks to ctx->Driver.BindProgram() in texenvprogram.c
and t_vp_build.c so that the driver knows when the generated
program changes. This is cleaner than trying to code all the
possible _NEW_* flags into the driver, and more precise as well.
- Add a UsesKill flag to identify fragment programs with that
instruction, as these can require special treatment.
- Move the FRAG_OUTPUT values to mtypes.h, near to similar defn's.
Diffstat (limited to 'src/mesa/shader/nvfragprog.h')
-rw-r--r-- | src/mesa/shader/nvfragprog.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/mesa/shader/nvfragprog.h b/src/mesa/shader/nvfragprog.h index 99ec20bb828..bd9c8bb06c1 100644 --- a/src/mesa/shader/nvfragprog.h +++ b/src/mesa/shader/nvfragprog.h @@ -37,15 +37,6 @@ #include "mtypes.h" -/** - * Fragment program output registers. - * Note: when we fully suppport GL_ARB_draw_buffers we'll have more than - * one output color. - */ -#define FRAG_OUTPUT_COLR 0 /* fragment color */ -#define FRAG_OUTPUT_COLH 1 /* fragment color, half precision (NV) */ -#define FRAG_OUTPUT_DEPR 2 /* depth/Z */ - /* condition codes */ #define COND_GT 1 /* greater than zero */ |