freedreno: fix HW_ATOMIC_COUNTERS cap
authorRob Clark <robdclark@gmail.com>
Fri, 22 Jun 2018 20:09:25 +0000 (16:09 -0400)
committerRob Clark <robdclark@gmail.com>
Sat, 23 Jun 2018 22:23:11 +0000 (18:23 -0400)
commit868ca81cbef5a8e2e8bd012d9d4bd33f83507673
tree32d3043803d0540b13471a1b361851323083c56e
parent1df586be12e53917cd71b996f1d6ed2de02e4fc3
freedreno: fix HW_ATOMIC_COUNTERS cap

This was mistakenly exposed, even though we want atomic counters to be
lowered to atomic ops on an SSBO like nearly every other GPU.  Which
somehow recently started getting segfaults due to calling a null
pipe->set_hw_atomic_buffers().

Fixes a crash in stk, and probably other things.

Signed-off-by: Rob Clark <robdclark@gmail.com>
src/gallium/drivers/freedreno/freedreno_screen.c