[Mesa-dev] [PATCH 19/51] intel/compiler/fs: Add helpers for 16-bit null regs

Topi Pohjolainen topi.pohjolainen at gmail.com
Fri Nov 24 12:26:46 UTC 2017


Signed-off-by: Topi Pohjolainen <topi.pohjolainen at intel.com>
---
 src/intel/compiler/brw_fs_builder.h | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/src/intel/compiler/brw_fs_builder.h b/src/intel/compiler/brw_fs_builder.h
index 87394bc17b..633086c64b 100644
--- a/src/intel/compiler/brw_fs_builder.h
+++ b/src/intel/compiler/brw_fs_builder.h
@@ -205,6 +205,12 @@ namespace brw {
       }
 
       dst_reg
+      null_reg_hf() const
+      {
+         return dst_reg(retype(brw_null_reg(), BRW_REGISTER_TYPE_HF));
+      }
+
+      dst_reg
       null_reg_df() const
       {
          return dst_reg(retype(brw_null_reg(), BRW_REGISTER_TYPE_DF));
@@ -219,6 +225,12 @@ namespace brw {
          return dst_reg(retype(brw_null_reg(), BRW_REGISTER_TYPE_D));
       }
 
+      dst_reg
+      null_reg_w() const
+      {
+         return dst_reg(retype(brw_null_reg(), BRW_REGISTER_TYPE_W));
+      }
+
       /**
        * Create a null register of unsigned integer type.
        */
-- 
2.11.0



More information about the mesa-dev mailing list