st/mesa: expose EXT_render_snorm on GLES
authorMarek Olšák <marek.olsak@amd.com>
Thu, 29 Nov 2018 20:34:05 +0000 (15:34 -0500)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 4 Dec 2018 20:33:29 +0000 (15:33 -0500)
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
docs/features.txt
docs/relnotes/19.0.0.html
src/mesa/state_tracker/st_extensions.c

index 8999e42519c33c0e5089f54bd57dd69d9777f523..5fc408da8ff0eeb872e4a51f4d5597c1fe059bdf 100644 (file)
@@ -319,7 +319,7 @@ Khronos, ARB, and OES extensions that are not part of any OpenGL or OpenGL ES ve
   GL_EXT_memory_object                                  DONE (radeonsi)
   GL_EXT_memory_object_fd                               DONE (radeonsi)
   GL_EXT_memory_object_win32                            not started
-  GL_EXT_render_snorm                                   DONE (i965)
+  GL_EXT_render_snorm                                   DONE (i965, radeonsi)
   GL_EXT_semaphore                                      DONE (radeonsi)
   GL_EXT_semaphore_fd                                   DONE (radeonsi)
   GL_EXT_semaphore_win32                                not started
index f4522b654c6fad4741cc8b201c0932be0e59d452..04e06cdd7588d5b3d3b7eb1ebcb83dd0a9ac891a 100644 (file)
@@ -43,6 +43,7 @@ TBD.
 <li>GL_EXT_shader_implicit_conversions on all drivers (ES extension).</li>
 <li>GL_EXT_texture_compression_bptc on all GL 4.0 drivers (ES extension).</li>
 <li>GL_EXT_texture_compression_rgtc on all GL 3.0 drivers (ES extension).</li>
+<li>GL_EXT_render_snorm on gallium drivers (ES extension).</li>
 <li>GL_EXT_texture_view on drivers supporting texture views (ES extension).</li>
 <li>GL_OES_texture_view on drivers supporting texture views (ES extension).</li>
 </ul>
index 428975dd4cb0dfd0a729d9d64e0889d95ea51cf8..002866d4cdb68ddc2aa462b615dfaa92a3eb4a74 100644 (file)
@@ -799,6 +799,14 @@ void st_init_extensions(struct pipe_screen *screen,
       { { o(ARB_texture_rg) },
         { PIPE_FORMAT_R8_UNORM,
           PIPE_FORMAT_R8G8_UNORM } },
+
+      { { o(EXT_render_snorm) },
+        { PIPE_FORMAT_R8_SNORM,
+          PIPE_FORMAT_R8G8_SNORM,
+          PIPE_FORMAT_R8G8B8A8_SNORM,
+          PIPE_FORMAT_R16_SNORM,
+          PIPE_FORMAT_R16G16_SNORM,
+          PIPE_FORMAT_R16G16B16A16_SNORM } },
    };
 
    /* Required: depth stencil and sampler support */