From d7c0355725dc9e15e0f1cb92e41a03061e3043df Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Tue, 27 May 2025 12:03:52 -0400 Subject: [PATCH] asahi: advertise ASTC HDR formats Signed-off-by: Alyssa Rosenzweig Reviewed-by: Erik Faye-Lund Part-of: --- docs/features.txt | 2 +- docs/relnotes/new_features.txt | 2 +- src/asahi/layout/formats.c | 15 +++++++++++++++ 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/docs/features.txt b/docs/features.txt index 1461733db98..7e2aa9512f1 100644 --- a/docs/features.txt +++ b/docs/features.txt @@ -340,7 +340,7 @@ Khronos, ARB, and OES extensions that are not part of any OpenGL or OpenGL ES ve GL_EXT_texture_view DONE (all drivers that support GL_OES_texture_view) GL_KHR_blend_equation_advanced_coherent DONE (freedreno/a6xx, panfrost, zink, asahi, iris/gen9+, v3d) GL_KHR_shader_subgroup DONE (radeonsi, zink) - GL_KHR_texture_compression_astc_hdr DONE (panfrost) + GL_KHR_texture_compression_astc_hdr DONE (panfrost, asahi) GL_KHR_texture_compression_astc_sliced_3d DONE (freedreno/a4xx+, r600, radeonsi, panfrost, softpipe, v3d, zink, lima, asahi, iris/gen9+) GL_OES_depth_texture_cube_map DONE (all drivers that support GLSL 1.30+) GL_OES_EGL_image DONE (all drivers) diff --git a/docs/relnotes/new_features.txt b/docs/relnotes/new_features.txt index 648365d8ea4..23175292b93 100644 --- a/docs/relnotes/new_features.txt +++ b/docs/relnotes/new_features.txt @@ -26,4 +26,4 @@ VK_EXT_primitive_topology_list_restart on panvk VK_EXT_image_2d_view_of_3d on panvk VK_EXT_texel_buffer_alignment on panvk cl_khr_kernel_clock on freedreno, iris, llvmpipe, nvc0, panfrost, radeonsi and zink with llvm-19 or newer -GL_KHR_texture_compression_astc_hdr on panfrost +GL_KHR_texture_compression_astc_hdr on panfrost and asahi diff --git a/src/asahi/layout/formats.c b/src/asahi/layout/formats.c index e272b79ab56..678cfa15a7e 100644 --- a/src/asahi/layout/formats.c +++ b/src/asahi/layout/formats.c @@ -243,6 +243,21 @@ const struct ail_pixel_format_entry ail_pixel_format[PIPE_FORMAT_COUNT] = { AIL_FMT(ASTC_12x10_SRGB, ASTC_12X10, UNORM, _), AIL_FMT(ASTC_12x12_SRGB, ASTC_12X12, UNORM, _), + AIL_FMT(ASTC_4x4_FLOAT, ASTC_4X4, FLOAT, _), + AIL_FMT(ASTC_5x4_FLOAT, ASTC_5X4, FLOAT, _), + AIL_FMT(ASTC_5x5_FLOAT, ASTC_5X5, FLOAT, _), + AIL_FMT(ASTC_6x5_FLOAT, ASTC_6X5, FLOAT, _), + AIL_FMT(ASTC_6x6_FLOAT, ASTC_6X6, FLOAT, _), + AIL_FMT(ASTC_8x5_FLOAT, ASTC_8X5, FLOAT, _), + AIL_FMT(ASTC_8x6_FLOAT, ASTC_8X6, FLOAT, _), + AIL_FMT(ASTC_8x8_FLOAT, ASTC_8X8, FLOAT, _), + AIL_FMT(ASTC_10x5_FLOAT, ASTC_10X5, FLOAT, _), + AIL_FMT(ASTC_10x6_FLOAT, ASTC_10X6, FLOAT, _), + AIL_FMT(ASTC_10x8_FLOAT, ASTC_10X8, FLOAT, _), + AIL_FMT(ASTC_10x10_FLOAT, ASTC_10X10, FLOAT, _), + AIL_FMT(ASTC_12x10_FLOAT, ASTC_12X10, FLOAT, _), + AIL_FMT(ASTC_12x12_FLOAT, ASTC_12X12, FLOAT, _), + AIL_FMT(DXT1_RGB, BC1, UNORM, _), AIL_FMT(DXT1_RGBA, BC1, UNORM, _), AIL_FMT(DXT1_SRGB, BC1, UNORM, _),