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 <jordan.l.justen@intel.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
462647453c
commit
56ce7fa4b8
1 changed files with 2 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue