st/mesa: refactor bufferobj_data()
authorBrian Paul <brianp@vmware.com>
Fri, 2 Feb 2018 15:38:50 +0000 (08:38 -0700)
committerBrian Paul <brianp@vmware.com>
Tue, 6 Feb 2018 22:23:26 +0000 (15:23 -0700)
commit8a32dd2ec9cd57bddef306fe9728ae0343d072f2
tree4b1bb6990fdc72832f7954c48aa661138edfb097
parent3488a3f0332ba1d77e2c4609a26206e77922e81b
st/mesa: refactor bufferobj_data()

Split out some of the code into three new helper functions:
buffer_target_to_bind_flags(), storage_flags_to_buffer_flags(),
buffer_usage() to make the code more managable.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/state_tracker/st_cb_bufferobjects.c