i965: Add UD null register helpers.
authorMatt Turner <mattst88@gmail.com>
Thu, 19 Sep 2013 20:02:23 +0000 (13:02 -0700)
committerMatt Turner <mattst88@gmail.com>
Mon, 7 Oct 2013 17:41:16 +0000 (10:41 -0700)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_fs.h
src/mesa/drivers/dri/i965/brw_vec4.h

index cf6379c26a159a7875cb1383fc25b583c92e085b..679a4b0dc1b25746d4b0afaa1da81c4cdb176144 100644 (file)
@@ -109,6 +109,7 @@ public:
 static const fs_reg reg_undef;
 static const fs_reg reg_null_f(ARF, BRW_ARF_NULL, BRW_REGISTER_TYPE_F);
 static const fs_reg reg_null_d(ARF, BRW_ARF_NULL, BRW_REGISTER_TYPE_D);
+static const fs_reg reg_null_ud(ARF, BRW_ARF_NULL, BRW_REGISTER_TYPE_UD);
 
 class ip_record : public exec_node {
 public:
index 5b8075a7e9937d94926fd61c05169dc2c28039f7..9683f1c06cd30b6b078e305abfd8ff7c6555e9f8 100644 (file)
@@ -245,6 +245,11 @@ public:
       return dst_reg(retype(brw_null_reg(), BRW_REGISTER_TYPE_D));
    }
 
+   dst_reg dst_null_ud()
+   {
+      return dst_reg(retype(brw_null_reg(), BRW_REGISTER_TYPE_UD));
+   }
+
    struct gl_program *prog;
    struct brw_vec4_compile *c;
    const struct brw_vec4_prog_key *key;