<div dir="ltr">Looks fine<br>Reviewed-by: Jason Ekstrand <<a href="mailto:jason.ekstrand@intel.com">jason.ekstrand@intel.com</a>><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Aug 6, 2014 at 9:27 AM, Neil Roberts <span dir="ltr"><<a href="mailto:neil@linux.intel.com" target="_blank">neil@linux.intel.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">If the name of a compressed texture format has ‘FLOAT’ in it it will now set<br>
the data type of the format to GL_FLOAT. This will be needed for the BPTC<br>
half-float formats.<br>
---<br>
 src/mesa/main/format_info.py | 4 +++-<br>
 1 file changed, 3 insertions(+), 1 deletion(-)<br>
<br>
diff --git a/src/mesa/main/format_info.py b/src/mesa/main/format_info.py<br>
index 448bd00..a0eecd3 100644<br>
--- a/src/mesa/main/format_info.py<br>
+++ b/src/mesa/main/format_info.py<br>
@@ -62,7 +62,9 @@ def get_gl_base_format(fmat):<br>
<br>
 def get_gl_data_type(fmat):<br>
    if fmat.is_compressed():<br>
-      if 'SIGNED' in <a href="http://fmat.name" target="_blank">fmat.name</a> or 'SNORM' in <a href="http://fmat.name" target="_blank">fmat.name</a>:<br>
+      if 'FLOAT' in <a href="http://fmat.name" target="_blank">fmat.name</a>:<br>
+         return 'GL_FLOAT'<br>
+      elif 'SIGNED' in <a href="http://fmat.name" target="_blank">fmat.name</a> or 'SNORM' in <a href="http://fmat.name" target="_blank">fmat.name</a>:<br>
          return 'GL_SIGNED_NORMALIZED'<br>
       else:<br>
          return 'GL_UNSIGNED_NORMALIZED'<br>
<span class="HOEnZb"><font color="#888888">--<br>
1.9.3<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>