summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2014-04-05 09:53:01 -0600
committerBrian Paul <[email protected]>2014-04-07 09:21:25 -0600
commite4ebb24b35d14741cb8973bec0fee668f662d76c (patch)
tree49f601ba3173d76a105cef500387396c021ea2ce /src
parentfde325838970cccbe565f7ab30d8ca3695cc997f (diff)
swrast: rename texture fetch functions (pt. 2)
Rename functions to match format names. sed commands: s/f_al1616_rev/A16L16_UNORM/g s/f_al1616/L16A16_UNORM/g s/f_rgb565_rev/R5G6B5_UNORM/g s/f_rgb565/B5G6R5_UNORM/g s/f_argb4444_rev/A4R4G4B4_UNORM/g s/f_argb4444/B4G4R4A4_UNORM/g s/f_rgba5551/A1B5G5R5_UNORM/g s/f_argb1555_rev/A1R5G5B5_UNORM/g s/f_al88_rev/A8L8_UNORM/g s/f_al88/L8A8_UNORM/g s/f_gr88/R8G8_UNORM/g s/f_rg88/G8R8_UNORM/g s/f_al44/L4A4_UNORM/g s/f_rgb332/B2G3R3_UNORM/g Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/swrast/s_texfetch.c90
-rw-r--r--src/mesa/swrast/s_texfetch_tmp.h30
2 files changed, 60 insertions, 60 deletions
diff --git a/src/mesa/swrast/s_texfetch.c b/src/mesa/swrast/s_texfetch.c
index e041dd5cc9b..b871116a738 100644
--- a/src/mesa/swrast/s_texfetch.c
+++ b/src/mesa/swrast/s_texfetch.c
@@ -199,33 +199,33 @@ texfetch_funcs[] =
},
{
MESA_FORMAT_L16A16_UNORM,
- fetch_texel_1d_f_al1616,
- fetch_texel_2d_f_al1616,
- fetch_texel_3d_f_al1616
+ fetch_texel_1d_L16A16_UNORM,
+ fetch_texel_2d_L16A16_UNORM,
+ fetch_texel_3d_L16A16_UNORM
},
{
MESA_FORMAT_A16L16_UNORM,
- fetch_texel_1d_f_al1616_rev,
- fetch_texel_2d_f_al1616_rev,
- fetch_texel_3d_f_al1616_rev
+ fetch_texel_1d_A16L16_UNORM,
+ fetch_texel_2d_A16L16_UNORM,
+ fetch_texel_3d_A16L16_UNORM
},
{
MESA_FORMAT_B5G6R5_UNORM,
- fetch_texel_1d_f_rgb565,
- fetch_texel_2d_f_rgb565,
- fetch_texel_3d_f_rgb565
+ fetch_texel_1d_B5G6R5_UNORM,
+ fetch_texel_2d_B5G6R5_UNORM,
+ fetch_texel_3d_B5G6R5_UNORM
},
{
MESA_FORMAT_R5G6B5_UNORM,
- fetch_texel_1d_f_rgb565_rev,
- fetch_texel_2d_f_rgb565_rev,
- fetch_texel_3d_f_rgb565_rev
+ fetch_texel_1d_R5G6B5_UNORM,
+ fetch_texel_2d_R5G6B5_UNORM,
+ fetch_texel_3d_R5G6B5_UNORM
},
{
MESA_FORMAT_B4G4R4A4_UNORM,
- fetch_texel_1d_f_argb4444,
- fetch_texel_2d_f_argb4444,
- fetch_texel_3d_f_argb4444
+ fetch_texel_1d_B4G4R4A4_UNORM,
+ fetch_texel_2d_B4G4R4A4_UNORM,
+ fetch_texel_3d_B4G4R4A4_UNORM
},
{
MESA_FORMAT_B4G4R4X4_UNORM,
@@ -235,21 +235,21 @@ texfetch_funcs[] =
},
{
MESA_FORMAT_A4R4G4B4_UNORM,
- fetch_texel_1d_f_argb4444_rev,
- fetch_texel_2d_f_argb4444_rev,
- fetch_texel_3d_f_argb4444_rev
+ fetch_texel_1d_A4R4G4B4_UNORM,
+ fetch_texel_2d_A4R4G4B4_UNORM,
+ fetch_texel_3d_A4R4G4B4_UNORM
},
{
MESA_FORMAT_A1B5G5R5_UNORM,
- fetch_texel_1d_f_rgba5551,
- fetch_texel_2d_f_rgba5551,
- fetch_texel_3d_f_rgba5551
+ fetch_texel_1d_A1B5G5R5_UNORM,
+ fetch_texel_2d_A1B5G5R5_UNORM,
+ fetch_texel_3d_A1B5G5R5_UNORM
},
{
MESA_FORMAT_B5G5R5A1_UNORM,
- fetch_texel_1d_f_argb1555,
- fetch_texel_2d_f_argb1555,
- fetch_texel_3d_f_argb1555
+ fetch_texel_1d_B5G5R5A1_UNORM,
+ fetch_texel_2d_B5G5R5A1_UNORM,
+ fetch_texel_3d_B5G5R5A1_UNORM
},
{
MESA_FORMAT_B5G5R5X1_UNORM,
@@ -259,45 +259,45 @@ texfetch_funcs[] =
},
{
MESA_FORMAT_A1R5G5B5_UNORM,
- fetch_texel_1d_f_argb1555_rev,
- fetch_texel_2d_f_argb1555_rev,
- fetch_texel_3d_f_argb1555_rev
+ fetch_texel_1d_A1R5G5B5_UNORM,
+ fetch_texel_2d_A1R5G5B5_UNORM,
+ fetch_texel_3d_A1R5G5B5_UNORM
},
{
MESA_FORMAT_L8A8_UNORM,
- fetch_texel_1d_f_al88,
- fetch_texel_2d_f_al88,
- fetch_texel_3d_f_al88
+ fetch_texel_1d_L8A8_UNORM,
+ fetch_texel_2d_L8A8_UNORM,
+ fetch_texel_3d_L8A8_UNORM
},
{
MESA_FORMAT_A8L8_UNORM,
- fetch_texel_1d_f_al88_rev,
- fetch_texel_2d_f_al88_rev,
- fetch_texel_3d_f_al88_rev
+ fetch_texel_1d_A8L8_UNORM,
+ fetch_texel_2d_A8L8_UNORM,
+ fetch_texel_3d_A8L8_UNORM
},
{
MESA_FORMAT_R8G8_UNORM,
- fetch_texel_1d_f_gr88,
- fetch_texel_2d_f_gr88,
- fetch_texel_3d_f_gr88
+ fetch_texel_1d_R8G8_UNORM,
+ fetch_texel_2d_R8G8_UNORM,
+ fetch_texel_3d_R8G8_UNORM
},
{
MESA_FORMAT_G8R8_UNORM,
- fetch_texel_1d_f_rg88,
- fetch_texel_2d_f_rg88,
- fetch_texel_3d_f_rg88
+ fetch_texel_1d_G8R8_UNORM,
+ fetch_texel_2d_G8R8_UNORM,
+ fetch_texel_3d_G8R8_UNORM
},
{
MESA_FORMAT_L4A4_UNORM,
- fetch_texel_1d_f_al44,
- fetch_texel_2d_f_al44,
- fetch_texel_3d_f_al44
+ fetch_texel_1d_L4A4_UNORM,
+ fetch_texel_2d_L4A4_UNORM,
+ fetch_texel_3d_L4A4_UNORM
},
{
MESA_FORMAT_B2G3R3_UNORM,
- fetch_texel_1d_f_rgb332,
- fetch_texel_2d_f_rgb332,
- fetch_texel_3d_f_rgb332
+ fetch_texel_1d_B2G3R3_UNORM,
+ fetch_texel_2d_B2G3R3_UNORM,
+ fetch_texel_3d_B2G3R3_UNORM
},
{
MESA_FORMAT_R16G16_UNORM,
diff --git a/src/mesa/swrast/s_texfetch_tmp.h b/src/mesa/swrast/s_texfetch_tmp.h
index 0acbe4fefe8..55b82bfecf8 100644
--- a/src/mesa/swrast/s_texfetch_tmp.h
+++ b/src/mesa/swrast/s_texfetch_tmp.h
@@ -556,7 +556,7 @@ static void FETCH(f_bgr888)( const struct swrast_texture_image *texImage,
/* MESA_FORMAT_B5G6R5_UNORM ********************************************************/
/* Fetch texel from 1D, 2D or 3D rgb565 texture, return 4 GLchans */
-static void FETCH(f_rgb565)( const struct swrast_texture_image *texImage,
+static void FETCH(B5G6R5_UNORM)( const struct swrast_texture_image *texImage,
GLint i, GLint j, GLint k, GLfloat *texel )
{
const GLushort *src = TEXEL_ADDR(GLushort, texImage, i, j, k, 1);
@@ -573,7 +573,7 @@ static void FETCH(f_rgb565)( const struct swrast_texture_image *texImage,
/* MESA_FORMAT_R5G6B5_UNORM ****************************************************/
/* Fetch texel from 1D, 2D or 3D rgb565_rev texture, return 4 GLchans */
-static void FETCH(f_rgb565_rev)( const struct swrast_texture_image *texImage,
+static void FETCH(R5G6B5_UNORM)( const struct swrast_texture_image *texImage,
GLint i, GLint j, GLint k, GLfloat *texel )
{
const GLushort *src = TEXEL_ADDR(GLushort, texImage, i, j, k, 1);
@@ -590,7 +590,7 @@ static void FETCH(f_rgb565_rev)( const struct swrast_texture_image *texImage,
/* MESA_FORMAT_B4G4R4A4_UNORM ******************************************************/
/* Fetch texel from 1D, 2D or 3D argb444 texture, return 4 GLchans */
-static void FETCH(f_argb4444)( const struct swrast_texture_image *texImage,
+static void FETCH(B4G4R4A4_UNORM)( const struct swrast_texture_image *texImage,
GLint i, GLint j, GLint k, GLfloat *texel )
{
const GLushort *src = TEXEL_ADDR(GLushort, texImage, i, j, k, 1);
@@ -607,7 +607,7 @@ static void FETCH(f_argb4444)( const struct swrast_texture_image *texImage,
/* MESA_FORMAT_A4R4G4B4_UNORM **************************************************/
/* Fetch texel from 1D, 2D or 3D argb4444_rev texture, return 4 GLchans */
-static void FETCH(f_argb4444_rev)( const struct swrast_texture_image *texImage,
+static void FETCH(A4R4G4B4_UNORM)( const struct swrast_texture_image *texImage,
GLint i, GLint j, GLint k, GLfloat *texel )
{
const GLushort s = *TEXEL_ADDR(GLushort, texImage, i, j, k, 1);
@@ -622,7 +622,7 @@ static void FETCH(f_argb4444_rev)( const struct swrast_texture_image *texImage,
/* MESA_FORMAT_A1B5G5R5_UNORM ******************************************************/
/* Fetch texel from 1D, 2D or 3D argb1555 texture, return 4 GLchans */
-static void FETCH(f_rgba5551)( const struct swrast_texture_image *texImage,
+static void FETCH(A1B5G5R5_UNORM)( const struct swrast_texture_image *texImage,
GLint i, GLint j, GLint k, GLfloat *texel )
{
const GLushort *src = TEXEL_ADDR(GLushort, texImage, i, j, k, 1);
@@ -638,7 +638,7 @@ static void FETCH(f_rgba5551)( const struct swrast_texture_image *texImage,
/* MESA_FORMAT_B5G5R5A1_UNORM ******************************************************/
/* Fetch texel from 1D, 2D or 3D argb1555 texture, return 4 GLchans */
-static void FETCH(f_argb1555)( const struct swrast_texture_image *texImage,
+static void FETCH(B5G5R5A1_UNORM)( const struct swrast_texture_image *texImage,
GLint i, GLint j, GLint k, GLfloat *texel )
{
const GLushort *src = TEXEL_ADDR(GLushort, texImage, i, j, k, 1);
@@ -655,7 +655,7 @@ static void FETCH(f_argb1555)( const struct swrast_texture_image *texImage,
/* MESA_FORMAT_A1R5G5B5_UNORM **************************************************/
/* Fetch texel from 1D, 2D or 3D argb1555_rev texture, return 4 GLchans */
-static void FETCH(f_argb1555_rev)( const struct swrast_texture_image *texImage,
+static void FETCH(A1R5G5B5_UNORM)( const struct swrast_texture_image *texImage,
GLint i, GLint j, GLint k, GLfloat *texel )
{
const GLushort *src = TEXEL_ADDR(GLushort, texImage, i, j, k, 1);
@@ -689,7 +689,7 @@ static void FETCH(f_argb2101010)( const struct swrast_texture_image *texImage,
/* MESA_FORMAT_R8G8_UNORM **********************************************************/
/* Fetch texel from 1D, 2D or 3D rg88 texture, return 4 GLchans */
-static void FETCH(f_gr88)( const struct swrast_texture_image *texImage,
+static void FETCH(R8G8_UNORM)( const struct swrast_texture_image *texImage,
GLint i, GLint j, GLint k, GLfloat *texel )
{
const GLushort s = *TEXEL_ADDR(GLushort, texImage, i, j, k, 1);
@@ -705,7 +705,7 @@ static void FETCH(f_gr88)( const struct swrast_texture_image *texImage,
/* MESA_FORMAT_G8R8_UNORM ******************************************************/
/* Fetch texel from 1D, 2D or 3D rg88_rev texture, return 4 GLchans */
-static void FETCH(f_rg88)( const struct swrast_texture_image *texImage,
+static void FETCH(G8R8_UNORM)( const struct swrast_texture_image *texImage,
GLint i, GLint j, GLint k, GLfloat *texel )
{
const GLushort s = *TEXEL_ADDR(GLushort, texImage, i, j, k, 1);
@@ -721,7 +721,7 @@ static void FETCH(f_rg88)( const struct swrast_texture_image *texImage,
/* MESA_FORMAT_L4A4_UNORM **********************************************************/
/* Fetch texel from 1D, 2D or 3D al44 texture, return 4 GLchans */
-static void FETCH(f_al44)( const struct swrast_texture_image *texImage,
+static void FETCH(L4A4_UNORM)( const struct swrast_texture_image *texImage,
GLint i, GLint j, GLint k, GLfloat *texel )
{
const GLubyte s = *TEXEL_ADDR(GLubyte, texImage, i, j, k, 1);
@@ -737,7 +737,7 @@ static void FETCH(f_al44)( const struct swrast_texture_image *texImage,
/* MESA_FORMAT_L8A8_UNORM **********************************************************/
/* Fetch texel from 1D, 2D or 3D al88 texture, return 4 GLchans */
-static void FETCH(f_al88)( const struct swrast_texture_image *texImage,
+static void FETCH(L8A8_UNORM)( const struct swrast_texture_image *texImage,
GLint i, GLint j, GLint k, GLfloat *texel )
{
const GLushort s = *TEXEL_ADDR(GLushort, texImage, i, j, k, 1);
@@ -785,7 +785,7 @@ static void FETCH(f_r16)(const struct swrast_texture_image *texImage,
/* MESA_FORMAT_A8L8_UNORM ******************************************************/
/* Fetch texel from 1D, 2D or 3D al88_rev texture, return 4 GLchans */
-static void FETCH(f_al88_rev)( const struct swrast_texture_image *texImage,
+static void FETCH(A8L8_UNORM)( const struct swrast_texture_image *texImage,
GLint i, GLint j, GLint k, GLfloat *texel )
{
const GLushort s = *TEXEL_ADDR(GLushort, texImage, i, j, k, 1);
@@ -833,7 +833,7 @@ static void FETCH(f_rg1616_rev)( const struct swrast_texture_image *texImage,
/* MESA_FORMAT_L16A16_UNORM ********************************************************/
/* Fetch texel from 1D, 2D or 3D al1616 texture, return 4 GLchans */
-static void FETCH(f_al1616)( const struct swrast_texture_image *texImage,
+static void FETCH(L16A16_UNORM)( const struct swrast_texture_image *texImage,
GLint i, GLint j, GLint k, GLfloat *texel )
{
const GLuint s = *TEXEL_ADDR(GLuint, texImage, i, j, k, 1);
@@ -849,7 +849,7 @@ static void FETCH(f_al1616)( const struct swrast_texture_image *texImage,
/* MESA_FORMAT_A16L16_UNORM ****************************************************/
/* Fetch texel from 1D, 2D or 3D al1616_rev texture, return 4 GLchans */
-static void FETCH(f_al1616_rev)( const struct swrast_texture_image *texImage,
+static void FETCH(A16L16_UNORM)( const struct swrast_texture_image *texImage,
GLint i, GLint j, GLint k, GLfloat *texel )
{
const GLuint s = *TEXEL_ADDR(GLuint, texImage, i, j, k, 1);
@@ -865,7 +865,7 @@ static void FETCH(f_al1616_rev)( const struct swrast_texture_image *texImage,
/* MESA_FORMAT_B2G3R3_UNORM ********************************************************/
/* Fetch texel from 1D, 2D or 3D rgb332 texture, return 4 GLchans */
-static void FETCH(f_rgb332)( const struct swrast_texture_image *texImage,
+static void FETCH(B2G3R3_UNORM)( const struct swrast_texture_image *texImage,
GLint i, GLint j, GLint k, GLfloat *texel )
{
const GLubyte *src = TEXEL_ADDR(GLubyte, texImage, i, j, k, 1);