r300: make r300 work with latest changes
authorDave Airlie <airlied@dhcp-1-203.bne.redhat.com>
Thu, 12 Feb 2009 04:36:12 +0000 (14:36 +1000)
committerDave Airlie <airlied@dhcp-1-203.bne.redhat.com>
Thu, 12 Feb 2009 04:36:12 +0000 (14:36 +1000)
src/mesa/drivers/dri/r300/Makefile
src/mesa/drivers/dri/r300/r300_context.c
src/mesa/drivers/dri/r300/r300_swtcl.c
src/mesa/drivers/dri/r300/radeon_context.h

index b3c58cf6f65a1d0a2fb10b1113130339f9030af6..77846a4d676ab05838e724d161e6fd9833691238 100644 (file)
@@ -33,6 +33,7 @@ RADEON_COMMON_SOURCES = \
 
 DRIVER_SOURCES = \
                 radeon_screen.c \
+                r300_context.c \
                 r300_ioctl.c \
                 r300_cmdbuf.c \
                 r300_state.c \
index 449252a9309d534c228a437e1f2f5e8e2a1cf3e6..5226effdd1e2cf3674fcdb744ec71512a2f014e0 100644 (file)
@@ -55,8 +55,9 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 
 #include "drivers/common/driverfuncs.h"
 
-#include "radeon_span.h"
 #include "r300_context.h"
+#include "radeon_context.h"
+#include "radeon_span.h"
 #include "r300_cmdbuf.h"
 #include "r300_state.h"
 #include "r300_ioctl.h"
index 34e752178afb024f63bd70edac4beb086a5cc878..d73af8650f9c8e721edd5be09393e6d6a099814b 100644 (file)
@@ -56,6 +56,7 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
 #include "r300_state.h"
 #include "r300_ioctl.h"
 #include "r300_emit.h"
+#include "r300_tex.h"
 
 void r300EmitVertexAOS(r300ContextPtr rmesa, GLuint vertex_size, struct radeon_bo *bo, GLuint offset);
 void r300EmitVbufPrim(r300ContextPtr rmesa, GLuint primitive, GLuint vertex_nr);
@@ -628,7 +629,7 @@ void r300_swtcl_flush(GLcontext *ctx, uint32_t current_offset)
   rcommonEnsureCmdBufSpace(&rmesa->radeon,
                           rmesa->radeon.hw.max_state_size + (12*sizeof(int)),
                           __FUNCTION__);
-  r300EmitState(rmesa);
+  radeonEmitState(&rmesa->radeon);
   r300EmitVertexAOS(rmesa,
                    rmesa->radeon.swtcl.vertex_size,
                    rmesa->radeon.dma.current,
index 005edf8448a3f4f9f0368f90d50a30c17cde5814..250570f6b89e8f1445b365b1dbdc842652a6695b 100644 (file)
@@ -50,7 +50,6 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 #include "dri_util.h"
 
 #include "radeon_screen.h"
-#include "common_misc.h"
 
 #if R200_MERGED
 extern void radeonFallback(GLcontext * ctx, GLuint bit, GLboolean mode);