Mesa (master): mesa: Add driver entry point for ARB_texture_view

Brian Paul brianp at kemper.freedesktop.org
Fri Dec 13 19:44:52 UTC 2013


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

Author: Courtney Goeltzenleuchter <courtney at LunarG.com>
Date:   Mon Nov  4 14:09:22 2013 -0700

mesa: Add driver entry point for ARB_texture_view

Signed-off-by: Courtney Goeltzenleuchter <courtney at LunarG.com>

Reviewed-by: Brian Paul <brianp at vmware.com>

---

 src/mesa/drivers/common/driverfuncs.c |    3 +++
 src/mesa/main/dd.h                    |    5 +++++
 2 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/src/mesa/drivers/common/driverfuncs.c b/src/mesa/drivers/common/driverfuncs.c
index 5faa98a..f185688 100644
--- a/src/mesa/drivers/common/driverfuncs.c
+++ b/src/mesa/drivers/common/driverfuncs.c
@@ -211,6 +211,9 @@ _mesa_init_driver_functions(struct dd_function_table *driver)
    /* GL_ARB_texture_storage */
    driver->AllocTextureStorage = _mesa_alloc_texture_storage;
 
+   /* GL_ARB_texture_view */
+   driver->TextureView = NULL;
+
    /* GL_ARB_texture_multisample */
    driver->GetSamplePosition = NULL;
 }
diff --git a/src/mesa/main/dd.h b/src/mesa/main/dd.h
index b5b874f..3e263f4 100644
--- a/src/mesa/main/dd.h
+++ b/src/mesa/main/dd.h
@@ -375,6 +375,11 @@ struct dd_function_table {
                                     GLsizei levels, GLsizei width,
                                     GLsizei height, GLsizei depth);
 
+   /** Called as part of glTextureView to add views to origTexObj */
+   GLboolean (*TextureView)(struct gl_context *ctx,
+                            struct gl_texture_object *texObj,
+                            struct gl_texture_object *origTexObj);
+
    /**
     * Map a renderbuffer into user space.
     * \param mode  bitmask of GL_MAP_READ_BIT, GL_MAP_WRITE_BIT and




More information about the mesa-commit mailing list