swrast: rename texture fetch functions (pt. 5)
authorBrian Paul <brianp@vmware.com>
Sat, 5 Apr 2014 15:53:01 +0000 (09:53 -0600)
committerBrian Paul <brianp@vmware.com>
Mon, 7 Apr 2014 15:21:26 +0000 (09:21 -0600)
sed commands:
s/srgba8/A8B8G8R8_SRGB/g
s/sargb8/B8G8R8A8_SRGB/g
s/sabgr8/R8G8B8A8_SRGB/g
s/sxbgr8/R8G8B8X8_SRGB/g
s/sla8/L8A8_SRGB/g
s/sl8/L_SRGB8/g
s/srgb8/BGR_SRGB8/g

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/swrast/s_texfetch.c
src/mesa/swrast/s_texfetch_tmp.h

index cecdd5e3d015bbd1bc8f1a892a03315dff75b1ad..54ef46414483a69f559474276a564f13ca7c6e4a 100644 (file)
@@ -597,15 +597,15 @@ texfetch_funcs[] =
    /* Packed sRGB formats */
    {
       MESA_FORMAT_A8B8G8R8_SRGB,
-      fetch_texel_1d_srgba8,
-      fetch_texel_2d_srgba8,
-      fetch_texel_3d_srgba8
+      fetch_texel_1d_A8B8G8R8_SRGB,
+      fetch_texel_2d_A8B8G8R8_SRGB,
+      fetch_texel_3d_A8B8G8R8_SRGB
    },
    {
       MESA_FORMAT_B8G8R8A8_SRGB,
-      fetch_texel_1d_sargb8,
-      fetch_texel_2d_sargb8,
-      fetch_texel_3d_sargb8
+      fetch_texel_1d_B8G8R8A8_SRGB,
+      fetch_texel_2d_B8G8R8A8_SRGB,
+      fetch_texel_3d_B8G8R8A8_SRGB
    },
    {
       MESA_FORMAT_B8G8R8X8_SRGB,
@@ -615,35 +615,35 @@ texfetch_funcs[] =
    },
    {
       MESA_FORMAT_R8G8B8A8_SRGB,
-      fetch_texel_1d_sabgr8,
-      fetch_texel_2d_sabgr8,
-      fetch_texel_3d_sabgr8
+      fetch_texel_1d_R8G8B8A8_SRGB,
+      fetch_texel_2d_R8G8B8A8_SRGB,
+      fetch_texel_3d_R8G8B8A8_SRGB
    },
    {
       MESA_FORMAT_R8G8B8X8_SRGB,
-      fetch_texel_1d_sxbgr8,
-      fetch_texel_2d_sxbgr8,
-      fetch_texel_3d_sxbgr8
+      fetch_texel_1d_R8G8B8X8_SRGB,
+      fetch_texel_2d_R8G8B8X8_SRGB,
+      fetch_texel_3d_R8G8B8X8_SRGB
    },
    {
       MESA_FORMAT_L8A8_SRGB,
-      fetch_texel_1d_sla8,
-      fetch_texel_2d_sla8,
-      fetch_texel_3d_sla8
+      fetch_texel_1d_L8A8_SRGB,
+      fetch_texel_2d_L8A8_SRGB,
+      fetch_texel_3d_L8A8_SRGB
    },
 
    /* Array sRGB formats */
    {
       MESA_FORMAT_L_SRGB8,
-      fetch_texel_1d_sl8,
-      fetch_texel_2d_sl8,
-      fetch_texel_3d_sl8
+      fetch_texel_1d_L_SRGB8,
+      fetch_texel_2d_L_SRGB8,
+      fetch_texel_3d_L_SRGB8
    },
    {
       MESA_FORMAT_BGR_SRGB8,
-      fetch_texel_1d_srgb8,
-      fetch_texel_2d_srgb8,
-      fetch_texel_3d_srgb8
+      fetch_texel_1d_BGR_SRGB8,
+      fetch_texel_2d_BGR_SRGB8,
+      fetch_texel_3d_BGR_SRGB8
    },
 
    /* Packed float formats */
index ea0d56a2c8a809c30a65a0c7c9b00ced981655fc..651b5cb8aa0aca7a436d427ddb0434eb01e11cac 100644 (file)
@@ -975,9 +975,9 @@ static void FETCH(I_UNORM16)( const struct swrast_texture_image *texImage,
 
 
 
-/* Fetch texel from 1D, 2D or 3D srgb8 texture, return 4 GLfloats */
+/* Fetch texel from 1D, 2D or 3D BGR_SRGB8 texture, return 4 GLfloats */
 /* Note: component order is same as for MESA_FORMAT_BGR_UNORM8 */
-static void FETCH(srgb8)(const struct swrast_texture_image *texImage,
+static void FETCH(BGR_SRGB8)(const struct swrast_texture_image *texImage,
                          GLint i, GLint j, GLint k, GLfloat *texel )
 {
    const GLubyte *src = TEXEL_ADDR(GLubyte, texImage, i, j, k, 3);
@@ -989,8 +989,8 @@ static void FETCH(srgb8)(const struct swrast_texture_image *texImage,
 
 
 
-/* Fetch texel from 1D, 2D or 3D srgba8 texture, return 4 GLfloats */
-static void FETCH(srgba8)(const struct swrast_texture_image *texImage,
+/* Fetch texel from 1D, 2D or 3D A8B8G8R8_SRGB texture, return 4 GLfloats */
+static void FETCH(A8B8G8R8_SRGB)(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);
@@ -1002,8 +1002,8 @@ static void FETCH(srgba8)(const struct swrast_texture_image *texImage,
 
 
 
-/* Fetch texel from 1D, 2D or 3D sargb8 texture, return 4 GLfloats */
-static void FETCH(sargb8)(const struct swrast_texture_image *texImage,
+/* Fetch texel from 1D, 2D or 3D B8G8R8A8_SRGB texture, return 4 GLfloats */
+static void FETCH(B8G8R8A8_SRGB)(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);
@@ -1015,8 +1015,8 @@ static void FETCH(sargb8)(const struct swrast_texture_image *texImage,
 
 
 
-/* Fetch texel from 1D, 2D or 3D sabgr8 texture, return 4 GLfloats */
-static void FETCH(sabgr8)(const struct swrast_texture_image *texImage,
+/* Fetch texel from 1D, 2D or 3D R8G8B8A8_SRGB texture, return 4 GLfloats */
+static void FETCH(R8G8B8A8_SRGB)(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);
@@ -1027,8 +1027,8 @@ static void FETCH(sabgr8)(const struct swrast_texture_image *texImage,
 }
 
 
-/* Fetch texel from 1D, 2D or 3D sabgr8 texture, return 4 GLfloats */
-static void FETCH(sxbgr8)(const struct swrast_texture_image *texImage,
+/* Fetch texel from 1D, 2D or 3D R8G8B8A8_SRGB texture, return 4 GLfloats */
+static void FETCH(R8G8B8X8_SRGB)(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);
@@ -1039,8 +1039,8 @@ static void FETCH(sxbgr8)(const struct swrast_texture_image *texImage,
 }
 
 
-/* Fetch texel from 1D, 2D or 3D sl8 texture, return 4 GLfloats */
-static void FETCH(sl8)(const struct swrast_texture_image *texImage,
+/* Fetch texel from 1D, 2D or 3D L_SRGB8 texture, return 4 GLfloats */
+static void FETCH(L_SRGB8)(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);
@@ -1052,8 +1052,8 @@ static void FETCH(sl8)(const struct swrast_texture_image *texImage,
 
 
 
-/* Fetch texel from 1D, 2D or 3D sla8 texture, return 4 GLfloats */
-static void FETCH(sla8)(const struct swrast_texture_image *texImage,
+/* Fetch texel from 1D, 2D or 3D L8A8_SRGB texture, return 4 GLfloats */
+static void FETCH(L8A8_SRGB)(const struct swrast_texture_image *texImage,
                        GLint i, GLint j, GLint k, GLfloat *texel )
 {
    const GLubyte *src = TEXEL_ADDR(GLubyte, texImage, i, j, k, 2);