mesa/texstore: Use Driver.CompressedTexSubImage in the default CompressedTexImage
authorNanley Chery <nanley.g.chery@intel.com>
Tue, 12 Apr 2016 21:27:42 +0000 (14:27 -0700)
committerNanley Chery <nanley.g.chery@intel.com>
Fri, 15 Apr 2016 22:06:27 +0000 (15:06 -0700)
Enable drivers to use their own implementation of this method instead of
the mesa default. Since the drivers that currently overwrite
dd_function_table::CompressedTexSubImage also overwrite
::CompressedTexImage, there should be no behavioral change.

Signed-off-by: Nanley Chery <nanley.g.chery@intel.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/mesa/main/texstore.c

index c33b109590079f1be7b20f4d2f80e3f5424d60be..48f60867088a8b9569652b78079b7fcc34b89f8a 100644 (file)
@@ -1243,11 +1243,11 @@ _mesa_store_compressed_teximage(struct gl_context *ctx, GLuint dims,
       return;
    }
 
-   _mesa_store_compressed_texsubimage(ctx, dims, texImage,
-                                      0, 0, 0,
-                                      texImage->Width, texImage->Height, texImage->Depth,
-                                      texImage->TexFormat,
-                                      imageSize, data);
+   ctx->Driver.CompressedTexSubImage(ctx, dims, texImage,
+                                     0, 0, 0,
+                                     texImage->Width, texImage->Height, texImage->Depth,
+                                     texImage->TexFormat,
+                                     imageSize, data);
 }