intel: stub out CompressedTexSubImage2D instead of segfaulting.
authorEric Anholt <eric@anholt.net>
Mon, 15 Dec 2008 23:10:18 +0000 (15:10 -0800)
committerEric Anholt <eric@anholt.net>
Mon, 15 Dec 2008 23:10:18 +0000 (15:10 -0800)
src/mesa/drivers/dri/intel/intel_tex.c
src/mesa/drivers/dri/intel/intel_tex.h
src/mesa/drivers/dri/intel/intel_tex_subimage.c

index 82f8b870095fda4b8785bddd86c868b6b76e823a..e64d8a1556d91f9df7df822bd10f7c2d6cf343dd 100644 (file)
@@ -231,6 +231,7 @@ intelInitTextureFuncs(struct dd_function_table *functions)
 
    /* compressed texture functions */
    functions->CompressedTexImage2D = intelCompressedTexImage2D;
+   functions->CompressedTexSubImage2D = intelCompressedTexSubImage2D;
    functions->GetCompressedTexImage = intelGetCompressedTexImage;
 
    functions->NewTextureObject = intelNewTextureObject;
index 6219c1c953b11ec64d49b03b1d6eb04624feb9b9..742ccc043aa7990de97f9a32c8ce996c0477a067 100644 (file)
@@ -130,6 +130,16 @@ void intelCompressedTexImage2D( GLcontext *ctx, GLenum target, GLint level,
                                struct gl_texture_object *texObj,
                                struct gl_texture_image *texImage );
 
+void intelCompressedTexSubImage2D(GLcontext * ctx,
+                                 GLenum target,
+                                 GLint level,
+                                 GLint xoffset, GLint yoffset,
+                                 GLsizei width, GLsizei height,
+                                 GLenum format, GLsizei imageSize,
+                                 const GLvoid * pixels,
+                                 struct gl_texture_object *texObj,
+                                 struct gl_texture_image *texImage);
+
 void intelGetCompressedTexImage(GLcontext *ctx, GLenum target, GLint level,
                                GLvoid *pixels,
                                struct gl_texture_object *texObj,
index b7523618868b0d18bb4806808a5c22d5d55cabfc..f86de56897644af499f3f994dff350194cf12233 100644 (file)
@@ -184,3 +184,18 @@ intelTexSubImage1D(GLcontext * ctx,
                     format, type, pixels, packing, texObj, texImage);
 
 }
+
+void
+intelCompressedTexSubImage2D(GLcontext * ctx,
+                            GLenum target,
+                            GLint level,
+                            GLint xoffset, GLint yoffset,
+                            GLsizei width, GLsizei height,
+                            GLenum format, GLsizei imageSize,
+                            const GLvoid * pixels,
+                            struct gl_texture_object *texObj,
+                            struct gl_texture_image *texImage)
+{
+   fprintf(stderr, "stubbed CompressedTexSubImage2D: %dx%d@%dx%d\n",
+          width, height, xoffset, yoffset);
+}