radeon: remove radeonCopyTexImage2D()
authorBrian Paul <brianp@vmware.com>
Wed, 20 Jul 2011 02:03:05 +0000 (20:03 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 20 Jul 2011 02:03:05 +0000 (20:03 -0600)
src/mesa/drivers/dri/r200/r200_tex.c
src/mesa/drivers/dri/r300/r300_tex.c
src/mesa/drivers/dri/r600/evergreen_tex.c
src/mesa/drivers/dri/r600/r600_tex.c
src/mesa/drivers/dri/radeon/radeon_tex.c
src/mesa/drivers/dri/radeon/radeon_tex_copy.c
src/mesa/drivers/dri/radeon/radeon_texture.h

index d42e8f1204188ddc65473e223ea4b45bdb358c65..91e77f9f7dae10a177e14383770ae72131dd7a7c 100644 (file)
@@ -527,7 +527,6 @@ void r200InitTextureFuncs( radeonContextPtr radeon, struct dd_function_table *fu
    functions->CompressedTexSubImage2D  = radeonCompressedTexSubImage2D;
 
    if (radeon->radeonScreen->kernel_mm) {
-      functions->CopyTexImage2D = radeonCopyTexImage2D;
       functions->CopyTexSubImage2D = radeonCopyTexSubImage2D;
    }
 
index 590d9afe14aa8512bfeebceb853de2fe2adcdda6..93d8fe185efbcdfb9104a1f3f0b9badec8cde1d9 100644 (file)
@@ -379,7 +379,6 @@ void r300InitTextureFuncs(radeonContextPtr radeon, struct dd_function_table *fun
        functions->CompressedTexSubImage2D = radeonCompressedTexSubImage2D;
 
        if (radeon->radeonScreen->kernel_mm) {
-               functions->CopyTexImage2D = radeonCopyTexImage2D;
                functions->CopyTexSubImage2D = radeonCopyTexSubImage2D;
        }
 
index 33a5f27768376d887d01ce39bdd36e8ff2afe8ea..9784a8484f2ca41d48c9e3f0281eb68814777073 100644 (file)
@@ -1688,7 +1688,6 @@ void evergreenInitTextureFuncs(radeonContextPtr radeon, struct dd_function_table
        functions->CompressedTexSubImage2D = radeonCompressedTexSubImage2D;
 
        if (radeon->radeonScreen->kernel_mm) {
-               functions->CopyTexImage2D = radeonCopyTexImage2D;
                functions->CopyTexSubImage2D = radeonCopyTexSubImage2D;
        }
 
index eb7ed30c7a369fa974c3e49152e81de5d582b3eb..3efa1d197fa461022823151869f53fc3b0d8863a 100644 (file)
@@ -470,7 +470,6 @@ void r600InitTextureFuncs(radeonContextPtr radeon, struct dd_function_table *fun
        functions->CompressedTexSubImage2D = radeonCompressedTexSubImage2D;
 
        if (radeon->radeonScreen->kernel_mm) {
-               functions->CopyTexImage2D = radeonCopyTexImage2D;
                functions->CopyTexSubImage2D = radeonCopyTexSubImage2D;
        }
 
index 25a8ddf7b6a5e3ae2849c2639f3fb3b9da93ea69..a0b5506ae76e66ff7af717f502f3ea49f205f232 100644 (file)
@@ -455,7 +455,6 @@ void radeonInitTextureFuncs( radeonContextPtr radeon, struct dd_function_table *
    functions->CompressedTexSubImage2D  = radeonCompressedTexSubImage2D;
 
    if (radeon->radeonScreen->kernel_mm) {
-      functions->CopyTexImage2D = radeonCopyTexImage2D;
       functions->CopyTexSubImage2D = radeonCopyTexSubImage2D;
    }
 
index f14dfa25d404f04feec8ce6e8cdde84ac77132a2..94ff3c4a727ed3f6fcf17164d6dc73de39912f13 100644 (file)
@@ -140,61 +140,6 @@ do_copy_texsubimage(struct gl_context *ctx,
                              dstx, dsty, width, height, flip_y);
 }
 
-void
-radeonCopyTexImage2D(struct gl_context *ctx, GLenum target, GLint level,
-                     GLenum internalFormat,
-                     GLint x, GLint y, GLsizei width, GLsizei height,
-                     GLint border)
-{
-    struct gl_texture_unit *texUnit = _mesa_get_current_tex_unit(ctx);
-    struct gl_texture_object *texObj =
-        _mesa_select_tex_object(ctx, texUnit, target);
-    struct gl_texture_image *texImage =
-        _mesa_select_tex_image(ctx, texObj, target, level);
-    int srcx, srcy, dstx, dsty;
-
-    radeonContextPtr radeon = RADEON_CONTEXT(ctx);
-    radeon_prepare_render(radeon);
-
-    if (border)
-        goto fail;
-
-    /* Setup or redefine the texture object, mipmap tree and texture
-     * image.  Don't populate yet.
-     */
-    ctx->Driver.TexImage2D(ctx, target, level, internalFormat,
-                           width, height, border,
-                           GL_RGBA, GL_UNSIGNED_BYTE, NULL,
-                           &ctx->DefaultPacking, texObj, texImage);
-
-    srcx = x;
-    srcy = y;
-    dstx = 0;
-    dsty = 0;
-    if (!_mesa_clip_copytexsubimage(ctx,
-                                    &dstx, &dsty,
-                                    &srcx, &srcy,
-                                    &width, &height)) {
-        return;
-    }
-
-    if (!do_copy_texsubimage(ctx, target, level,
-                             radeon_tex_obj(texObj), (radeon_texture_image *)texImage,
-                             0, 0, x, y, width, height)) {
-        goto fail;
-    }
-
-    return;
-
-fail:
-    radeon_print(RADEON_FALLBACKS, RADEON_NORMAL,
-                 "Falling back to sw for glCopyTexImage2D (internalFormat %s, border %d)\n",
-                 _mesa_lookup_enum_by_nr(internalFormat), border);
-
-    _mesa_meta_CopyTexImage2D(ctx, target, level, internalFormat, x, y,
-                              width, height, border);
-}
-
 void
 radeonCopyTexSubImage2D(struct gl_context *ctx, GLenum target, GLint level,
                         GLint xoffset, GLint yoffset,
index 538a07fbba8bfcf7665327370d0d7c4fe2963dcf..6fc06d967dd1ad8b2f9dbe1218b4b78396f19599 100644 (file)
@@ -126,11 +126,6 @@ void radeonGetCompressedTexImage(struct gl_context *ctx, GLenum target, GLint le
                                 struct gl_texture_object *texObj,
                                 struct gl_texture_image *texImage);
 
-void radeonCopyTexImage2D(struct gl_context *ctx, GLenum target, GLint level,
-                       GLenum internalFormat,
-                       GLint x, GLint y, GLsizei width, GLsizei height,
-                       GLint border);
-
 void radeonCopyTexSubImage2D(struct gl_context *ctx, GLenum target, GLint level,
                        GLint xoffset, GLint yoffset,
                        GLint x, GLint y,