Bug 74329

Summary: Please expose OES_texture_float and OES_texture_half_float on the ES3 context
Product: Mesa Reporter: org.freedesktop
Component: Drivers/Gallium/r600Assignee: Default DRI bug account <dri-devel>
Status: RESOLVED FIXED QA Contact:
Severity: minor    
Priority: medium CC: virtuousfox
Version: 10.0   
Hardware: All   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description org.freedesktop 2014-02-01 16:54:17 UTC
Hello.

Original discussion on mailing list:

http://lists.freedesktop.org/archives/mesa-users/2014-February/000761.html

Essentially, for the purposes of testing code in an ES3 context as it would be run on an ES2 context (that is, taking the paths the code would take based on the extensions present on ES2), it would be nice if the ES3 context exposed OES_texture_float and OES_texture_half_float.

The current ES3 context on this hardware exposes GL_EXT_texture_rg and GL_EXT_color_buffer_float, and can therefore definitely support OES_texture_float and OES_texture_half_float. All that would (apparently) be required would be for floating point textures to be specified in an ES2 compatible manner (with format and internalformat set to GL_RED|GL_RG, and type set to GL_FLOAT).
Comment 1 org.freedesktop 2014-02-01 16:57:17 UTC
Thread actually started here:

http://lists.freedesktop.org/archives/mesa-users/2014-January/000745.html
Comment 2 Marek Olšák 2014-02-01 20:14:17 UTC
(In reply to comment #1)
> Thread actually started here:
> 
> http://lists.freedesktop.org/archives/mesa-users/2014-January/000745.html

You will need to patch the Mesa source code. It should be trivial though, because the functionality is already implemented.
Comment 3 Matt Turner 2015-02-19 07:09:51 UTC
The Mesa core support was added in this commit:

commit a63c8a524b01e802cf2505099f930c0cb97df0b2
Author: Kalyan Kondapally <kondapallykalyancontribute@gmail.com>
Date:   Wed Jan 7 20:30:25 2015 -0800

    Mesa: Add support for GL_OES_texture_*float* extensions.
    
    This patch series adds support for following GLES2 Texture Float extensions:
    1)GL_OES_texture_float,
    2)GL_OES_texture_half_float,
    3)GL_OES_texture_float_linear,
    4)GL_OES_texture_half_float_linear.

Gallium drivers just need to enable the extensions now.
Comment 4 Sergey Kondakov 2015-06-29 06:29:51 UTC
Is anything holding off r600 from using it ? I was just trying to see http://madebyevan.com/webgl-water/ WebGL demo and was surprised that recent Mesa 10.6 doesn't have OES_texture_float while having GL_ARB_texture_float.
Comment 5 Marek Olšák 2015-08-14 13:40:43 UTC
Added in 44dc1d307d7eacef0d6f1618ba0fb7f62e08f8. Closing.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.