diff options
author | Brian Paul <[email protected]> | 2014-04-15 09:13:04 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2014-04-17 11:29:32 -0700 |
commit | 8e131576eede26ebfd5e6d18f09642bdccb6be0f (patch) | |
tree | d276cdf2d8cdf97a54b3ddab2d266c05bd29e5f9 /src/gallium/drivers/svga/svga_tgsi_emit.h | |
parent | 71846a943f9b699d0f234d919dcb8d1934943693 (diff) |
svga: use new inst_token_predicated() helper function
Reviewed-by: Charmaine Lee <[email protected]>
Diffstat (limited to 'src/gallium/drivers/svga/svga_tgsi_emit.h')
-rw-r--r-- | src/gallium/drivers/svga/svga_tgsi_emit.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/gallium/drivers/svga/svga_tgsi_emit.h b/src/gallium/drivers/svga/svga_tgsi_emit.h index 53f93de28d3..0141d71568e 100644 --- a/src/gallium/drivers/svga/svga_tgsi_emit.h +++ b/src/gallium/drivers/svga/svga_tgsi_emit.h @@ -189,6 +189,23 @@ inst_token(unsigned opcode) /** + * Generate a SVGA3dShaderInstToken for the given SVGA3D shader opcode + * with the predication flag set. + */ +static INLINE SVGA3dShaderInstToken +inst_token_predicated(unsigned opcode) +{ + SVGA3dShaderInstToken inst; + + inst.value = 0; + inst.op = opcode; + inst.predicated = 1; + + return inst; +} + + +/** * Create an instance of a SVGA3dShaderDestToken. * Note that this function is used to create tokens for output registers, * temp registers AND constants (see emit_def_const()). |