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

Francisco Jerez currojerez at riseup.net
Wed Oct 23 21:55:40 CEST 2013


Kenneth Graunke <kenneth at whitecape.org> writes:

> 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).

The work is already done, see [1].

Thanks.

[1] http://lists.freedesktop.org/archives/mesa-dev/2013-October/045601.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 229 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20131023/a11c71d0/attachment.pgp>


More information about the mesa-dev mailing list