<div dir="ltr">Please ignore this patch - I accidentally had my conditionals backwards for half/float float extension checking.<div><br></div><div>The V3 patch is the main one.</div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Dec 11, 2018 at 7:02 PM Nick Kreeger <<a href="mailto:nick.kreeger@gmail.com">nick.kreeger@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">This change enables GLES2 to render float/half-float textures to a<br>
framebuffer when the appropriate OES extensions are available.<br>
<br>
This commit regressed OES GLES2 float texture rendering:<br>
<a href="https://gitlab.freedesktop.org/mesa/mesa/commit/e333035c47a6a4cc88f0f9ca2bced500538bebae" rel="noreferrer" target="_blank">https://gitlab.freedesktop.org/mesa/mesa/commit/e333035c47a6a4cc88f0f9ca2bced500538bebae</a><br>
---<br>
src/mesa/main/fbobject.c | 20 +++++++++++---------<br>
1 file changed, 11 insertions(+), 9 deletions(-)<br>
<br>
diff --git a/src/mesa/main/fbobject.c b/src/mesa/main/fbobject.c<br>
index 23e4939619..8b83297a12 100644<br>
--- a/src/mesa/main/fbobject.c<br>
+++ b/src/mesa/main/fbobject.c<br>
@@ -869,15 +869,17 @@ test_attachment_completeness(const struct gl_context *ctx, GLenum format,<br>
return;<br>
}<br>
<br>
- /* OES_texture_float allows creation and use of floating point<br>
- * textures with GL_FLOAT, GL_HALF_FLOAT but it does not allow<br>
- * these textures to be used as a render target, this is done via<br>
- * GL_EXT_color_buffer(_half)_float with set of new sized types.<br>
- */<br>
- if (_mesa_is_gles(ctx) && (texObj->_IsFloat || texObj->_IsHalfFloat)) {<br>
- att_incomplete("bad internal format");<br>
- att->Complete = GL_FALSE;<br>
- return;<br>
+ if (_mesa_is_gles(ctx)) {<br>
+ /**<br>
+ * GL ES 2 will allow GL_FLOAT and GL_HALF_FLOAT to render as a<br>
+ * target when the appropriate OES_* extensions are available.<br>
+ */<br>
+ if ((texObj->_IsFloat && !_mesa_has_OES_texture_half_float(ctx)) ||<br>
+ (texObj->_IsHalfFloat && !_mesa_has_OES_texture_float(ctx))) {<br>
+ att_incomplete("bad internal format");<br>
+ att->Complete = GL_FALSE;<br>
+ return;<br>
+ }<br>
}<br>
}<br>
else if (format == GL_DEPTH) {<br>
-- <br>
2.17.1<br>
<br>
</blockquote></div>