switch to new texture functions in state tracker
authorBrian <brian@i915.localnet.net>
Mon, 6 Aug 2007 21:49:44 +0000 (15:49 -0600)
committerBrian <brian@i915.localnet.net>
Mon, 6 Aug 2007 21:49:44 +0000 (15:49 -0600)
src/mesa/drivers/dri/i915pipe/Makefile
src/mesa/drivers/dri/i915pipe/intel_context.c
src/mesa/drivers/dri/i915pipe/intel_fbo.c
src/mesa/drivers/dri/i915pipe/intel_screen.c
src/mesa/drivers/dri/i915pipe/intel_tex_subimage.c

index f9403abd7308899f2a410d36332210d0f9a69f0f..3f3e04e978e28d70a3c8b2c7a27a1671036830c1 100644 (file)
@@ -14,12 +14,6 @@ DRIVER_SOURCES = \
        intel_buffer_objects.c \
        intel_batchbuffer.c \
        intel_tex_layout.c \
-       intel_tex_image.c \
-       intel_tex_subimage.c \
-       intel_tex_copy.c \
-       intel_tex_validate.c \
-       intel_tex_format.c \
-       intel_tex.c \
        intel_buffers.c \
        intel_blit.c \
        intel_context.c \
@@ -30,6 +24,15 @@ DRIVER_SOURCES = \
        intel_depthstencil.c \
        intel_batchpool.c
 
+OLD_TEX =\
+       intel_tex_image.c \
+       intel_tex_subimage.c \
+       intel_tex_copy.c \
+       intel_tex_validate.c \
+       intel_tex_format.c \
+       intel_tex.c
+
+
 C_SOURCES = \
        $(COMMON_SOURCES) \
        $(COMMON_BM_SOURCES) \
index e267135973da07a3296587644b3aa56e64f21da8..ced4366009a645f3aa3c96e157eee8a27a43e7ff 100644 (file)
@@ -47,7 +47,7 @@
 #include "i830_dri.h"
 
 #include "intel_buffers.h"
-#include "intel_tex.h"
+/*#include "intel_tex.h"*/
 #include "intel_ioctl.h"
 #include "intel_batchbuffer.h"
 #include "intel_blit.h"
@@ -318,7 +318,9 @@ intelInitDriverFunctions(struct dd_function_table *functions)
    functions->GetString = intelGetString;
    functions->UpdateState = intelInvalidateState;
 
+   /*
    intelInitTextureFuncs(functions);
+   */
    intelInitBufferFuncs(functions);
 }
 
index 2f1aa00038df0ae9d8338ff6fcc54692dcd8aa71..a53563f52b9864637aa7fe4c46c8d531d600e3ef 100644 (file)
@@ -40,7 +40,7 @@
 #include "intel_depthstencil.h"
 #include "intel_fbo.h"
 #include "state_tracker/st_mipmap_tree.h"
-#include "intel_tex.h"
+/*#include "intel_tex.h"*/
 
 #include "pipe/p_context.h"
 
@@ -528,6 +528,7 @@ intel_render_texture(GLcontext * ctx,
                      struct gl_framebuffer *fb,
                      struct gl_renderbuffer_attachment *att)
 {
+#if 0
    struct intel_context *intel = intel_context(ctx);
    struct gl_texture_image *newImage
       = att->Texture->Image[att->CubeMapFace][att->TextureLevel];
@@ -581,6 +582,7 @@ intel_render_texture(GLcontext * ctx,
 
    /* update drawing region, etc */
    intel_draw_buffer(ctx, fb);
+#endif
 }
 
 
index 5b8d6256b5770e5f1770956f96903ee07b2c88ee..81ab435f42eafd933d2f446c10f3780fae505696 100644 (file)
@@ -38,7 +38,7 @@
 #include "intel_screen.h"
 #include "intel_batchbuffer.h"
 #include "intel_buffers.h"
-#include "intel_tex.h"
+/*#include "intel_tex.h"*/
 #include "intel_ioctl.h"
 #include "intel_fbo.h"
 
@@ -378,6 +378,31 @@ intelGetSwapInfo(__DRIdrawablePrivate * dPriv, __DRIswapInfo * sInfo)
 }
 
 
+static void
+intelSetTexOffset(__DRIcontext *pDRICtx, GLint texname,
+                 unsigned long long offset, GLint depth, GLuint pitch)
+{
+   abort();
+#if 0
+   struct intel_context *intel = (struct intel_context*)
+      ((__DRIcontextPrivate*)pDRICtx->private)->driverPrivate;
+   struct gl_texture_object *tObj = _mesa_lookup_texture(&intel->ctx, texname);
+   struct st_texture_object *stObj = st_texture_object(tObj);
+
+   if (!stObj)
+      return;
+
+   if (stObj->mt)
+      st_miptree_release(intel->pipe, &stObj->mt);
+
+   stObj->imageOverride = GL_TRUE;
+   stObj->depthOverride = depth;
+   stObj->pitchOverride = pitch;
+
+   if (offset)
+      stObj->textureOffset = offset;
+#endif
+}
 
 
 static const struct __DriverAPIRec intelAPI = {
index 5b25b2a43bfcd446ada56924e5572137d9560230..0937114c7fee859044d0032d3fd822df9b063ea5 100644 (file)
@@ -31,7 +31,9 @@
 #include "texstore.h"
 #include "enums.h"
 
+/*
 #include "intel_context.h"
+*/
 #include "intel_tex.h"
 #include "state_tracker/st_context.h"
 #include "state_tracker/st_mipmap_tree.h"