st/mesa: start adding support for hw atomics atom. (v2)
authorDave Airlie <airlied@redhat.com>
Wed, 1 Nov 2017 04:30:13 +0000 (14:30 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 9 Nov 2017 22:39:35 +0000 (08:39 +1000)
commit9f1db21f287e76a9b36e0b240929aed4f59483e5
tree34931b4e9808a816b2458d81a15a27fd0cd481e0
parente0fb6de313f1a335fe628d057ad744872dab9446
st/mesa: start adding support for hw atomics atom. (v2)

This adds a new atom that calls the new driver API to
bind buffers containing hw atomics.

v2: fixup bindings for sparse buffers. (mareko/nha)
don't bind buffer atomics when hw atomics are enabled.
use NewAtomicBuffer (mareko)

Tested-By: Gert Wollny <gw.fossdev@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/mesa/state_tracker/st_atom_atomicbuf.c
src/mesa/state_tracker/st_atom_list.h
src/mesa/state_tracker/st_cb_bufferobjects.c
src/mesa/state_tracker/st_context.c
src/mesa/state_tracker/st_context.h