Module: Mesa
Branch: main
Commit: 145295e51789340a1e7873e129e048e0ea48a475
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=145295e51789340a1e7873e129e048e0ea48a475

Author: Alyssa Rosenzweig <[email protected]>
Date:   Fri Mar 24 18:22:28 2023 -0400

asahi: Don't lie about seamless cube maps

Now that mesa/st is setting seamless_cube_map properly we don't need to play any
games here. Remove the hack workaround.

Signed-off-by: Alyssa Rosenzweig <[email protected]>
Reviewed-by: Erik Faye-Lund <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Reviewed-by: Emma Anholt <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21978>

---

 src/gallium/drivers/asahi/agx_state.c | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/src/gallium/drivers/asahi/agx_state.c 
b/src/gallium/drivers/asahi/agx_state.c
index c237b3f29ff..bbbbb3ab20f 100644
--- a/src/gallium/drivers/asahi/agx_state.c
+++ b/src/gallium/drivers/asahi/agx_state.c
@@ -508,14 +508,7 @@ agx_create_sampler_state(struct pipe_context *pctx,
       cfg.pixel_coordinates = state->unnormalized_coords;
       cfg.compare_func = agx_compare_funcs[state->compare_func];
       cfg.compare_enable = state->compare_mode == 
PIPE_TEX_COMPARE_R_TO_TEXTURE;
-
-      /* Only support seamless cube maps if we advertise GLES3. Works around a
-       * mesa/st bug where seamless_cube_map is set in GLES2 contrary to the
-       * spec. When we advertise GLES3, this check can be removed.
-       */
-      cfg.seamful_cube_maps =
-         !(agx_device(pctx->screen)->debug & AGX_DBG_DEQP) ||
-         !state->seamless_cube_map;
+      cfg.seamful_cube_maps = !state->seamless_cube_map;
 
       if (state->border_color_format != PIPE_FORMAT_NONE) {
          /* TODO: Optimize to use compact descriptors for black/white borders 
*/

Reply via email to