r600g: use a helper to add an initialized atom
authorGrazvydas Ignotas <notasas@gmail.com>
Sun, 9 Aug 2015 21:42:33 +0000 (00:42 +0300)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 11 Aug 2015 12:46:54 +0000 (14:46 +0200)
commit85adde30a4bb3e8e5ca44983308364559ff140ab
treecf8b6e15181fb5a16d170c2ee72cb2b82980c4a9
parent3206d4ed44e761186fee3c679801e57f8ce923cb
r600g: use a helper to add an initialized atom

Instead of writing to rctx->atoms directly use a helper to take
advantage of assert checks.

Signed-off-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/r600/evergreen_state.c
src/gallium/drivers/r600/r600_pipe.h
src/gallium/drivers/r600/r600_state.c
src/gallium/drivers/r600/r600_state_common.c