[Mesa-dev] [PATCH 1/2] gallium: add CAPs to support HW atomic counters. (v2)

2017-08-07 Thread Dave Airlie
From: Dave Airlie This looks like an evergreen specific feature, but with atomic counters AMD have hw specific counters they use instead of operating on buffers directly. These are separate to the buffer atomics, so require different limits and code paths. I've left the CAP for atomic type exten

Re: [Mesa-dev] [PATCH 1/2] gallium: add CAPs to support HW atomic counters.

2017-08-02 Thread Dave Airlie
On 2 August 2017 at 20:56, Nicolai Hähnle wrote: > On 02.08.2017 01:00, Dave Airlie wrote: >> >> From: Dave Airlie >> >> This looks like an evergreen specific feature, but with atomic >> counters AMD have hw specific counters they use instead of operating >> on buffers directly. These are separat

Re: [Mesa-dev] [PATCH 1/2] gallium: add CAPs to support HW atomic counters.

2017-08-02 Thread Marek Olšák
It would make sense to add pipe_context::set_atomic_counter_buffers(pipe, start, count, buffers) that are available in all shader stages, because it's how OpenGL works. Only SSBOs are per-shader stage. Marek On Wed, Aug 2, 2017 at 12:56 PM, Nicolai Hähnle wrote: > On 02.08.2017 01:00, Dave Airli

Re: [Mesa-dev] [PATCH 1/2] gallium: add CAPs to support HW atomic counters.

2017-08-02 Thread Nicolai Hähnle
On 02.08.2017 01:00, Dave Airlie wrote: From: Dave Airlie This looks like an evergreen specific feature, but with atomic counters AMD have hw specific counters they use instead of operating on buffers directly. These are separate to the buffer atomics, so require different limits and code paths

[Mesa-dev] [PATCH 1/2] gallium: add CAPs to support HW atomic counters.

2017-08-01 Thread Dave Airlie
From: Dave Airlie This looks like an evergreen specific feature, but with atomic counters AMD have hw specific counters they use instead of operating on buffers directly. These are separate to the buffer atomics, so require different limits and code paths. I've left the CAP for atomic type exten