diff options
author | Mark Mueller <[email protected]> | 2014-01-04 14:11:43 -0800 |
---|---|---|
committer | Mark Mueller <[email protected]> | 2014-01-27 14:28:46 -0800 |
commit | 71fe9437169cfdafda8814aa814bb85429fb6cfc (patch) | |
tree | 7eb5b04c681c7347de9dd5b0a69aa4f75343293d /src/mesa/drivers/dri/radeon | |
parent | bc0ed682757607172eca6b8a7031c81a73287524 (diff) |
mesa: change gl_format to mesa_format
s/\bgl_format\b/mesa_format/g. Use better name for Mesa Formats enum
Diffstat (limited to 'src/mesa/drivers/dri/radeon')
-rw-r--r-- | src/mesa/drivers/dri/radeon/radeon_blit.c | 10 | ||||
-rw-r--r-- | src/mesa/drivers/dri/radeon/radeon_blit.h | 6 | ||||
-rw-r--r-- | src/mesa/drivers/dri/radeon/radeon_common.h | 2 | ||||
-rw-r--r-- | src/mesa/drivers/dri/radeon/radeon_common_context.h | 8 | ||||
-rw-r--r-- | src/mesa/drivers/dri/radeon/radeon_fbo.c | 4 | ||||
-rw-r--r-- | src/mesa/drivers/dri/radeon/radeon_mipmap_tree.c | 8 | ||||
-rw-r--r-- | src/mesa/drivers/dri/radeon/radeon_mipmap_tree.h | 6 | ||||
-rw-r--r-- | src/mesa/drivers/dri/radeon/radeon_pixel_read.c | 4 | ||||
-rw-r--r-- | src/mesa/drivers/dri/radeon/radeon_screen.c | 4 | ||||
-rw-r--r-- | src/mesa/drivers/dri/radeon/radeon_tex_copy.c | 4 | ||||
-rw-r--r-- | src/mesa/drivers/dri/radeon/radeon_texstate.c | 2 | ||||
-rw-r--r-- | src/mesa/drivers/dri/radeon/radeon_texture.c | 20 | ||||
-rw-r--r-- | src/mesa/drivers/dri/radeon/radeon_texture.h | 18 | ||||
-rw-r--r-- | src/mesa/drivers/dri/radeon/radeon_tile.c | 6 | ||||
-rw-r--r-- | src/mesa/drivers/dri/radeon/radeon_tile.h | 6 |
15 files changed, 54 insertions, 54 deletions
diff --git a/src/mesa/drivers/dri/radeon/radeon_blit.c b/src/mesa/drivers/dri/radeon/radeon_blit.c index 22a5e036ac6..e5d49ee6b00 100644 --- a/src/mesa/drivers/dri/radeon/radeon_blit.c +++ b/src/mesa/drivers/dri/radeon/radeon_blit.c @@ -38,7 +38,7 @@ static inline uint32_t cmdpacket0(struct radeon_screen *rscrn, } /* common formats supported as both textures and render targets */ -unsigned r100_check_blit(gl_format mesa_format, uint32_t dst_pitch) +unsigned r100_check_blit(mesa_format mesa_format, uint32_t dst_pitch) { /* XXX others? BE/LE? */ switch (mesa_format) { @@ -92,7 +92,7 @@ static inline void emit_vtx_state(struct r100_context *r100) } static void inline emit_tx_setup(struct r100_context *r100, - gl_format mesa_format, + mesa_format mesa_format, struct radeon_bo *bo, intptr_t offset, unsigned width, @@ -175,7 +175,7 @@ static void inline emit_tx_setup(struct r100_context *r100, static inline void emit_cb_setup(struct r100_context *r100, struct radeon_bo *bo, intptr_t offset, - gl_format mesa_format, + mesa_format mesa_format, unsigned pitch, unsigned width, unsigned height) @@ -341,7 +341,7 @@ static inline void emit_draw_packet(struct r100_context *r100, unsigned r100_blit(struct gl_context *ctx, struct radeon_bo *src_bo, intptr_t src_offset, - gl_format src_mesaformat, + mesa_format src_mesaformat, unsigned src_pitch, unsigned src_width, unsigned src_height, @@ -349,7 +349,7 @@ unsigned r100_blit(struct gl_context *ctx, unsigned src_y_offset, struct radeon_bo *dst_bo, intptr_t dst_offset, - gl_format dst_mesaformat, + mesa_format dst_mesaformat, unsigned dst_pitch, unsigned dst_width, unsigned dst_height, diff --git a/src/mesa/drivers/dri/radeon/radeon_blit.h b/src/mesa/drivers/dri/radeon/radeon_blit.h index 4fac4afe889..421560b6773 100644 --- a/src/mesa/drivers/dri/radeon/radeon_blit.h +++ b/src/mesa/drivers/dri/radeon/radeon_blit.h @@ -30,12 +30,12 @@ void r100_blit_init(struct r100_context *r100); -unsigned r100_check_blit(gl_format mesa_format, uint32_t dst_pitch); +unsigned r100_check_blit(mesa_format mesa_format, uint32_t dst_pitch); unsigned r100_blit(struct gl_context *ctx, struct radeon_bo *src_bo, intptr_t src_offset, - gl_format src_mesaformat, + mesa_format src_mesaformat, unsigned src_pitch, unsigned src_width, unsigned src_height, @@ -43,7 +43,7 @@ unsigned r100_blit(struct gl_context *ctx, unsigned src_y_offset, struct radeon_bo *dst_bo, intptr_t dst_offset, - gl_format dst_mesaformat, + mesa_format dst_mesaformat, unsigned dst_pitch, unsigned dst_width, unsigned dst_height, diff --git a/src/mesa/drivers/dri/radeon/radeon_common.h b/src/mesa/drivers/dri/radeon/radeon_common.h index c925ad9eaca..fedaf5063a7 100644 --- a/src/mesa/drivers/dri/radeon/radeon_common.h +++ b/src/mesa/drivers/dri/radeon/radeon_common.h @@ -29,7 +29,7 @@ void radeon_renderbuffer_set_bo(struct radeon_renderbuffer *rb, struct radeon_bo *bo); struct radeon_renderbuffer * -radeon_create_renderbuffer(gl_format format, __DRIdrawable *driDrawPriv); +radeon_create_renderbuffer(mesa_format format, __DRIdrawable *driDrawPriv); void radeonReadPixels(struct gl_context * ctx, diff --git a/src/mesa/drivers/dri/radeon/radeon_common_context.h b/src/mesa/drivers/dri/radeon/radeon_common_context.h index ce1eb1ea274..6cd15356634 100644 --- a/src/mesa/drivers/dri/radeon/radeon_common_context.h +++ b/src/mesa/drivers/dri/radeon/radeon_common_context.h @@ -474,11 +474,11 @@ struct radeon_context { void (*free_context)(struct gl_context *ctx); void (*emit_query_finish)(radeonContextPtr radeon); void (*update_scissor)(struct gl_context *ctx); - unsigned (*check_blit)(gl_format mesa_format, uint32_t dst_pitch); + unsigned (*check_blit)(mesa_format mesa_format, uint32_t dst_pitch); unsigned (*blit)(struct gl_context *ctx, struct radeon_bo *src_bo, intptr_t src_offset, - gl_format src_mesaformat, + mesa_format src_mesaformat, unsigned src_pitch, unsigned src_width, unsigned src_height, @@ -486,7 +486,7 @@ struct radeon_context { unsigned src_y_offset, struct radeon_bo *dst_bo, intptr_t dst_offset, - gl_format dst_mesaformat, + mesa_format dst_mesaformat, unsigned dst_pitch, unsigned dst_width, unsigned dst_height, @@ -495,7 +495,7 @@ struct radeon_context { unsigned reg_width, unsigned reg_height, unsigned flip_y); - unsigned (*is_format_renderable)(gl_format mesa_format); + unsigned (*is_format_renderable)(mesa_format mesa_format); } vtbl; }; diff --git a/src/mesa/drivers/dri/radeon/radeon_fbo.c b/src/mesa/drivers/dri/radeon/radeon_fbo.c index eacd58f4bfe..7a0ce47e141 100644 --- a/src/mesa/drivers/dri/radeon/radeon_fbo.c +++ b/src/mesa/drivers/dri/radeon/radeon_fbo.c @@ -636,7 +636,7 @@ radeon_nop_alloc_storage(struct gl_context * ctx, struct gl_renderbuffer *rb, * Not used for user-created renderbuffers. */ struct radeon_renderbuffer * -radeon_create_renderbuffer(gl_format format, __DRIdrawable *driDrawPriv) +radeon_create_renderbuffer(mesa_format format, __DRIdrawable *driDrawPriv) { struct radeon_renderbuffer *rrb; struct gl_renderbuffer *rb; @@ -833,7 +833,7 @@ static void radeon_validate_framebuffer(struct gl_context *ctx, struct gl_framebuffer *fb) { radeonContextPtr radeon = RADEON_CONTEXT(ctx); - gl_format mesa_format; + mesa_format mesa_format; int i; for (i = -2; i < (GLint) ctx->Const.MaxColorAttachments; i++) { diff --git a/src/mesa/drivers/dri/radeon/radeon_mipmap_tree.c b/src/mesa/drivers/dri/radeon/radeon_mipmap_tree.c index 4cb18388800..57cd725cd84 100644 --- a/src/mesa/drivers/dri/radeon/radeon_mipmap_tree.c +++ b/src/mesa/drivers/dri/radeon/radeon_mipmap_tree.c @@ -39,7 +39,7 @@ #include "radeon_tile.h" static unsigned get_aligned_compressed_row_stride( - gl_format format, + mesa_format format, unsigned width, unsigned minStride) { @@ -71,7 +71,7 @@ static unsigned get_aligned_compressed_row_stride( } unsigned get_texture_image_size( - gl_format format, + mesa_format format, unsigned rowStride, unsigned height, unsigned depth, @@ -96,7 +96,7 @@ unsigned get_texture_image_size( return rowStride * height * depth; } -unsigned get_texture_image_row_stride(radeonContextPtr rmesa, gl_format format, unsigned width, unsigned tiling, GLuint target) +unsigned get_texture_image_row_stride(radeonContextPtr rmesa, mesa_format format, unsigned width, unsigned tiling, GLuint target) { if (_mesa_is_format_compressed(format)) { return get_aligned_compressed_row_stride(format, width, rmesa->texture_compressed_row_align); @@ -177,7 +177,7 @@ static void calculate_miptree_layout(radeonContextPtr rmesa, radeon_mipmap_tree * Create a new mipmap tree, calculate its layout and allocate memory. */ radeon_mipmap_tree* radeon_miptree_create(radeonContextPtr rmesa, - GLenum target, gl_format mesaFormat, GLuint baseLevel, GLuint numLevels, + GLenum target, mesa_format mesaFormat, GLuint baseLevel, GLuint numLevels, GLuint width0, GLuint height0, GLuint depth0, GLuint tilebits) { radeon_mipmap_tree *mt = CALLOC_STRUCT(_radeon_mipmap_tree); diff --git a/src/mesa/drivers/dri/radeon/radeon_mipmap_tree.h b/src/mesa/drivers/dri/radeon/radeon_mipmap_tree.h index 74007ffdebc..f919a581b52 100644 --- a/src/mesa/drivers/dri/radeon/radeon_mipmap_tree.h +++ b/src/mesa/drivers/dri/radeon/radeon_mipmap_tree.h @@ -91,16 +91,16 @@ GLuint radeon_miptree_image_offset(radeon_mipmap_tree *mt, GLuint face, GLuint level); uint32_t get_base_teximage_offset(radeonTexObj *texObj); -unsigned get_texture_image_row_stride(radeonContextPtr rmesa, gl_format format, unsigned width, unsigned tiling, unsigned target); +unsigned get_texture_image_row_stride(radeonContextPtr rmesa, mesa_format format, unsigned width, unsigned tiling, unsigned target); unsigned get_texture_image_size( - gl_format format, + mesa_format format, unsigned rowStride, unsigned height, unsigned depth, unsigned tiling); radeon_mipmap_tree *radeon_miptree_create(radeonContextPtr rmesa, - GLenum target, gl_format mesaFormat, GLuint baseLevel, GLuint numLevels, + GLenum target, mesa_format mesaFormat, GLuint baseLevel, GLuint numLevels, GLuint width0, GLuint height0, GLuint depth0, GLuint tilebits); #endif /* __RADEON_MIPMAP_TREE_H_ */ diff --git a/src/mesa/drivers/dri/radeon/radeon_pixel_read.c b/src/mesa/drivers/dri/radeon/radeon_pixel_read.c index 0aa00bd95b0..e9bfc0df265 100644 --- a/src/mesa/drivers/dri/radeon/radeon_pixel_read.c +++ b/src/mesa/drivers/dri/radeon/radeon_pixel_read.c @@ -38,7 +38,7 @@ #include "radeon_debug.h" #include "radeon_mipmap_tree.h" -static gl_format gl_format_and_type_to_mesa_format(GLenum format, GLenum type) +static mesa_format gl_format_and_type_to_mesa_format(GLenum format, GLenum type) { switch (format) { @@ -94,7 +94,7 @@ do_blit_readpixels(struct gl_context * ctx, { radeonContextPtr radeon = RADEON_CONTEXT(ctx); const struct radeon_renderbuffer *rrb = radeon_renderbuffer(ctx->ReadBuffer->_ColorReadBuffer); - const gl_format dst_format = gl_format_and_type_to_mesa_format(format, type); + const mesa_format dst_format = gl_format_and_type_to_mesa_format(format, type); unsigned dst_rowstride, dst_imagesize, aligned_rowstride, flip_y; struct radeon_bo *dst_buffer; GLint dst_x = 0, dst_y = 0; diff --git a/src/mesa/drivers/dri/radeon/radeon_screen.c b/src/mesa/drivers/dri/radeon/radeon_screen.c index 15bf5f859ae..d90bafa9818 100644 --- a/src/mesa/drivers/dri/radeon/radeon_screen.c +++ b/src/mesa/drivers/dri/radeon/radeon_screen.c @@ -598,7 +598,7 @@ radeonCreateBuffer( __DRIscreen *driScrnPriv, const GLboolean swAccum = mesaVis->accumRedBits > 0; const GLboolean swStencil = mesaVis->stencilBits > 0 && mesaVis->depthBits != 24; - gl_format rgbFormat; + mesa_format rgbFormat; struct radeon_framebuffer *rfb; if (isPixmap) @@ -708,7 +708,7 @@ radeonDestroyBuffer(__DRIdrawable *driDrawPriv) static const __DRIconfig **radeonInitScreen2(__DRIscreen *psp) { - static const gl_format formats[3] = { + static const mesa_format formats[3] = { MESA_FORMAT_RGB565, MESA_FORMAT_XRGB8888, MESA_FORMAT_ARGB8888 diff --git a/src/mesa/drivers/dri/radeon/radeon_tex_copy.c b/src/mesa/drivers/dri/radeon/radeon_tex_copy.c index 675eb78ec5c..fc723842c11 100644 --- a/src/mesa/drivers/dri/radeon/radeon_tex_copy.c +++ b/src/mesa/drivers/dri/radeon/radeon_tex_copy.c @@ -50,8 +50,8 @@ do_copy_texsubimage(struct gl_context *ctx, const GLuint level = timg->base.Base.Level; unsigned src_bpp; unsigned dst_bpp; - gl_format src_mesaformat; - gl_format dst_mesaformat; + mesa_format src_mesaformat; + mesa_format dst_mesaformat; unsigned flip_y; if (!radeon->vtbl.blit) { diff --git a/src/mesa/drivers/dri/radeon/radeon_texstate.c b/src/mesa/drivers/dri/radeon/radeon_texstate.c index 09a7ccb1fff..5550a5aa1ec 100644 --- a/src/mesa/drivers/dri/radeon/radeon_texstate.c +++ b/src/mesa/drivers/dri/radeon/radeon_texstate.c @@ -598,7 +598,7 @@ void radeonSetTexBuffer2(__DRIcontext *pDRICtx, GLint target, GLint texture_form struct radeon_framebuffer *rfb; radeonTexObjPtr t; uint32_t pitch_val; - gl_format texFormat; + mesa_format texFormat; radeon = pDRICtx->driverPrivate; diff --git a/src/mesa/drivers/dri/radeon/radeon_texture.c b/src/mesa/drivers/dri/radeon/radeon_texture.c index 52cf95dffb8..8455b826270 100644 --- a/src/mesa/drivers/dri/radeon/radeon_texture.c +++ b/src/mesa/drivers/dri/radeon/radeon_texture.c @@ -213,7 +213,7 @@ radeon_unmap_texture_image(struct gl_context *ctx, } /* try to find a format which will only need a memcopy */ -static gl_format radeonChoose8888TexFormat(radeonContextPtr rmesa, +static mesa_format radeonChoose8888TexFormat(radeonContextPtr rmesa, GLenum srcFormat, GLenum srcType, GLboolean fbo) { @@ -242,7 +242,7 @@ static gl_format radeonChoose8888TexFormat(radeonContextPtr rmesa, #endif } -gl_format radeonChooseTextureFormat_mesa(struct gl_context * ctx, +mesa_format radeonChooseTextureFormat_mesa(struct gl_context * ctx, GLenum target, GLint internalFormat, GLenum format, @@ -252,7 +252,7 @@ gl_format radeonChooseTextureFormat_mesa(struct gl_context * ctx, type, 0); } -gl_format radeonChooseTextureFormat(struct gl_context * ctx, +mesa_format radeonChooseTextureFormat(struct gl_context * ctx, GLint internalFormat, GLenum format, GLenum type, GLboolean fbo) @@ -504,7 +504,7 @@ static void teximage_assign_miptree(radeonContextPtr rmesa, "%s Failed to allocate miptree.\n", __func__); } -unsigned radeonIsFormatRenderable(gl_format mesa_format) +unsigned radeonIsFormatRenderable(mesa_format mesa_format) { if (mesa_format == _radeon_texformat_argb8888 || mesa_format == _radeon_texformat_rgb565 || mesa_format == _radeon_texformat_argb1555 || mesa_format == _radeon_texformat_argb4444) @@ -579,12 +579,12 @@ void radeon_image_target_texture_2d(struct gl_context *ctx, GLenum target, fprintf(stderr, "miptree doesn't match image\n"); } -gl_format _radeon_texformat_rgba8888 = MESA_FORMAT_NONE; -gl_format _radeon_texformat_argb8888 = MESA_FORMAT_NONE; -gl_format _radeon_texformat_rgb565 = MESA_FORMAT_NONE; -gl_format _radeon_texformat_argb4444 = MESA_FORMAT_NONE; -gl_format _radeon_texformat_argb1555 = MESA_FORMAT_NONE; -gl_format _radeon_texformat_al88 = MESA_FORMAT_NONE; +mesa_format _radeon_texformat_rgba8888 = MESA_FORMAT_NONE; +mesa_format _radeon_texformat_argb8888 = MESA_FORMAT_NONE; +mesa_format _radeon_texformat_rgb565 = MESA_FORMAT_NONE; +mesa_format _radeon_texformat_argb4444 = MESA_FORMAT_NONE; +mesa_format _radeon_texformat_argb1555 = MESA_FORMAT_NONE; +mesa_format _radeon_texformat_al88 = MESA_FORMAT_NONE; /*@}*/ diff --git a/src/mesa/drivers/dri/radeon/radeon_texture.h b/src/mesa/drivers/dri/radeon/radeon_texture.h index 6ef640c3e20..286b2a20a30 100644 --- a/src/mesa/drivers/dri/radeon/radeon_texture.h +++ b/src/mesa/drivers/dri/radeon/radeon_texture.h @@ -33,12 +33,12 @@ #include "main/formats.h" -extern gl_format _radeon_texformat_rgba8888; -extern gl_format _radeon_texformat_argb8888; -extern gl_format _radeon_texformat_rgb565; -extern gl_format _radeon_texformat_argb4444; -extern gl_format _radeon_texformat_argb1555; -extern gl_format _radeon_texformat_al88; +extern mesa_format _radeon_texformat_rgba8888; +extern mesa_format _radeon_texformat_argb8888; +extern mesa_format _radeon_texformat_rgb565; +extern mesa_format _radeon_texformat_argb4444; +extern mesa_format _radeon_texformat_argb1555; +extern mesa_format _radeon_texformat_al88; extern void copy_rows(void* dst, GLuint dststride, const void* src, GLuint srcstride, @@ -51,13 +51,13 @@ int radeon_validate_texture_miptree(struct gl_context * ctx, struct gl_texture_object *texObj); -gl_format radeonChooseTextureFormat_mesa(struct gl_context * ctx, +mesa_format radeonChooseTextureFormat_mesa(struct gl_context * ctx, GLenum target, GLint internalFormat, GLenum format, GLenum type); -gl_format radeonChooseTextureFormat(struct gl_context * ctx, +mesa_format radeonChooseTextureFormat(struct gl_context * ctx, GLint internalFormat, GLenum format, GLenum type, GLboolean fbo); @@ -69,7 +69,7 @@ void radeonCopyTexSubImage(struct gl_context *ctx, GLuint dims, GLint x, GLint y, GLsizei width, GLsizei height); -unsigned radeonIsFormatRenderable(gl_format mesa_format); +unsigned radeonIsFormatRenderable(mesa_format mesa_format); void radeon_image_target_texture_2d(struct gl_context *ctx, GLenum target, struct gl_texture_object *texObj, diff --git a/src/mesa/drivers/dri/radeon/radeon_tile.c b/src/mesa/drivers/dri/radeon/radeon_tile.c index b95961fc188..433199fdc9a 100644 --- a/src/mesa/drivers/dri/radeon/radeon_tile.c +++ b/src/mesa/drivers/dri/radeon/radeon_tile.c @@ -211,7 +211,7 @@ static void micro_tile_1_x_1_128bit(const void * src, unsigned src_pitch, void tile_image(const void * src, unsigned src_pitch, void *dst, unsigned dst_pitch, - gl_format format, unsigned width, unsigned height) + mesa_format format, unsigned width, unsigned height) { assert(src_pitch >= width); assert(dst_pitch >= width); @@ -435,7 +435,7 @@ static void micro_untile_1_x_1_128bit(const void * src, unsigned src_pitch, void untile_image(const void * src, unsigned src_pitch, void *dst, unsigned dst_pitch, - gl_format format, unsigned width, unsigned height) + mesa_format format, unsigned width, unsigned height) { assert(src_pitch >= width); assert(dst_pitch >= width); @@ -474,7 +474,7 @@ void untile_image(const void * src, unsigned src_pitch, } } -void get_tile_size(gl_format format, unsigned *block_width, unsigned *block_height) +void get_tile_size(mesa_format format, unsigned *block_width, unsigned *block_height) { switch (_mesa_get_format_bytes(format)) { diff --git a/src/mesa/drivers/dri/radeon/radeon_tile.h b/src/mesa/drivers/dri/radeon/radeon_tile.h index 31d9c5611c3..6654c7db73d 100644 --- a/src/mesa/drivers/dri/radeon/radeon_tile.h +++ b/src/mesa/drivers/dri/radeon/radeon_tile.h @@ -29,10 +29,10 @@ void tile_image(const void * src, unsigned src_pitch, void *dst, unsigned dst_pitch, - gl_format format, unsigned width, unsigned height); + mesa_format format, unsigned width, unsigned height); void untile_image(const void * src, unsigned src_pitch, void *dst, unsigned dst_pitch, - gl_format format, unsigned width, unsigned height); + mesa_format format, unsigned width, unsigned height); -void get_tile_size(gl_format format, unsigned *block_width, unsigned *block_height); +void get_tile_size(mesa_format format, unsigned *block_width, unsigned *block_height); |