diff options
author | Eric Anholt <[email protected]> | 2012-09-21 10:36:22 +0200 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2012-09-27 12:52:53 -0700 |
commit | 9ba6f4733ce6e1b07f8a932590bdbb6cf0702f5d (patch) | |
tree | 6d0385dfdfa078a4ddd9cd940a6f5c8c236c9738 /src/mesa/drivers/dri/intel | |
parent | e0cd633f174ad7b106347f0443bbb2f5521b867e (diff) |
intel: Mark some file-local code as static.
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/intel')
-rw-r--r-- | src/mesa/drivers/dri/intel/intel_batchbuffer.c | 5 | ||||
-rw-r--r-- | src/mesa/drivers/dri/intel/intel_batchbuffer.h | 1 | ||||
-rw-r--r-- | src/mesa/drivers/dri/intel/intel_fbo.c | 2 | ||||
-rw-r--r-- | src/mesa/drivers/dri/intel/intel_fbo.h | 6 | ||||
-rw-r--r-- | src/mesa/drivers/dri/intel/intel_screen.c | 2 |
5 files changed, 6 insertions, 10 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_batchbuffer.c b/src/mesa/drivers/dri/intel/intel_batchbuffer.c index 06cbaecc74d..d36dacc6109 100644 --- a/src/mesa/drivers/dri/intel/intel_batchbuffer.c +++ b/src/mesa/drivers/dri/intel/intel_batchbuffer.c @@ -32,6 +32,9 @@ #include "intel_bufmgr.h" #include "intel_buffers.h" +static void +intel_batchbuffer_reset(struct intel_context *intel); + struct cached_batch_item { struct cached_batch_item *next; uint16_t header; @@ -67,7 +70,7 @@ intel_batchbuffer_init(struct intel_context *intel) } } -void +static void intel_batchbuffer_reset(struct intel_context *intel) { if (intel->batch.last_bo != NULL) { diff --git a/src/mesa/drivers/dri/intel/intel_batchbuffer.h b/src/mesa/drivers/dri/intel/intel_batchbuffer.h index b8b60cd862b..bae65553d08 100644 --- a/src/mesa/drivers/dri/intel/intel_batchbuffer.h +++ b/src/mesa/drivers/dri/intel/intel_batchbuffer.h @@ -26,7 +26,6 @@ extern "C" { struct intel_batchbuffer; void intel_batchbuffer_init(struct intel_context *intel); -void intel_batchbuffer_reset(struct intel_context *intel); void intel_batchbuffer_free(struct intel_context *intel); void intel_batchbuffer_save_state(struct intel_context *intel); void intel_batchbuffer_reset_to_saved(struct intel_context *intel); diff --git a/src/mesa/drivers/dri/intel/intel_fbo.c b/src/mesa/drivers/dri/intel/intel_fbo.c index ca9aa03136b..feac7024583 100644 --- a/src/mesa/drivers/dri/intel/intel_fbo.c +++ b/src/mesa/drivers/dri/intel/intel_fbo.c @@ -220,7 +220,7 @@ intel_quantize_num_samples(struct intel_screen *intel, unsigned num_samples) * Called via glRenderbufferStorageEXT() to set the format and allocate * storage for a user-created renderbuffer. */ -GLboolean +static GLboolean intel_alloc_renderbuffer_storage(struct gl_context * ctx, struct gl_renderbuffer *rb, GLenum internalFormat, GLuint width, GLuint height) diff --git a/src/mesa/drivers/dri/intel/intel_fbo.h b/src/mesa/drivers/dri/intel/intel_fbo.h index 6574f0faf22..3db80de7cd1 100644 --- a/src/mesa/drivers/dri/intel/intel_fbo.h +++ b/src/mesa/drivers/dri/intel/intel_fbo.h @@ -140,12 +140,6 @@ intel_create_wrapped_renderbuffer(struct gl_context * ctx, int width, int height, gl_format format); -GLboolean -intel_alloc_renderbuffer_storage(struct gl_context * ctx, - struct gl_renderbuffer *rb, - GLenum internalFormat, - GLuint width, GLuint height); - extern void intel_fbo_init(struct intel_context *intel); diff --git a/src/mesa/drivers/dri/intel/intel_screen.c b/src/mesa/drivers/dri/intel/intel_screen.c index e3a442c2a27..50959b72af2 100644 --- a/src/mesa/drivers/dri/intel/intel_screen.c +++ b/src/mesa/drivers/dri/intel/intel_screen.c @@ -190,7 +190,7 @@ static const struct __DRI2flushExtensionRec intelFlushExtension = { dri2InvalidateDrawable, }; -struct intel_image_format intel_image_formats[] = { +static struct intel_image_format intel_image_formats[] = { { __DRI_IMAGE_FOURCC_ARGB8888, __DRI_IMAGE_COMPONENTS_RGBA, 1, { { 0, 0, 0, __DRI_IMAGE_FORMAT_ARGB8888, 4 } } }, |