diff options
author | Tom Stellard <tstellar@gmail.com> | 2010-05-27 17:14:51 -0700 |
---|---|---|
committer | Marek Olšák <maraeo@gmail.com> | 2010-06-11 22:06:58 +0200 |
commit | 622fd4d061678027d5de2c84d1c07370830c4264 (patch) | |
tree | 15eb6911bed9f7be4f66b0245962c213c9b47b9a /src/mesa/drivers/dri/r300/compiler/radeon_opcodes.h | |
parent | 108264e859b4f435e9608472dc2e388aa200183c (diff) |
r300/compiler: Implement simple loop emulation
The loop emulation unrolls loops as may times as possbile while still
keeping the shader program below the maximum instruction limit. At this
point, there are no checks for constant conditionals. This is only enabled
for fragment shaders.
Diffstat (limited to 'src/mesa/drivers/dri/r300/compiler/radeon_opcodes.h')
-rw-r--r-- | src/mesa/drivers/dri/r300/compiler/radeon_opcodes.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/r300/compiler/radeon_opcodes.h b/src/mesa/drivers/dri/r300/compiler/radeon_opcodes.h index 87a2e23084..91c82ac089 100644 --- a/src/mesa/drivers/dri/r300/compiler/radeon_opcodes.h +++ b/src/mesa/drivers/dri/r300/compiler/radeon_opcodes.h @@ -180,6 +180,12 @@ typedef enum { /** branch instruction: has no effect */ RC_OPCODE_ENDIF, + + RC_OPCODE_BGNLOOP, + + RC_OPCODE_BRK, + + RC_OPCODE_ENDLOOP, /** special instruction, used in R300-R500 fragment program pair instructions * indicates that the result of the alpha operation shall be replicated |