[Mesa-dev] [PATCH 09/19] i965/fs: Use reg_undef instead of unset fs_reg constructor.
Matt Turner
mattst88 at gmail.com
Thu Feb 20 13:41:22 PST 2014
---
src/mesa/drivers/dri/i965/brw_fs.cpp | 2 +-
src/mesa/drivers/dri/i965/brw_fs_fp.cpp | 4 ++--
src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 4 ++--
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp
index 4940738..ae1237e 100644
--- a/src/mesa/drivers/dri/i965/brw_fs.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs.cpp
@@ -650,7 +650,7 @@ fs_visitor::emit_shader_time_write(enum shader_time_shader_type type,
payload = fs_reg(this, glsl_type::uint_type);
emit(fs_inst(SHADER_OPCODE_SHADER_TIME_ADD,
- fs_reg(), payload, offset, value));
+ reg_undef, payload, offset, value));
}
void
diff --git a/src/mesa/drivers/dri/i965/brw_fs_fp.cpp b/src/mesa/drivers/dri/i965/brw_fs_fp.cpp
index 1d42f6b..b0c43af 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_fp.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_fp.cpp
@@ -675,7 +675,7 @@ fs_visitor::get_fp_dst_reg(const prog_dst_register *dst)
}
case PROGRAM_UNDEFINED:
- return fs_reg();
+ return reg_undef;
default:
_mesa_problem(ctx, "bad dst register file: %s\n",
@@ -695,7 +695,7 @@ fs_visitor::get_fp_src_reg(const prog_src_register *src)
switch (src->File) {
case PROGRAM_UNDEFINED:
- return fs_reg();
+ return reg_undef;
case PROGRAM_TEMPORARY:
result = fp_temp_regs[src->Index];
break;
diff --git a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp b/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp
index 45b053d..172ad6e 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp
@@ -2288,11 +2288,11 @@ fs_visitor::visit_atomic_counter_intrinsic(ir_call *ir)
} else if (!strcmp("__intrinsic_atomic_increment", callee)) {
emit_untyped_atomic(BRW_AOP_INC, surf_index, dst, offset,
- fs_reg(), fs_reg());
+ reg_undef, reg_undef);
} else if (!strcmp("__intrinsic_atomic_predecrement", callee)) {
emit_untyped_atomic(BRW_AOP_PREDEC, surf_index, dst, offset,
- fs_reg(), fs_reg());
+ reg_undef, reg_undef);
}
}
--
1.8.3.2
More information about the mesa-dev
mailing list