swrast: Rename blend_func->swrast_blend_func
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Fri, 10 May 2019 16:22:05 +0000 (16:22 +0000)
committerCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Fri, 10 May 2019 16:34:55 +0000 (09:34 -0700)
This avoids a conflict with the new (driver-agnostic) blend_func enum in
shader_enum.h, which broke the build of swrast (and i965 by extension).

My apologies :(

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Fixes: f41be53a ("compiler: Add enums for blend state")
Cc: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
src/mesa/swrast/s_context.h

index 49c30a3de3b10f9fa44d84efa2c86f6a3e799a18..dd700183c88086a72c5602dd0d942ef0816c5d9c 100644 (file)
@@ -57,10 +57,10 @@ typedef void (*texture_sample_func)(struct gl_context *ctx,
                                     GLuint n, const GLfloat texcoords[][4],
                                     const GLfloat lambda[], GLfloat rgba[][4]);
 
-typedef void (*blend_func)(struct gl_context *ctx, GLuint n,
-                           const GLubyte mask[],
-                           GLvoid *src, const GLvoid *dst,
-                           GLenum chanType);
+typedef void (*swrast_blend_func)(struct gl_context *ctx, GLuint n,
+                                  const GLubyte mask[],
+                                  GLvoid *src, const GLvoid *dst,
+                                  GLenum chanType);
 
 typedef void (*swrast_point_func)( struct gl_context *ctx, const SWvertex *);
 
@@ -310,7 +310,7 @@ typedef struct
 
    /** Internal hooks, kept up to date by the same mechanism as above.
     */
-   blend_func BlendFunc;
+   swrast_blend_func BlendFunc;
    texture_sample_func TextureSample[MAX_COMBINED_TEXTURE_IMAGE_UNITS];
 
    /** Buffer for saving the sampled texture colors.