From 145295e51789340a1e7873e129e048e0ea48a475 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Fri, 24 Mar 2023 18:22:28 -0400 Subject: [PATCH] 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 Reviewed-by: Erik Faye-Lund Reviewed-by: Kenneth Graunke Reviewed-by: Emma Anholt Part-of: --- 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 c237b3f..bbbbb3a 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 */ -- 2.7.4