mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-26 03:30:22 +01:00
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 <alyssa@rosenzweig.io> Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Emma Anholt <emma@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21978>
This commit is contained in:
parent
bf3027c391
commit
145295e517
1 changed files with 1 additions and 8 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue