mesa: fix color material tracking
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

f6c8ca06 changed this code to only set color materials mask when
the VERT_BIT_COLOR0 bit is set instead of when color material
is enabled. But this meant we always skipped over the
STATE_CURRENT_ATTRIB values.

Fixes: f6c8ca06f6 ("mesa: fix material inputs in ffvertex_prog.c")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7122
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34833>
This commit is contained in:
Timothy Arceri 2025-05-06 15:59:49 +10:00 committed by Marge Bot
parent 92f553bcff
commit 600892802d

View file

@ -552,7 +552,7 @@ static void set_material_flags( struct tnl_program *p )
p->color_materials = 0;
p->materials = 0;
if (p->state->varying_vp_inputs & VERT_BIT_COLOR0) {
if (p->state->light_color_material_mask) {
p->materials =
p->color_materials = p->state->light_color_material_mask;
}