diff options
author | Matt Turner <[email protected]> | 2013-09-19 13:02:23 -0700 |
---|---|---|
committer | Matt Turner <[email protected]> | 2013-10-07 10:41:16 -0700 |
commit | 4ec37317c55ee6be1a5988867aaeb8e9b3f02892 (patch) | |
tree | 6d87b07ac131b6e2f177deb875c85aff7ebe7d45 | |
parent | 6f9428eb68bb0f7592f4384455fc7aab23940d92 (diff) |
i965: Add UD null register helpers.
Reviewed-by: Kenneth Graunke <[email protected]>
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs.h | 1 | ||||
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_vec4.h | 5 |
2 files changed, 6 insertions, 0 deletions
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; |