i965/fs: add null_reg_df
authorIago Toral Quiroga <itoral@igalia.com>
Thu, 7 Jan 2016 13:12:26 +0000 (14:12 +0100)
committerSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Tue, 10 May 2016 09:25:08 +0000 (11:25 +0200)
Probably not needed since we fix the dst type of comparisons
automatically, but for consistency with the rest of null_reg_*
functions.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_fs_builder.h

index 268ecc6f4acb37e7b8f64a68a6637305d94242dd..2087e585b06bb3d8b76f7d82fc667f96caa3dbb3 100644 (file)
@@ -197,6 +197,13 @@ namespace brw {
                                BRW_REGISTER_TYPE_F));
       }
 
+      dst_reg
+      null_reg_df() const
+      {
+         return dst_reg(retype(brw_null_vec(dispatch_width()),
+                               BRW_REGISTER_TYPE_DF));
+      }
+
       /**
        * Create a null register of signed integer type.
        */