[Mesa-dev] [PATCH 6/8] radeon: Unify the style of function pointer calls in structs
Boyan Ding
boyan.j.ding at gmail.com
Tue Nov 24 21:27:07 PST 2015
Signed-off-by: Boyan Ding <boyan.j.ding at gmail.com>
---
src/mesa/drivers/dri/radeon/radeon_common.c | 4 ++--
.../drivers/dri/radeon/radeon_common_context.c | 24 +++++++++++-----------
2 files changed, 14 insertions(+), 14 deletions(-)
diff --git a/src/mesa/drivers/dri/radeon/radeon_common.c b/src/mesa/drivers/dri/radeon/radeon_common.c
index fde8921..8a3c62d 100644
--- a/src/mesa/drivers/dri/radeon/radeon_common.c
+++ b/src/mesa/drivers/dri/radeon/radeon_common.c
@@ -497,7 +497,7 @@ static inline void radeon_emit_atom(radeonContextPtr radeon, struct radeon_state
radeon_print_state_atom(radeon, atom);
if (atom->emit) {
- (*atom->emit)(&radeon->glCtx, atom);
+ atom->emit(&radeon->glCtx, atom);
} else {
BEGIN_BATCH(dwords);
OUT_BATCH_TABLE(atom->cmd, dwords);
@@ -591,7 +591,7 @@ flush_front:
*/
radeon->front_buffer_dirty = GL_FALSE;
- (*screen->dri2.loader->flushFrontBuffer)(drawable, drawable->loaderPrivate);
+ screen->dri2.loader->flushFrontBuffer(drawable, drawable->loaderPrivate);
}
}
}
diff --git a/src/mesa/drivers/dri/radeon/radeon_common_context.c b/src/mesa/drivers/dri/radeon/radeon_common_context.c
index 4660d98..d981ca2 100644
--- a/src/mesa/drivers/dri/radeon/radeon_common_context.c
+++ b/src/mesa/drivers/dri/radeon/radeon_common_context.c
@@ -418,12 +418,12 @@ radeon_update_renderbuffers(__DRIcontext *context, __DRIdrawable *drawable,
}
}
- buffers = (*screen->dri2.loader->getBuffersWithFormat)(drawable,
- &drawable->w,
- &drawable->h,
- attachments, i / 2,
- &count,
- drawable->loaderPrivate);
+ buffers = screen->dri2.loader->getBuffersWithFormat(drawable,
+ &drawable->w,
+ &drawable->h,
+ attachments, i / 2,
+ &count,
+ drawable->loaderPrivate);
} else if (screen->dri2.loader) {
i = 0;
if (draw->color_rb[0])
@@ -437,12 +437,12 @@ radeon_update_renderbuffers(__DRIcontext *context, __DRIdrawable *drawable,
attachments[i++] = __DRI_BUFFER_STENCIL;
}
- buffers = (*screen->dri2.loader->getBuffers)(drawable,
- &drawable->w,
- &drawable->h,
- attachments, i,
- &count,
- drawable->loaderPrivate);
+ buffers = screen->dri2.loader->getBuffers(drawable,
+ &drawable->w,
+ &drawable->h,
+ attachments, i,
+ &count,
+ drawable->loaderPrivate);
}
if (buffers == NULL)
--
2.6.2
More information about the mesa-dev
mailing list