<div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote">On Thu, Nov 21, 2013 at 5:56 PM, Brian Paul <span dir="ltr"><<a href="mailto:brianp@vmware.com" target="_blank">brianp@vmware.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On 11/19/2013 04:16 PM, Courtney Goeltzenleuchter wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Signed-off-by: Courtney Goeltzenleuchter <courtney@LunarG.com><br>
---<br>
  src/mesa/drivers/common/<u></u>driverfuncs.c | 3 +++<br>
  src/mesa/main/dd.h                    | 5 +++++<br>
  2 files changed, 8 insertions(+)<br>
<br>
diff --git a/src/mesa/drivers/common/<u></u>driverfuncs.c b/src/mesa/drivers/common/<u></u>driverfuncs.c<br>
index 5faa98a..f185688 100644<br>
--- a/src/mesa/drivers/common/<u></u>driverfuncs.c<br>
+++ b/src/mesa/drivers/common/<u></u>driverfuncs.c<br>
@@ -211,6 +211,9 @@ _mesa_init_driver_functions(<u></u>struct dd_function_table *driver)<br>
     /* GL_ARB_texture_storage */<br>
     driver->AllocTextureStorage = _mesa_alloc_texture_storage;<br>
<br>
+   /* GL_ARB_texture_view */<br>
+   driver->TextureView = NULL;<br>
+<br>
     /* GL_ARB_texture_multisample */<br>
     driver->GetSamplePosition = NULL;<br>
  }<br>
diff --git a/src/mesa/main/dd.h b/src/mesa/main/dd.h<br>
index b5b874f..3e263f4 100644<br>
--- a/src/mesa/main/dd.h<br>
+++ b/src/mesa/main/dd.h<br>
@@ -375,6 +375,11 @@ struct dd_function_table {<br>
                                      GLsizei levels, GLsizei width,<br>
                                      GLsizei height, GLsizei depth);<br>
<br>
+   /** Called as part of glTextureView to add views to origTexObj */<br>
+   GLboolean (*TextureView)(struct gl_context *ctx,<br>
+                            struct gl_texture_object *texObj,<br>
+                            struct gl_texture_object *origTexObj);<br>
</blockquote>
<br></div></div>
Either the comment on this function, or the place where it's called from should probably be beefed up with more info about what's expected of the driver.  Is it possible to return FALSE for any reason beyond out-of-memory?<div class="im">
<br></div></blockquote><div><br></div><div>When the driver side is done I'll have more details. Ideally this should never fail as we are simply creating a different way to look at a texture that already exists.</div><div>
 </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
<br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
+<br>
     /**<br>
      * Map a renderbuffer into user space.<br>
      * \param mode  bitmask of GL_MAP_READ_BIT, GL_MAP_WRITE_BIT and<br>
<br>
</blockquote>
<br></div>
______________________________<u></u>_________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org" target="_blank">mesa-dev@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/mesa-dev" target="_blank">http://lists.freedesktop.org/<u></u>mailman/listinfo/mesa-dev</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Courtney Goeltzenleuchter<br><div>LunarG</div><div><img src="http://media.lunarg.com/wp-content/themes/LunarG/images/logo.png" width="96" height="65"><br>
</div></div>
</div></div>