Skip to contentSkip to conversation

Remove nv_dripriv.h, nv_local.h

PATCH New Marcin Kościelnicki 1 participant 1 message Jan 20, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Remove nv_dripriv.h, nv_local.h

---
 src/Makefile.am     |    2 -
 src/nouveau_local.h |   26 ++++++++++++++++
 src/nv_dripriv.h    |   21 -------------
 src/nv_include.h    |    1 -
 src/nv_local.h      |   83 ---------------------------------------------------
 src/nv_shadow.c     |    1 -
 6 files changed, 26 insertions(+), 108 deletions(-)
 delete mode 100644 src/nv_dripriv.h
 delete mode 100644 src/nv_local.h
src/Makefile.am +0 -2
index f448038..b5f7c86 100644
@@ -38,8 +38,6 @@ nouveau_drv_la_SOURCES = \
 			 nv_dma.h \
 			 nv_driver.c \
 			 nv_include.h \
-			 nv_dripriv.h \
-			 nv_local.h \
 			 nv_proto.h \
 			 nv_shadow.c \
 			 nv_type.h \
src/nouveau_local.h +26 -0
index d44e2dc..a950db4 100644
@@ -43,4 +43,30 @@
 
 #define NOUVEAU_ALIGN(x,bytes) (((x) + ((bytes) - 1)) & ~((bytes) - 1))
 
+static inline int log2i(int i)
+{
+	int r = 0;
+
+	if (i & 0xffff0000) {
+		i >>= 16;
+		r += 16;
+	}
+	if (i & 0x0000ff00) {
+		i >>= 8;
+		r += 8;
+	}
+	if (i & 0x000000f0) {
+		i >>= 4;
+		r += 4;
+	}
+	if (i & 0x0000000c) {
+		i >>= 2;
+		r += 2;
+	}
+	if (i & 0x00000002) {
+		r += 1;
+	}
+	return r;
+}
+
 #endif
src/nv_dripriv.h deleted +0 -21
deleted file mode 100644
index 85b818c..0000000
@@ -1,21 +0,0 @@
-#ifndef NV_DRIPRIV_H_
-#define NV_DRIPRIV_H_
-
-#include "GL/glxint.h"
-#include "xf86drm.h"
-
-extern void GlxSetVisualConfigs(int nconfigs, __GLXvisualConfig *configs,
-				void **configprivs);
-
-typedef struct {
-    /* Nothing here yet */
-    int dummy;
-} NVConfigPrivRec, *NVConfigPrivPtr;
-
-typedef struct {
-    /* Nothing here yet */
-    int dummy;
-} NVDRIContextRec, *NVDRIContextPtr;
-
-#endif
-
src/nv_include.h +0 -1
index f17cf8b..ac9c9c9 100644
@@ -68,7 +68,6 @@
 
 #define NV_DMA_DEBUG 0
 
-#include "nv_local.h"
 #include "nv_type.h"
 #include "nv_proto.h"
 #include "nv_dma.h"
src/nv_local.h deleted +0 -83

83 lines not on this page · raw message

src/nv_shadow.c +0 -1
index e15051c..58a569f 100644
@@ -20,7 +20,6 @@
  * SOFTWARE.
  */
 
-#include "nv_local.h"
 #include "nv_include.h"
 #include "nv_type.h"
 #include "shadowfb.h"
Signature · 1 line
1.6.4.1