mesa: Rename "texturebarrier" source files to "barrier".
authorFrancisco Jerez <currojerez@riseup.net>
Wed, 6 Jul 2016 06:15:01 +0000 (23:15 -0700)
committerFrancisco Jerez <currojerez@riseup.net>
Wed, 24 Aug 2016 20:28:30 +0000 (13:28 -0700)
In preparation for collecting all pipeline barrier GL entry points
into a single source file.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mapi/glapi/gen/gl_genexec.py
src/mesa/Makefile.sources
src/mesa/drivers/common/driverfuncs.c
src/mesa/main/barrier.c [moved from src/mesa/main/texturebarrier.c with 90% similarity]
src/mesa/main/barrier.h [moved from src/mesa/main/texturebarrier.h with 86% similarity]

index 72d7b6f..85e7990 100644 (file)
@@ -111,7 +111,7 @@ header = """/**
 #include "main/texparam.h"
 #include "main/texstate.h"
 #include "main/texstorage.h"
-#include "main/texturebarrier.h"
+#include "main/barrier.h"
 #include "main/textureview.h"
 #include "main/transformfeedback.h"
 #include "main/mtypes.h"
index 472e767..3622760 100644 (file)
@@ -24,6 +24,8 @@ MAIN_FILES = \
        main/atifragshader.h \
        main/attrib.c \
        main/attrib.h \
+       main/barrier.c \
+       main/barrier.h \
        main/blend.c \
        main/blend.h \
        main/blit.c \
@@ -230,8 +232,6 @@ MAIN_FILES = \
        main/texstore.h \
        main/textureview.c \
        main/textureview.h \
-       main/texturebarrier.c \
-       main/texturebarrier.h \
        main/transformfeedback.c \
        main/transformfeedback.h \
        main/uniform_query.cpp \
index 2730b7b..6069138 100644 (file)
@@ -47,7 +47,7 @@
 #include "main/fbobject.h"
 #include "main/samplerobj.h"
 #include "main/syncobj.h"
-#include "main/texturebarrier.h"
+#include "main/barrier.h"
 #include "main/transformfeedback.h"
 
 #include "program/program.h"
@@ -179,7 +179,7 @@ _mesa_init_driver_functions(struct dd_function_table *driver)
    driver->BlitFramebuffer = _swrast_BlitFramebuffer;
    driver->DiscardFramebuffer = NULL;
 
-   _mesa_init_texture_barrier_functions(driver);
+   _mesa_init_barrier_functions(driver);
    _mesa_init_shader_object_functions(driver);
    _mesa_init_transform_feedback_functions(driver);
    _mesa_init_sampler_object_functions(driver);
similarity index 90%
rename from src/mesa/main/texturebarrier.c
rename to src/mesa/main/barrier.c
index d879eed..beb48fb 100644 (file)
  */
 
 /**
- * \file texturebarrier.c
- * Implementation of glTextureBarrierNV.
+ * \file barrier.c
+ * Implementation of various pipeline barrier entry points.
  *
  * \author Marek Olšák <maraeo@gmail.com>
  */
 
 #include "context.h"
-#include "texturebarrier.h"
+#include "barrier.h"
 
 
 static void
@@ -39,7 +39,7 @@ _mesa_texture_barrier(struct gl_context *ctx)
 }
 
 void
-_mesa_init_texture_barrier_functions(struct dd_function_table *driver)
+_mesa_init_barrier_functions(struct dd_function_table *driver)
 {
    driver->TextureBarrier = _mesa_texture_barrier;
 }
similarity index 86%
rename from src/mesa/main/texturebarrier.h
rename to src/mesa/main/barrier.h
index a84a85b..0652d14 100644 (file)
  */
 
 /**
- * \file texturebarrier.h
- * GL_NV_texture_barrier
+ * \file barrier.h
+ * GL_NV_texture_barrier and friends.
  *
  * \author Marek Olšák <maraeo@gmail.com>
  */
 
-#ifndef TEXTUREBARRIER_H
-#define TEXTUREBARRIER_H
+#ifndef BARRIER_H
+#define BARRIER_H
 
 #include "glheader.h"
 
 struct dd_function_table;
 
 extern void
-_mesa_init_texture_barrier_functions(struct dd_function_table *driver);
+_mesa_init_barrier_functions(struct dd_function_table *driver);
 
 extern void GLAPIENTRY
 _mesa_TextureBarrierNV(void);
 
-#endif /* TEXTUREBARRIER_H */
+#endif /* BARRIER_H */