mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 09:20:13 +01:00
intel: Mark some file-local code as static.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
e0cd633f17
commit
9ba6f4733c
9 changed files with 9 additions and 18 deletions
|
|
@ -62,7 +62,7 @@ brw_new_shader_program(struct gl_context *ctx, GLuint name)
|
|||
* what non-orthogonal state will be set, in the hope that it reflects
|
||||
* the eventual NOS used, and thus allows us to produce link failures.
|
||||
*/
|
||||
bool
|
||||
static bool
|
||||
brw_shader_precompile(struct gl_context *ctx, struct gl_shader_program *prog)
|
||||
{
|
||||
struct brw_context *brw = brw_context(ctx);
|
||||
|
|
|
|||
|
|
@ -217,11 +217,6 @@ void gen7_set_surface_mcs_info(struct brw_context *brw,
|
|||
void gen7_check_surface_setup(struct gen7_surface_state *surf,
|
||||
bool is_render_target);
|
||||
void gen7_init_vtable_surface_functions(struct brw_context *brw);
|
||||
void gen7_create_constant_surface(struct brw_context *brw,
|
||||
drm_intel_bo *bo,
|
||||
uint32_t offset,
|
||||
int width,
|
||||
uint32_t *out_offset);
|
||||
|
||||
/* brw_wm_sampler_state.c */
|
||||
uint32_t translate_wrap_mode(GLenum wrap, bool using_nearest);
|
||||
|
|
|
|||
|
|
@ -179,7 +179,7 @@ static const struct brw_tracked_state *gen6_atoms[] =
|
|||
&brw_vertices,
|
||||
};
|
||||
|
||||
const struct brw_tracked_state *gen7_atoms[] =
|
||||
static const struct brw_tracked_state *gen7_atoms[] =
|
||||
{
|
||||
&brw_wm_input_sizes,
|
||||
&brw_vs_prog,
|
||||
|
|
|
|||
|
|
@ -400,7 +400,7 @@ gen7_update_texture_surface(struct gl_context *ctx,
|
|||
* Create the constant buffer surface. Vertex/fragment shader constants will
|
||||
* be read from this buffer with Data Port Read instructions/messages.
|
||||
*/
|
||||
void
|
||||
static void
|
||||
gen7_create_constant_surface(struct brw_context *brw,
|
||||
drm_intel_bo *bo,
|
||||
uint32_t offset,
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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 } } },
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue