aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
diff options
context:
space:
mode:
authorFrancisco Jerez <[email protected]>2015-02-06 01:27:40 +0200
committerFrancisco Jerez <[email protected]>2015-02-10 16:05:51 +0200
commit639696aa05df0b7f4bfb9e2e255863cd72effba3 (patch)
treef9b89b712cb12c24ee8b4f6b8e224ecc9bdb7423 /src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
parent4ed52e8bc418b7a378c31664343684e4401e0868 (diff)
i965: Move up fs_inst::regs_written to backend_instruction.
It will also be useful in the VEC4 back-end. Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp')
-rw-r--r--src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
index 041c618fa43..ada4a0cdc4d 100644
--- a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
+++ b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
@@ -44,6 +44,7 @@ vec4_instruction::vec4_instruction(enum opcode opcode, const dst_reg &dst,
this->writes_accumulator = false;
this->conditional_mod = BRW_CONDITIONAL_NONE;
this->target = 0;
+ this->regs_written = (dst.file == BAD_FILE ? 0 : 1);
this->shadow_compare = false;
this->ir = NULL;
this->urb_write_flags = BRW_URB_WRITE_NO_FLAGS;