<div dir="ltr"><div><div>I dropped this patch and replaced with another one.<br><br></div>Thanks<br></div>Francesco<br></div><div class="gmail_extra"><br><div class="gmail_quote">2016-08-28 22:38 GMT+02:00 Chris Forbes <span dir="ltr"><<a href="mailto:chrisf@ijw.co.nz" target="_blank">chrisf@ijw.co.nz</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">This patch isn't right. These enum values are the same as the desktop version, so your new cases will never actually be used.</div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Mon, Aug 29, 2016 at 2:24 AM, Francesco Ansanelli <span dir="ltr"><<a href="mailto:francians@gmail.com" target="_blank">francians@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">Signed-off-by: Francesco Ansanelli <<a href="mailto:francians@gmail.com" target="_blank">francians@gmail.com</a>><br>
---<br>
src/mesa/main/texparam.c | 48 ++++++++++++++++++++++++++++++<wbr>++++++++++++++++<br>
1 file changed, 48 insertions(+)<br>
<br>
diff --git a/src/mesa/main/texparam.c b/src/mesa/main/texparam.c<br>
index bdd3fcb..4dd97b1 100644<br>
--- a/src/mesa/main/texparam.c<br>
+++ b/src/mesa/main/texparam.c<br>
@@ -1960,6 +1960,30 @@ get_tex_parameterfv(struct gl_context *ctx,<br>
*params = (GLfloat) obj->NumLayers;<br>
break;<br>
<br>
+ case GL_TEXTURE_VIEW_MIN_LEVEL_OES:<br>
+ if (!ctx->Extensions.OES_texture_<wbr>view)<br>
+ goto invalid_pname;<br>
+ *params = (GLfloat) obj->MinLevel;<br>
+ break;<br>
+<br>
+ case GL_TEXTURE_VIEW_NUM_LEVELS_OES<wbr>:<br>
+ if (!ctx->Extensions.OES_texture_<wbr>view)<br>
+ goto invalid_pname;<br>
+ *params = (GLfloat) obj->NumLevels;<br>
+ break;<br>
+<br>
+ case GL_TEXTURE_VIEW_MIN_LAYER_OES:<br>
+ if (!ctx->Extensions.OES_texture_<wbr>view)<br>
+ goto invalid_pname;<br>
+ *params = (GLfloat) obj->MinLayer;<br>
+ break;<br>
+<br>
+ case GL_TEXTURE_VIEW_NUM_LAYERS_OES<wbr>:<br>
+ if (!ctx->Extensions.OES_texture_<wbr>view)<br>
+ goto invalid_pname;<br>
+ *params = (GLfloat) obj->NumLayers;<br>
+ break;<br>
+<br>
case GL_REQUIRED_TEXTURE_IMAGE_UNIT<wbr>S_OES:<br>
if (!_mesa_is_gles(ctx) || !ctx->Extensions.OES_EGL_image<wbr>_external)<br>
goto invalid_pname;<br>
@@ -2192,6 +2216,30 @@ get_tex_parameteriv(struct gl_context *ctx,<br>
*params = (GLint) obj->NumLayers;<br>
break;<br>
<br>
+ case GL_TEXTURE_VIEW_MIN_LEVEL_OES:<br>
+ if (!ctx->Extensions.OES_texture_<wbr>view)<br>
+ goto invalid_pname;<br>
+ *params = (GLint) obj->MinLevel;<br>
+ break;<br>
+<br>
+ case GL_TEXTURE_VIEW_NUM_LEVELS_OES<wbr>:<br>
+ if (!ctx->Extensions.OES_texture_<wbr>view)<br>
+ goto invalid_pname;<br>
+ *params = (GLint) obj->NumLevels;<br>
+ break;<br>
+<br>
+ case GL_TEXTURE_VIEW_MIN_LAYER_OES:<br>
+ if (!ctx->Extensions.OES_texture_<wbr>view)<br>
+ goto invalid_pname;<br>
+ *params = (GLint) obj->MinLayer;<br>
+ break;<br>
+<br>
+ case GL_TEXTURE_VIEW_NUM_LAYERS_OES<wbr>:<br>
+ if (!ctx->Extensions.OES_texture_<wbr>view)<br>
+ goto invalid_pname;<br>
+ *params = (GLint) obj->NumLayers;<br>
+ break;<br>
+<br>
case GL_REQUIRED_TEXTURE_IMAGE_UNIT<wbr>S_OES:<br>
if (!_mesa_is_gles(ctx) || !ctx->Extensions.OES_EGL_image<wbr>_external)<br>
goto invalid_pname;<br>
</div></div><span class="HOEnZb"><font color="#888888"><span><font color="#888888">--<br>
1.7.9.5<br>
<br>
______________________________<wbr>_________________<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="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/mesa-dev</a><br>
</font></span></font></span></blockquote></div><br></div>
</blockquote></div><br></div>