From 8f47f5320f1a8d4750152f7783cf72073d0979bd Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Thu, 25 Mar 2010 17:54:41 +0100 Subject: [PATCH] st/dri: Add dri2 prefix for all dri2.c functions --- src/gallium/state_trackers/dri/dri2.c | 34 ++++++++++----------- src/gallium/state_trackers/dri/dri2.h | 10 +++--- src/gallium/state_trackers/dri/dri_screen.c | 2 +- src/gallium/state_trackers/dri/dri_st_api.c | 4 +-- 4 files changed, 25 insertions(+), 25 deletions(-) diff --git a/src/gallium/state_trackers/dri/dri2.c b/src/gallium/state_trackers/dri/dri2.c index 2c6a0621ae7..108b18e9d3c 100644 --- a/src/gallium/state_trackers/dri/dri2.c +++ b/src/gallium/state_trackers/dri/dri2.c @@ -107,8 +107,8 @@ static const __DRItexBufferExtension dri2TexBufferExtension = { * Get the format of an attachment. */ static INLINE enum pipe_format -dri_drawable_get_format(struct dri_drawable *drawable, - enum st_attachment_type statt) +dri2_drawable_get_format(struct dri_drawable *drawable, + enum st_attachment_type statt) { enum pipe_format format; @@ -134,9 +134,9 @@ dri_drawable_get_format(struct dri_drawable *drawable, * Retrieve __DRIbuffer from the DRI loader. */ static __DRIbuffer * -dri_drawable_get_buffers(struct dri_drawable *drawable, - const enum st_attachment_type *statts, - unsigned *count) +dri2_drawable_get_buffers(struct dri_drawable *drawable, + const enum st_attachment_type *statts, + unsigned *count) { __DRIdrawable *dri_drawable = drawable->dPriv; struct __DRIdri2LoaderExtensionRec *loader = drawable->sPriv->dri2.loader; @@ -159,7 +159,7 @@ dri_drawable_get_buffers(struct dri_drawable *drawable, enum pipe_format format; int att, bpp; - format = dri_drawable_get_format(drawable, statts[i]); + format = dri2_drawable_get_format(drawable, statts[i]); if (format == PIPE_FORMAT_NONE) continue; @@ -238,8 +238,8 @@ dri_drawable_get_buffers(struct dri_drawable *drawable, * Process __DRIbuffer and convert them into pipe_textures. */ static void -dri_drawable_process_buffers(struct dri_drawable *drawable, - __DRIbuffer *buffers, unsigned count) +dri2_drawable_process_buffers(struct dri_drawable *drawable, + __DRIbuffer *buffers, unsigned count) { struct dri_screen *screen = dri_screen(drawable->sPriv); __DRIdrawable *dri_drawable = drawable->dPriv; @@ -302,7 +302,7 @@ dri_drawable_process_buffers(struct dri_drawable *drawable, break; } - format = dri_drawable_get_format(drawable, statt); + format = dri2_drawable_get_format(drawable, statt); if (statt == ST_ATTACHMENT_INVALID || format == PIPE_FORMAT_NONE) continue; @@ -326,20 +326,20 @@ dri_drawable_process_buffers(struct dri_drawable *drawable, */ void -dri_allocate_textures(struct dri_drawable *drawable, - const enum st_attachment_type *statts, - unsigned count) +dri2_allocate_textures(struct dri_drawable *drawable, + const enum st_attachment_type *statts, + unsigned count) { __DRIbuffer *buffers; unsigned num_buffers = count; - buffers = dri_drawable_get_buffers(drawable, statts, &num_buffers); - dri_drawable_process_buffers(drawable, buffers, num_buffers); + buffers = dri2_drawable_get_buffers(drawable, statts, &num_buffers); + dri2_drawable_process_buffers(drawable, buffers, num_buffers); } void -dri_flush_frontbuffer(struct dri_drawable *drawable, - enum st_attachment_type statt) +dri2_flush_frontbuffer(struct dri_drawable *drawable, + enum st_attachment_type statt) { __DRIdrawable *dri_drawable = drawable->dPriv; struct __DRIdri2LoaderExtensionRec *loader = drawable->sPriv->dri2.loader; @@ -373,7 +373,7 @@ static const __DRIextension *dri_screen_extensions[] = { * Returns the __GLcontextModes supported by this driver. */ const __DRIconfig ** -dri_init_screen2(__DRIscreen * sPriv) +dri2_init_screen(__DRIscreen * sPriv) { struct dri_screen *screen; struct drm_create_screen_arg arg; diff --git a/src/gallium/state_trackers/dri/dri2.h b/src/gallium/state_trackers/dri/dri2.h index e1afcf8ca8d..379963431fb 100644 --- a/src/gallium/state_trackers/dri/dri2.h +++ b/src/gallium/state_trackers/dri/dri2.h @@ -32,15 +32,15 @@ #include "dri_wrapper.h" const __DRIconfig ** -dri_init_screen2(__DRIscreen * sPriv); +dri2_init_screen(__DRIscreen * sPriv); void -dri_flush_frontbuffer(struct dri_drawable *drawable, +dri2_flush_frontbuffer(struct dri_drawable *drawable, enum st_attachment_type statt); void -dri_allocate_textures(struct dri_drawable *drawable, - const enum st_attachment_type *statts, - unsigned count); +dri2_allocate_textures(struct dri_drawable *drawable, + const enum st_attachment_type *statts, + unsigned count); #endif /* DRI2_H */ diff --git a/src/gallium/state_trackers/dri/dri_screen.c b/src/gallium/state_trackers/dri/dri_screen.c index ae311641042..3029d337878 100644 --- a/src/gallium/state_trackers/dri/dri_screen.c +++ b/src/gallium/state_trackers/dri/dri_screen.c @@ -328,7 +328,7 @@ const struct __DriverAPIRec driDriverAPI = { .GetSwapInfo = dri_get_swap_info, .GetDrawableMSC = driDrawableGetMSC32, .WaitForMSC = driWaitForMSC32, - .InitScreen2 = dri_init_screen2, + .InitScreen2 = dri2_init_screen, .InitScreen = dri1_init_screen, .SwapBuffers = dri1_swap_buffers, diff --git a/src/gallium/state_trackers/dri/dri_st_api.c b/src/gallium/state_trackers/dri/dri_st_api.c index 2b98c487c84..31d2c582aa0 100644 --- a/src/gallium/state_trackers/dri/dri_st_api.c +++ b/src/gallium/state_trackers/dri/dri_st_api.c @@ -73,7 +73,7 @@ dri_st_framebuffer_validate(struct st_framebuffer_iface *stfbi, dri1_allocate_textures(drawable, statt_mask); } else { - dri_allocate_textures(drawable, statts, count); + dri2_allocate_textures(drawable, statts, count); } #else if (new_stamp) @@ -115,7 +115,7 @@ dri_st_framebuffer_flush_front(struct st_framebuffer_iface *stfbi, dri1_flush_frontbuffer(drawable, statt); } else { - dri_flush_frontbuffer(drawable, statt); + dri2_flush_frontbuffer(drawable, statt); } #else drisw_flush_frontbuffer(drawable, statt); -- 2.30.2