From 6beb92a0d4bbd914bd5ff78d4f9a511ee9e84252 Mon Sep 17 00:00:00 2001 From: Ian Forbes Date: Mon, 8 Dec 2025 11:56:45 -0600 Subject: [PATCH] svga: Enable GL_ARB_texture_mirror_clamp_to_edge We've supported this via SVGA3D_TEX_ADDRESS_MIRRORONCE for years. Lets enable it as it gets us slightly closer to GL 4.4. Signed-off-by: Ian Forbes Part-of: --- docs/features.txt | 2 +- src/gallium/drivers/svga/svga_screen.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/features.txt b/docs/features.txt index 296b9daae84..760fb5798a0 100644 --- a/docs/features.txt +++ b/docs/features.txt @@ -206,7 +206,7 @@ GL 4.4, GLSL 4.40 -- all DONE: freedreno/a6xx, nvc0, r600, radeonsi, llvmpipe, v - input/output block locations DONE GL_ARB_multi_bind DONE (all drivers) GL_ARB_query_buffer_object DONE (freedreno/a6xx) - GL_ARB_texture_mirror_clamp_to_edge DONE (freedreno, nv50, softpipe, v3d, panfrost, crocus) + GL_ARB_texture_mirror_clamp_to_edge DONE (freedreno, nv50, softpipe, v3d, panfrost, crocus, svga) GL_ARB_texture_stencil8 DONE (freedreno, nv50, softpipe, v3d, panfrost, etnaviv/HALTI5) GL_ARB_vertex_type_10f_11f_11f_rev DONE (freedreno, nv50, softpipe, panfrost, crocus) GL_NV_shader_atomic_int64 DONE (radeonsi, panfrost/v9+) diff --git a/src/gallium/drivers/svga/svga_screen.c b/src/gallium/drivers/svga/svga_screen.c index 91f211d57a8..8f6f327bd84 100644 --- a/src/gallium/drivers/svga/svga_screen.c +++ b/src/gallium/drivers/svga/svga_screen.c @@ -386,6 +386,7 @@ svga_init_screen_caps(struct svga_screen *svgascreen) caps->occlusion_query = true; caps->texture_buffer_objects = sws->have_vgpu10; caps->texture_buffer_offset_alignment = sws->have_vgpu10 ? 16 : 0; + caps->texture_mirror_clamp_to_edge = sws->have_vgpu10; caps->texture_swizzle = true; caps->constant_buffer_offset_alignment = 256;