st/mesa: refactor st_bufferobj_map_range()
authorBrian Paul <brianp@vmware.com>
Fri, 2 Feb 2018 15:54:19 +0000 (08:54 -0700)
committerBrian Paul <brianp@vmware.com>
Tue, 6 Feb 2018 22:23:26 +0000 (15:23 -0700)
commit1852a2e1a2113b69cf4662acd7533da144837084
tree03b5f4126125dafa7e8b5181f3753a1ae55d6c09
parent8a32dd2ec9cd57bddef306fe9728ae0343d072f2
st/mesa: refactor st_bufferobj_map_range()

Use a new helper function, st_access_flags_to_transfer_flags(), to
convert the GL_MAP_x flags to PIPE_TRANSFER_x flags.

We'll be able to use this function in a couple other places.

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