r200/r300: get up to speed on renamed files
authorDave Airlie <airlied@redhat.com>
Thu, 12 Feb 2009 12:48:18 +0000 (22:48 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 12 Feb 2009 12:48:18 +0000 (22:48 +1000)
15 files changed:
src/mesa/drivers/dri/r200/Makefile
src/mesa/drivers/dri/r200/r200_cmdbuf.c
src/mesa/drivers/dri/r200/r200_context.h
src/mesa/drivers/dri/r200/r200_ioctl.c
src/mesa/drivers/dri/r200/r200_ioctl.h
src/mesa/drivers/dri/r200/r200_lock.h [deleted file]
src/mesa/drivers/dri/r200/r200_state_init.c
src/mesa/drivers/dri/r200/r200_texstate.c
src/mesa/drivers/dri/r300/Makefile
src/mesa/drivers/dri/r300/r300_cmdbuf.h
src/mesa/drivers/dri/r300/r300_context.h
src/mesa/drivers/dri/r300/r300_ioctl.c
src/mesa/drivers/dri/r300/r300_render.c
src/mesa/drivers/dri/r300/radeon_lock.h [changed from file to symlink]
src/mesa/drivers/dri/r300/radeon_program_pair.c

index b87e9f206c760c3e1813489ea616f6b7087e3c80..4f626c0584f0adc3cb51caa161084c10d1845b75 100644 (file)
@@ -11,6 +11,17 @@ ifeq ($(USING_EGL), 1)
 EGL_SOURCES = server/radeon_egl.c
 endif
 
+RADEON_COMMON_SOURCES = \
+       radeon_texture.c \
+       radeon_common_context.c \
+       radeon_dma.c \
+       radeon_lock.c \
+       radeon_bo_legacy.c \
+       radeon_cs_legacy.c \
+       radeon_mipmap_tree.c \
+       radeon_span.c
+
+
 DRIVER_SOURCES = r200_context.c \
                 r200_ioctl.c \
                 r200_state.c \
@@ -26,13 +37,8 @@ DRIVER_SOURCES = r200_context.c \
                 r200_fragshader.c \
                 r200_vertprog.c \
                 radeon_screen.c \
-                common_lock.c \
-                common_misc.c \
-                radeon_bo_legacy.c \
-                radeon_cs_legacy.c \
-                radeon_mipmap_tree.c \
-                radeon_span.c \
-                $(EGL_SOURCES)
+                $(EGL_SOURCES) \
+                $(RADEON_COMMON_SOURCES)
 
 C_SOURCES = $(COMMON_SOURCES) $(DRIVER_SOURCES)
 
@@ -59,14 +65,19 @@ COMMON_SYMLINKS = \
        radeon_span.h \
        radeon_span.c \
        radeon_buffer.h \
-       common_context.h \
-       common_lock.c \
-       common_lock.h \
-       common_misc.h \
-       common_misc.c \
-       common_cmdbuf.h \
+       radeon_lock.c \
+       radeon_lock.h \
+       radeon_common.c \
+       radeon_common_context.c \
+       radeon_common_context.h \
+       radeon_common.h \
+       radeon_cmdbuf.h \
        radeon_mipmap_tree.c \
-       radeon_mipmap_tree.h
+       radeon_mipmap_tree.h \
+       radeon_texture.c \
+       radeon_texture.h \
+       radeon_dma.c \
+       radeon_dma.h
 
 DRI_LIB_DEPS += -ldrm_radeon
 
index aa64232a93b6a8dd1b371efeeac9707275702bed..cb1bd8be9563065bba237968d9f614afbe0fd7ae 100644 (file)
@@ -38,9 +38,8 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 #include "swrast/swrast.h"
 #include "main/simple_list.h"
 
-#include "radeon_cs.h"
+#include "radeon_common.h"
 #include "r200_context.h"
-#include "common_cmdbuf.h"
 #include "r200_state.h"
 #include "r200_ioctl.h"
 #include "r200_tcl.h"
index 96f47ea92bbfe4cf7720405957590f5e7a8f4581..fcbe725d6fc9cbf20ea0575f4e7cf5597ceb9e1d 100644 (file)
@@ -54,15 +54,14 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 #endif
 
 #include "radeon_screen.h"
-#include "common_context.h"
-#include "common_misc.h"
+#include "radeon_common.h"
+
+#include "radeon_lock.h"
 
 struct r200_context;
 typedef struct r200_context r200ContextRec;
 typedef struct r200_context *r200ContextPtr;
 
-#include "r200_lock.h"
-
 #include "main/mm.h"
 
 struct r200_vertex_program {
index 8f64c8c6d903df04809085f7e6efd3b4e2cc82b5..e19ff44bc8e6cded9ab9a16aa2f1ce54c9c3eb89 100644 (file)
@@ -41,10 +41,9 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 #include "main/context.h"
 #include "swrast/swrast.h"
 
-#include "radeon_cs.h"
+#include "radeon_common.h"
+#include "radeon_lock.h"
 #include "r200_context.h"
-
-#include "common_cmdbuf.h"
 #include "r200_state.h"
 #include "r200_ioctl.h"
 #include "r200_tcl.h"
index 6b114971c3d2596a9e9d9f9a1d0add77215c1248..777fdc38a53b88af21339fafd09a63cf787fc296 100644 (file)
@@ -37,7 +37,6 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 
 #include "main/simple_list.h"
 #include "radeon_dri.h"
-#include "r200_lock.h"
 
 #include "radeon_cs_legacy.h"
 
@@ -45,8 +44,6 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 #include "drm.h"
 #include "radeon_drm.h"
 
-#include "common_cmdbuf.h"
-
 extern void r200EmitVertexAOS( r200ContextPtr rmesa,
                               GLuint vertex_size,
                               struct radeon_bo *bo,
diff --git a/src/mesa/drivers/dri/r200/r200_lock.h b/src/mesa/drivers/dri/r200/r200_lock.h
deleted file mode 100644 (file)
index 29cad5b..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
-Copyright (C) The Weather Channel, Inc.  2002.  All Rights Reserved.
-
-The Weather Channel (TM) funded Tungsten Graphics to develop the
-initial release of the Radeon 8500 driver under the XFree86 license.
-This notice must be preserved.
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice (including the
-next paragraph) shall be included in all copies or substantial
-portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
-IN NO EVENT SHALL THE COPYRIGHT OWNER(S) AND/OR ITS SUPPLIERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-
-**************************************************************************/
-
-/*
- * Authors:
- *   Keith Whitwell <keith@tungstengraphics.com>
- */
-
-#ifndef __R200_LOCK_H__
-#define __R200_LOCK_H__
-
-#include "common_lock.h"
-
-#endif /* __R200_LOCK_H__ */
index d11baacae958894e7d44b0e28c7b20a72855703a..3cd2dc77512410fa38412ac8fb820199acdf6234 100644 (file)
@@ -43,10 +43,8 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 #include "tnl/t_pipeline.h"
 #include "swrast_setup/swrast_setup.h"
 
-#include "radeon_buffer.h"
+#include "radeon_common.h"
 #include "radeon_mipmap_tree.h"
-#include "radeon_cs.h"
-#include "common_misc.h"
 #include "r200_context.h"
 #include "r200_ioctl.h"
 #include "r200_state.h"
index 12b828846f49d2fe611efaf1bbf316b0c3d8bf24..03404b6eb194880de30e3f7f720397c5d9695b00 100644 (file)
@@ -40,7 +40,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 #include "main/texobj.h"
 #include "main/enums.h"
 
-#include "common_context.h"
+#include "radeon_common.h"
 #include "radeon_mipmap_tree.h"
 #include "r200_context.h"
 #include "r200_state.h"
@@ -1411,7 +1411,7 @@ static GLboolean r200_validate_texture(GLcontext *ctx, struct gl_texture_object
    return GL_TRUE;
 }
 
-GLboolean r200UpdateTextureUnit(GLcontext *ctx, int unit)
+static GLboolean r200UpdateTextureUnit(GLcontext *ctx, int unit)
 {
    r200ContextPtr rmesa = R200_CONTEXT(ctx);
    GLuint unitneeded = rmesa->state.texture.unit[unit].unitneeded;
index abdd1da490e0616e7ad38b9730c1c469d9847e40..e9264ce77a24ec51269c4a5bd9f5153842c61d58 100644 (file)
@@ -20,13 +20,18 @@ COMMON_SOURCES = \
        ../common/xmlconfig.c \
        ../common/dri_util.c
 
+RADEON_COMMON_SOURCES = \
+       radeon_texture.c \
+       radeon_common_context.c \
+       radeon_dma.c \
+       radeon_lock.c \
+       radeon_bo_legacy.c \
+       radeon_cs_legacy.c \
+       radeon_mipmap_tree.c \
+       radeon_span.c
+
 DRIVER_SOURCES = \
-                radeon_bo_legacy.c \
-                radeon_cs_legacy.c \
                 radeon_screen.c \
-                common_lock.c \
-                common_misc.c \
-                radeon_span.c \
                 r300_ioctl.c \
                 r300_cmdbuf.c \
                 r300_state.c \
@@ -46,7 +51,7 @@ DRIVER_SOURCES = \
                 r300_shader.c \
                 r300_emit.c \
                 r300_swtcl.c \
-                radeon_mipmap_tree.c \
+                $(RADEON_COMMON_SOURCES) \
                 $(EGL_SOURCES)
 
 C_SOURCES = $(COMMON_SOURCES) $(DRIVER_SOURCES)
@@ -75,14 +80,19 @@ COMMON_SYMLINKS = \
        radeon_cs_legacy.c \
        radeon_bo_legacy.h \
        radeon_cs_legacy.h \
-       common_context.h \
-       common_lock.c \
-       common_lock.h \
-       common_misc.c \
-       common_misc.h \
-       common_cmdbuf.h \
+       radeon_lock.c \
+       radeon_lock.h \
+       radeon_common.c \
+       radeon_common.h \
+       radeon_common_context.c \
+       radeon_common_context.h \
+       radeon_cmdbuf.h \
+       radeon_dma.c \
+       radeon_dma.h \
        radeon_mipmap_tree.c \
-       radeon_mipmap_tree.h
+       radeon_mipmap_tree.h \
+       radeon_texture.c \
+       radeon_texture.h
 
 DRI_LIB_DEPS += -ldrm_radeon
 
index d8a1076e72b9cefbeca0b991074d1b90bfb4bd3b..ab5d50f58e852aa2ca6bc00cf139a684d0fc5f5b 100644 (file)
@@ -39,10 +39,6 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 #include "r300_context.h"
 #include "radeon_cs.h"
 
-#include "common_cmdbuf.h"
-
-extern void r300EmitState(r300ContextPtr r300);
-
 extern void r300InitCmdBuf(r300ContextPtr r300);
 extern void r300DestroyCmdBuf(r300ContextPtr r300);
 
index 75393bcd14c090bbc23b19c6ce95421492b4628b..0be3657249e286608040d77811e1e60225cf9d34 100644 (file)
@@ -42,8 +42,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 #include "radeon_drm.h"
 #include "dri_util.h"
 #include "texmem.h"
-#include "common_context.h"
-#include "radeon_context.h"
+#include "radeon_common.h"
 #include "radeon_bo.h"
 
 #include "main/macros.h"
index ee334150951df51a9e0fa05504b7c27ba49858fe..90b85f0df75dd1613699545b534dfb69b86c4f5a 100644 (file)
@@ -46,7 +46,8 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 #include "main/context.h"
 #include "swrast/swrast.h"
 
-#include "radeon_buffer.h"
+#include "radeon_common.h"
+#include "radeon_lock.h"
 #include "r300_context.h"
 #include "r300_ioctl.h"
 #include "r300_cmdbuf.h"
index 393bf754ff209e9836038df8bdb13daf97b165c9..8055952a768a00c7b34ef342af65fa8f21c7143d 100644 (file)
@@ -334,7 +334,6 @@ static void r300FireAOS(r300ContextPtr rmesa, int vertex_count, int type)
 static void r300RunRenderPrimitive(r300ContextPtr rmesa, GLcontext * ctx,
                                   int start, int end, int prim)
 {
-       BATCH_LOCALS(&rmesa->radeon);
        int type, num_verts;
        TNLcontext *tnl = TNL_CONTEXT(ctx);
        struct vertex_buffer *vb = &tnl->vb;
@@ -396,7 +395,7 @@ static GLboolean r300RunRender(GLcontext * ctx,
        r300UpdateShaderStates(rmesa);
 
        r300EmitCacheFlush(rmesa);
-       r300EmitState(rmesa);
+       radeonEmitState(&rmesa->radeon);
 
        for (i = 0; i < vb->PrimitiveCount; i++) {
                GLuint prim = _tnl_translate_prim(&vb->Primitive[i]);
deleted file mode 100644 (file)
index f2d17a54d473ec444067f4b31414c264eb3d4721..0000000000000000000000000000000000000000
+++ /dev/null
@@ -1,47 +0,0 @@
-/**************************************************************************
-
-Copyright 2000, 2001 ATI Technologies Inc., Ontario, Canada, and
-                     VA Linux Systems Inc., Fremont, California.
-Copyright (C) The Weather Channel, Inc.  2002.  All Rights Reserved.
-
-The Weather Channel (TM) funded Tungsten Graphics to develop the
-initial release of the Radeon 8500 driver under the XFree86 license.
-This notice must be preserved.
-
-All Rights Reserved.
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice (including the
-next paragraph) shall be included in all copies or substantial
-portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
-IN NO EVENT SHALL THE COPYRIGHT OWNER(S) AND/OR ITS SUPPLIERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-
-**************************************************************************/
-
-/*
- * Authors:
- *   Gareth Hughes <gareth@valinux.com>
- *   Keith Whitwell <keith@tungstengraphics.com>
- *   Kevin E. Martin <martin@valinux.com>
- */
-
-#ifndef __RADEON_LOCK_H__
-#define __RADEON_LOCK_H__
-
-#include "common_lock.h"
-
-#endif                         /* __RADEON_LOCK_H__ */
new file mode 120000 (symlink)
index 0000000000000000000000000000000000000000..64bdf94ee7e21840837d5b86b1b2f3661cf72f54
--- /dev/null
@@ -0,0 +1 @@
+../radeon/radeon_lock.h
\ No newline at end of file
index 5ad50d2863ac07ef7a0daea5240d5b2e551c4f10..a6da9f56b5df7d786fd8aae2de1c5d461488dbf0 100644 (file)
@@ -35,7 +35,7 @@
 
 #include "radeon_program_pair.h"
 
-#include "radeon_context.h"
+#include "radeon_common.h"
 
 #include "shader/prog_print.h"