diff options
author | Paul Berry <[email protected]> | 2012-07-07 08:28:46 -0700 |
---|---|---|
committer | Paul Berry <[email protected]> | 2012-07-20 09:35:37 -0700 |
commit | 6a27506181b29c8b7eda7bd6cf80689f849e181d (patch) | |
tree | cc2e2fb76c35c5ca2ec1db9b61073d5ff5b05c55 /src/mesa/drivers/dri/i965/brw_eu.h | |
parent | 9544e44262651a51ffdb3a572f99f902807a6205 (diff) |
i965: Add support for AVG instruction.
From the Ivy Bridge PRM, Vol4 Part3 p152:
"The avg instruction performs component-wise integer average of
src0 and src1 and stores the results in dst. An integer average
uses integer upward rounding. It is equivalent to increment one to
the addition of src0 and src1 and then apply an arithmetic right
shift to this intermediate value."
Reviewed-by: Kenneth Graunke <[email protected]>
Reviewed-by: Anuj Phogat <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_eu.h')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_eu.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_eu.h b/src/mesa/drivers/dri/i965/brw_eu.h index f25b09d896d..233b94cfda4 100644 --- a/src/mesa/drivers/dri/i965/brw_eu.h +++ b/src/mesa/drivers/dri/i965/brw_eu.h @@ -861,6 +861,7 @@ ALU2(RSL) ALU2(ASR) ALU2(JMPI) ALU2(ADD) +ALU2(AVG) ALU2(MUL) ALU1(FRC) ALU1(RNDD) |