mesa ctx->API --> _mesa_is_foo(ctx)

replaces direct API checks with _mesa_is_...() checks

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8340

Signed-off-by: Volodymyr Obohzyn volodymyr.obozhyn@globallogic.com

Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>

Reviewed-by: Eric Engestrom <eric@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21556>
This commit is contained in:
volodymyr.o
2023-02-27 15:19:30 +02:00
committed by Marge Bot
parent 5e039dbf8e
commit 47e7b49c61
30 changed files with 75 additions and 71 deletions

View File

@@ -1262,7 +1262,7 @@ st_precompile_shader_variant(struct st_context *st,
memset(&key, 0, sizeof(key));
if (st->ctx->API == API_OPENGL_COMPAT &&
if (_mesa_is_desktop_gl_compat(st->ctx) &&
st->clamp_vert_color_in_shader &&
(prog->info.outputs_written & (VARYING_SLOT_COL0 |
VARYING_SLOT_COL1 |