diff options
author | Keith Whitwell <[email protected]> | 2005-04-21 14:46:57 +0000 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2005-04-21 14:46:57 +0000 |
commit | 7c26b61f9366a397e353d7b7f1f1d1f6d0dcd0c7 (patch) | |
tree | 0e08540aaf4b7f1a4511f132fbdf03960f43d5fa /src/mesa/main | |
parent | 88b69d799800bfec061943204de1627989f42fad (diff) |
Reduce the size of mesa's internal fragment and vertex program
representations by switching to packed structures for registers and
instructions.
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | src/mesa/main/mtypes.h | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index 37803b7b4bd..ac9fc87d1e4 100644 --- a/src/mesa/main/mtypes.h +++ b/src/mesa/main/mtypes.h @@ -214,6 +214,27 @@ enum /** + * Indexes for vertex program result attributes + */ +#define VERT_RESULT_HPOS 0 +#define VERT_RESULT_COL0 1 +#define VERT_RESULT_COL1 2 +#define VERT_RESULT_BFC0 3 +#define VERT_RESULT_BFC1 4 +#define VERT_RESULT_FOGC 5 +#define VERT_RESULT_PSIZ 6 +#define VERT_RESULT_TEX0 7 +#define VERT_RESULT_TEX1 8 +#define VERT_RESULT_TEX2 9 +#define VERT_RESULT_TEX3 10 +#define VERT_RESULT_TEX4 11 +#define VERT_RESULT_TEX5 12 +#define VERT_RESULT_TEX6 13 +#define VERT_RESULT_TEX7 14 +#define VERT_RESULT_MAX 15 + + +/** * Indexes for fragment program input attributes. */ enum @@ -1679,7 +1700,7 @@ struct atifs_machine */ enum register_file { - PROGRAM_TEMPORARY = 10, + PROGRAM_TEMPORARY, PROGRAM_INPUT, PROGRAM_OUTPUT, PROGRAM_LOCAL_PARAM, |