From 4ec37317c55ee6be1a5988867aaeb8e9b3f02892 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Thu, 19 Sep 2013 13:02:23 -0700 Subject: [PATCH] i965: Add UD null register helpers. Reviewed-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_fs.h | 1 + src/mesa/drivers/dri/i965/brw_vec4.h | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/src/mesa/drivers/dri/i965/brw_fs.h b/src/mesa/drivers/dri/i965/brw_fs.h index cf6379c26a1..679a4b0dc1b 100644 --- a/src/mesa/drivers/dri/i965/brw_fs.h +++ b/src/mesa/drivers/dri/i965/brw_fs.h @@ -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: diff --git a/src/mesa/drivers/dri/i965/brw_vec4.h b/src/mesa/drivers/dri/i965/brw_vec4.h index 5b8075a7e99..9683f1c06cd 100644 --- a/src/mesa/drivers/dri/i965/brw_vec4.h +++ b/src/mesa/drivers/dri/i965/brw_vec4.h @@ -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; -- 2.30.2