Mesa (master): mesa/texstore: Use Driver.CompressedTexSubImage in the default CompressedTexImage

Nanley Chery nchery at kemper.freedesktop.org
Fri Apr 15 22:07:38 UTC 2016


Module: Mesa
Branch: master
Commit: 696d8ff5a1f477aa0d7a9b9a2c6d6959e0d101df
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=696d8ff5a1f477aa0d7a9b9a2c6d6959e0d101df

Author: Nanley Chery <nanley.g.chery at intel.com>
Date:   Tue Apr 12 14:27:42 2016 -0700

mesa/texstore: Use Driver.CompressedTexSubImage in the default CompressedTexImage

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 at intel.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>

---

 src/mesa/main/texstore.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/mesa/main/texstore.c b/src/mesa/main/texstore.c
index c33b109..48f6086 100644
--- a/src/mesa/main/texstore.c
+++ b/src/mesa/main/texstore.c
@@ -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);
 }
 
 




More information about the mesa-commit mailing list