Module: Mesa
Branch: main
Commit: f96e08f34df2f80a030a02c044587944cae7081b
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=f96e08f34df2f80a030a02c044587944cae7081b

Author: Sviatoslav Peleshko <[email protected]>
Date:   Wed Oct 11 12:57:09 2023 +0300

intel/tools/i965_asm: Allow neg and abs modifiers on accumulator register

Signed-off-by: Sviatoslav Peleshko <[email protected]>
Reviewed-by: Sagar Ghuge <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25657>

---

 src/intel/tools/i965_gram.y | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/src/intel/tools/i965_gram.y b/src/intel/tools/i965_gram.y
index a76d3aedd18..225d8bed7bb 100644
--- a/src/intel/tools/i965_gram.y
+++ b/src/intel/tools/i965_gram.y
@@ -1761,12 +1761,14 @@ srcimm:
 
 directsrcaccoperand:
        directsrcoperand
-       | accreg region reg_type
-       {
-               $$ = set_direct_src_operand(&$1, $3);
-               $$.vstride = $2.vstride;
-               $$.width = $2.width;
-               $$.hstride = $2.hstride;
+       | negate abs accreg region reg_type
+       {
+               $$ = set_direct_src_operand(&$3, $5);
+               $$.negate = $1;
+               $$.abs = $2;
+               $$.vstride = $4.vstride;
+               $$.width = $4.width;
+               $$.hstride = $4.hstride;
        }
        ;
 

Reply via email to