<div dir="ltr">On 17 May 2013 19:11, Jordan Justen <span dir="ltr"><<a href="mailto:jordan.l.justen@intel.com" target="_blank">jordan.l.justen@intel.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Signed-off-by: Jordan Justen <<a href="mailto:jordan.l.justen@intel.com">jordan.l.justen@intel.com</a>><br></blockquote>
<div><br></div><div>Patches 1-4 are<br><br></div><div>Reviewed-by: Paul Berry <<a href="mailto:stereotype441@gmail.com">stereotype441@gmail.com</a>><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
---<br>
src/mesa/main/texformat.c | 13 +++++++++++++<br>
src/mesa/main/texformat.h | 2 ++<br>
2 files changed, 15 insertions(+)<br>
<br>
diff --git a/src/mesa/main/texformat.c b/src/mesa/main/texformat.c<br>
index ed40b7e..a7df868 100644<br>
--- a/src/mesa/main/texformat.c<br>
+++ b/src/mesa/main/texformat.c<br>
@@ -929,3 +929,16 @@ _mesa_choose_tex_format(struct gl_context *ctx, GLenum target,<br>
return MESA_FORMAT_NONE;<br>
}<br>
<br>
+GLboolean<br>
+_mesa_tex_target_is_array(GLenum target)<br>
+{<br>
+ switch (target) {<br>
+ case GL_TEXTURE_1D_ARRAY_EXT:<br>
+ case GL_TEXTURE_2D_ARRAY_EXT:<br>
+ case GL_TEXTURE_2D_MULTISAMPLE_ARRAY:<br>
+ case GL_TEXTURE_CUBE_MAP_ARRAY:<br>
+ return GL_TRUE;<br>
+ default:<br>
+ return GL_FALSE;<br>
+ }<br>
+}<br>
diff --git a/src/mesa/main/texformat.h b/src/mesa/main/texformat.h<br>
index efe2699..d6ff541 100644<br>
--- a/src/mesa/main/texformat.h<br>
+++ b/src/mesa/main/texformat.h<br>
@@ -36,5 +36,7 @@ extern gl_format<br>
_mesa_choose_tex_format(struct gl_context *ctx, GLenum target,<br>
GLint internalFormat, GLenum format, GLenum type);<br>
<br>
+extern GLboolean<br>
+_mesa_tex_target_is_array(GLenum target);<br>
<br>
#endif<br>
<span class="HOEnZb"><font color="#888888">--<br>
1.7.10.4<br>
<br>
_______________________________________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/mesa-dev" target="_blank">http://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
</font></span></blockquote></div><br></div></div>