st/mesa: expose KHR_texture_compression_astc_sliced_3d
authorMarek Olšák <marek.olsak@amd.com>
Mon, 6 Aug 2018 02:16:48 +0000 (22:16 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Fri, 24 Aug 2018 04:36:18 +0000 (00:36 -0400)
This is ASTC 2D LDR allowing texture arrays and 3D, compressing each
slice as a separate 2D image. Tested by piglit. Trivial.

docs/features.txt
docs/relnotes/18.3.0.html
src/mesa/state_tracker/st_extensions.c

index be10cb7da9201b2fa9822e11b360c268bfa1bdbe..9ccf803d4706d02754fa45759ada7d6fe43ca60e 100644 (file)
@@ -326,7 +326,7 @@ Khronos, ARB, and OES extensions that are not part of any OpenGL or OpenGL ES ve
   GL_EXT_texture_norm16                                 DONE (i965, r600, radeonsi, nvc0)
   GL_KHR_blend_equation_advanced_coherent               DONE (i965/gen9+)
   GL_KHR_texture_compression_astc_hdr                   DONE (i965/bxt)
-  GL_KHR_texture_compression_astc_sliced_3d             DONE (i965/gen9+)
+  GL_KHR_texture_compression_astc_sliced_3d             DONE (i965/gen9+, radeonsi)
   GL_OES_depth_texture_cube_map                         DONE (all drivers that support GLSL 1.30+)
   GL_OES_EGL_image                                      DONE (all drivers)
   GL_OES_EGL_image_external                             DONE (all drivers)
index 6aeb8051dc12b01135309387b338e0ae68bc3beb..594b0624a5bfdf8c19f9a8542ed655ed1b7c95d0 100644 (file)
@@ -58,6 +58,7 @@ Note: some of the new features are only available with certain drivers.
 <li>GL_EXT_disjoint_timer_query on radeonsi and most other Gallium drivers (ES extension)</li>
 <li>GL_EXT_vertex_attrib_64bit on i965, nvc0, radeonsi.</li>
 <li>GL_EXT_window_rectangles on radeonsi.</li>
+<li>GL_KHR_texture_compression_astc_sliced_3d on radeonsi.</li>
 </ul>
 
 <h2>Bug fixes</h2>
index 18997b1d1d180c577280a544c7aa1308b7598ec2..2a1b2931d5a45ad2daef7422cdb241a9580b8f77 100644 (file)
@@ -810,7 +810,8 @@ void st_init_extensions(struct pipe_screen *screen,
           PIPE_FORMAT_BPTC_RGB_FLOAT,
           PIPE_FORMAT_BPTC_RGB_UFLOAT } },
 
-      { { o(KHR_texture_compression_astc_ldr) },
+      { { o(KHR_texture_compression_astc_ldr),
+          o(KHR_texture_compression_astc_sliced_3d) },
         { PIPE_FORMAT_ASTC_4x4,
           PIPE_FORMAT_ASTC_5x4,
           PIPE_FORMAT_ASTC_5x5,
@@ -841,7 +842,8 @@ void st_init_extensions(struct pipe_screen *screen,
           PIPE_FORMAT_ASTC_12x12_SRGB } },
 
       /* ASTC software fallback support. */
-      { { o(KHR_texture_compression_astc_ldr) },
+      { { o(KHR_texture_compression_astc_ldr),
+          o(KHR_texture_compression_astc_sliced_3d) },
         { PIPE_FORMAT_R8G8B8A8_UNORM,
           PIPE_FORMAT_R8G8B8A8_SRGB } },