diff options
author | Dave Airlie <[email protected]> | 2010-08-25 15:57:41 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2010-08-27 15:30:07 +1000 |
commit | a03d456f5a41926e39194de70b2d50776e64b8a2 (patch) | |
tree | bf8a1c8bedf88d876c439462c5949ae5ba379e0a /src/gallium/drivers/r600/r600_sq.h | |
parent | d8fb13bae30b6ff214c5d5158b9bcaf430f56b43 (diff) |
r600g: add initial if/else/endif support
this adds handling for some more CF instructions and conditions
also adds parameter for stack size emission
These seem to pass on VS with the stack size hack but not on FS,
TODO: fix FS + stack size calcs
Diffstat (limited to 'src/gallium/drivers/r600/r600_sq.h')
-rw-r--r-- | src/gallium/drivers/r600/r600_sq.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/r600_sq.h b/src/gallium/drivers/r600/r600_sq.h index ad4de0b0726..b4ed435e91f 100644 --- a/src/gallium/drivers/r600/r600_sq.h +++ b/src/gallium/drivers/r600/r600_sq.h @@ -603,4 +603,9 @@ #define G_SQ_TEX_WORD2_SRC_SEL_W(x) (((x) >> 29) & 0x7) #define C_SQ_TEX_WORD2_SRC_SEL_W 0x1FFFFFFF +#define V_SQ_CF_COND_ACTIVE 0x00 +#define V_SQ_CF_COND_FALSE 0x01 +#define V_SQ_CF_COND_BOOL 0x02 +#define V_SQ_CF_COND_NOT_BOOL 0x03 + #endif |