diff options
author | Paul Berry <[email protected]> | 2013-04-07 06:29:46 -0700 |
---|---|---|
committer | Paul Berry <[email protected]> | 2013-04-09 12:15:08 -0700 |
commit | 56ce7fa4b8e1cdede206802e512b320b1b26110d (patch) | |
tree | e0697076c3e4eef657e5b1630d1ccc8f7e60d452 | |
parent | 462647453ca2c245a51483f38f5fe21ea5126f80 (diff) |
i965/vs: Fix DEBUG_SHADER_TIME when VS terminates with 2 URB writes.
The call to emit_shader_time_end() before the second URB write was
conditioned with "if (eot)", but eot is always false in this code
path, so emit_shader_time_end() was never being called for vertex
shaders that performed 2 URB writes.
Reviewed-by: Jordan Justen <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp index 8bd2fd87340..ca1cfe8b879 100644 --- a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp +++ b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp @@ -2664,10 +2664,8 @@ vec4_visitor::emit_urb_writes() emit_urb_slot(mrf++, c->prog_data.vue_map.slot_to_varying[slot]); } - if (eot) { - if (INTEL_DEBUG & DEBUG_SHADER_TIME) - emit_shader_time_end(); - } + if (INTEL_DEBUG & DEBUG_SHADER_TIME) + emit_shader_time_end(); current_annotation = "URB write"; inst = emit(VS_OPCODE_URB_WRITE); |