[Mesa-dev] [PATCH 1/6] st/dri: change dri_extensions to dri_helpers

Gurchetan Singh gurchetansingh at chromium.org
Fri Jul 28 03:46:54 UTC 2017


From: Gurchetan Singh <gurchetansingh at chromium.org>

These files provide helper structs and functions for dri2.c and drisw.c,
and name change better conveys that.
---
 src/gallium/state_trackers/dri/Makefile.sources                    | 4 ++--
 src/gallium/state_trackers/dri/dri2.c                              | 2 +-
 src/gallium/state_trackers/dri/{dri_extensions.c => dri_helpers.c} | 0
 src/gallium/state_trackers/dri/{dri_extensions.h => dri_helpers.h} | 4 ++--
 src/gallium/state_trackers/dri/drisw.c                             | 2 +-
 5 files changed, 6 insertions(+), 6 deletions(-)
 rename src/gallium/state_trackers/dri/{dri_extensions.c => dri_helpers.c} (100%)
 rename src/gallium/state_trackers/dri/{dri_extensions.h => dri_helpers.h} (96%)

diff --git a/src/gallium/state_trackers/dri/Makefile.sources b/src/gallium/state_trackers/dri/Makefile.sources
index 46da886c00..36d5d47bb3 100644
--- a/src/gallium/state_trackers/dri/Makefile.sources
+++ b/src/gallium/state_trackers/dri/Makefile.sources
@@ -3,8 +3,8 @@ common_SOURCES := \
 	dri_context.h \
 	dri_drawable.c \
 	dri_drawable.h \
-	dri_extensions.c \
-	dri_extensions.h \
+	dri_helpers.c \
+	dri_helpers.h \
 	dri_query_renderer.c \
 	dri_query_renderer.h \
 	dri_screen.c \
diff --git a/src/gallium/state_trackers/dri/dri2.c b/src/gallium/state_trackers/dri/dri2.c
index e20b2c0753..7fddda9c64 100644
--- a/src/gallium/state_trackers/dri/dri2.c
+++ b/src/gallium/state_trackers/dri/dri2.c
@@ -48,7 +48,7 @@
 #include "dri_screen.h"
 #include "dri_context.h"
 #include "dri_drawable.h"
-#include "dri_extensions.h"
+#include "dri_helpers.h"
 #include "dri_query_renderer.h"
 #include "dri2_buffer.h"
 
diff --git a/src/gallium/state_trackers/dri/dri_extensions.c b/src/gallium/state_trackers/dri/dri_helpers.c
similarity index 100%
rename from src/gallium/state_trackers/dri/dri_extensions.c
rename to src/gallium/state_trackers/dri/dri_helpers.c
diff --git a/src/gallium/state_trackers/dri/dri_extensions.h b/src/gallium/state_trackers/dri/dri_helpers.h
similarity index 96%
rename from src/gallium/state_trackers/dri/dri_extensions.h
rename to src/gallium/state_trackers/dri/dri_helpers.h
index 89b01cd3ed..a55c47ffc7 100644
--- a/src/gallium/state_trackers/dri/dri_extensions.h
+++ b/src/gallium/state_trackers/dri/dri_helpers.h
@@ -20,8 +20,8 @@
  * OTHER DEALINGS IN THE SOFTWARE.
  */
 
-#ifndef DRI_EXTENSIONS_H
-#define DRI_EXTENSIONS_H
+#ifndef DRI_HELPERS_H
+#define DRI_HELPERS_H
 
 extern const __DRI2fenceExtension dri2FenceExtension;
 
diff --git a/src/gallium/state_trackers/dri/drisw.c b/src/gallium/state_trackers/dri/drisw.c
index 189d61c4cb..5c82c7f9f9 100644
--- a/src/gallium/state_trackers/dri/drisw.c
+++ b/src/gallium/state_trackers/dri/drisw.c
@@ -46,7 +46,7 @@
 #include "dri_screen.h"
 #include "dri_context.h"
 #include "dri_drawable.h"
-#include "dri_extensions.h"
+#include "dri_helpers.h"
 #include "dri_query_renderer.h"
 
 DEBUG_GET_ONCE_BOOL_OPTION(swrast_no_present, "SWRAST_NO_PRESENT", FALSE);
-- 
2.14.0.rc0.400.g1c36432dff-goog



More information about the mesa-dev mailing list