[Mesa-dev] [PATCH 24/24] i965: Simplify the shader time code by using atomic counter helpers.

Kenneth Graunke kenneth at whitecape.org
Wed Oct 23 21:50:03 CEST 2013


On 09/26/2013 02:31 PM, Paul Berry wrote:
[snip]
> However, there are two things which I expected to see in this patch
> series but I didn't:
> 
> - Do atomic_uints need similar handling to
> ir_sampler_replacement_visitor in opt_function_inlining?
> 
> - Do we need to update schedule_node::set_latency_gen7() with an
> estimate of how long it takes to execute an atomic operation?  Currently
> it looks like it's assuming 14 cycles, which seems almost certainly wrong.

If I recall correctly, atomic operations are considered barriers for the
purposes of scheduling, so I don't think their latency really matters.
It would be nice to add it eventually (either Matt or Eric should have
the shader_time tricks needed to determine how many cycles it takes).


More information about the mesa-dev mailing list