i965: Rename intel_bufferobj_* functions to match GL and DD hooks.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 28 Oct 2014 08:05:12 +0000 (01:05 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 29 Oct 2014 19:38:28 +0000 (12:38 -0700)
commit1480814173f940a1a24c7242e31662e73efb064f
treee50eec9a39a090ab3d4ecf5f25f209b109690080
parent993e2922c922f88a2eeed4f30751f3e3ad63aed0
i965: Rename intel_bufferobj_* functions to match GL and DD hooks.

The GL functions and driver hooks use corresponding names---for example,
glMapBufferRange and Driver.MapBufferRange.  But our implementation was
called "intel_bufferobj_map_range," which has the words "map" and
"buffer" swapped, as well as randomly adding "obj."

FlushMappedBufferRange was even trickier: it ordered the words
3, "obj", 1, 2, 4: intel_bufferobj_flush_mapped_range.

Even though the old names were consistent, I always had trouble
rearranging the jumble of words when searching for a function,
and it took a few tries to eventually land there.

The new names match the word order of GL and the driver hooks;
FlushMappedBufferRange is simply brw_flush_mapped_buffer_range.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
src/mesa/drivers/dri/i965/intel_buffer_objects.c