diff options
author | Nicolai Hähnle <nhaehnle@gmail.com> | 2009-10-04 11:13:09 +0200 |
---|---|---|
committer | Nicolai Hähnle <nhaehnle@gmail.com> | 2009-10-04 11:13:13 +0200 |
commit | e6b137dcce58ca074458b184304573613917553f (patch) | |
tree | 9b0adc568998581fafdcfece12a342b40aaac7ba /src/mesa/drivers/dri/r300/compiler/radeon_program_constants.h | |
parent | b7cf887ca74561469c144f1d12227e1bcf277e7e (diff) |
r300/compiler: Introduce aluresult register for branch operation support
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
Diffstat (limited to 'src/mesa/drivers/dri/r300/compiler/radeon_program_constants.h')
-rw-r--r-- | src/mesa/drivers/dri/r300/compiler/radeon_program_constants.h | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/r300/compiler/radeon_program_constants.h b/src/mesa/drivers/dri/r300/compiler/radeon_program_constants.h index 69994f9880..7c0d6720b1 100644 --- a/src/mesa/drivers/dri/r300/compiler/radeon_program_constants.h +++ b/src/mesa/drivers/dri/r300/compiler/radeon_program_constants.h @@ -74,9 +74,22 @@ typedef enum { /** * Indicates a constant from the \ref rc_constant_list . */ - RC_FILE_CONSTANT + RC_FILE_CONSTANT, + + /** + * Indicates a special register, see RC_SPECIAL_xxx. + */ + RC_FILE_SPECIAL } rc_register_file; +enum { + /** R500 fragment program ALU result "register" */ + RC_SPECIAL_ALU_RESULT = 0, + + /** Must be last */ + RC_NUM_SPECIAL_REGISTERS +}; + #define RC_REGISTER_INDEX_BITS 10 #define RC_REGISTER_MAX_INDEX (1 << RC_REGISTER_INDEX_BITS) @@ -125,4 +138,10 @@ typedef enum { #define RC_MASK_XYZW (RC_MASK_X|RC_MASK_Y|RC_MASK_Z|RC_MASK_W) /*@}*/ +typedef enum { + RC_ALURESULT_NONE = 0, + RC_ALURESULT_X, + RC_ALURESULT_W +} rc_write_aluresult; + #endif /* RADEON_PROGRAM_CONSTANTS_H */ |