mesa: align atomic buffer handling code with ubo/ssbo (v1.1)
authorDave Airlie <airlied@redhat.com>
Fri, 15 Sep 2017 02:38:18 +0000 (12:38 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 10 Oct 2017 23:10:20 +0000 (09:10 +1000)
commit65d3ef7cd4f3debbd51b8a8bc95b88fc32f18ded
tree42a5f6a78dee3522759f82346089a500c38b66ff
parent03087686ffb8c638831256fd17c124d250d7238b
mesa: align atomic buffer handling code with ubo/ssbo (v1.1)

this adds automatic size support to the atomic buffer code,
but also realigns the code to act like the ubo/ssbo code.

v1.1:
add missing blank lines.
reindent one block properly.
check for NullBufferObj.

Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/mesa/main/bufferobj.c
src/mesa/main/mtypes.h