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

Author: Sviatoslav Peleshko <sviatoslav.peles...@globallogic.com>
Date:   Wed Oct 11 12:49:14 2023 +0300

intel/tools/i965_asm: Handle HF immediates

Signed-off-by: Sviatoslav Peleshko <sviatoslav.peles...@globallogic.com>
Reviewed-by: Sagar Ghuge <sagar.gh...@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25657>

---

 src/intel/tools/i965_gram.y | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/intel/tools/i965_gram.y b/src/intel/tools/i965_gram.y
index febd555b4d3..06f7b9df1f4 100644
--- a/src/intel/tools/i965_gram.y
+++ b/src/intel/tools/i965_gram.y
@@ -1666,6 +1666,10 @@ immreg:
                        $$ = brw_imm_reg(BRW_REGISTER_TYPE_DF);
                        $$.d64 = $1;
                        break;
+               case BRW_REGISTER_TYPE_HF:
+                       $$ = brw_imm_reg(BRW_REGISTER_TYPE_HF);
+                       $$.ud = $1 | ($1 << 16);
+                       break;
                default:
                        error(&@2, "Unknown immediate type %s\n",
                              brw_reg_type_to_letters($2));

Reply via email to