From b4a14c7ebf288d876c821e0da2e877002c3180c6 Mon Sep 17 00:00:00 2001 From: Axel Davy Date: Sat, 29 Apr 2023 15:53:22 +0200 Subject: [PATCH] frontend/nine: Fix missing light flag check The constants for ff lights use the VIEW matrix, thus we must update them if the matrix is dirty. Cc: mesa-stable Signed-off-by: Axel Davy Part-of: --- src/gallium/frontends/nine/nine_ff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/frontends/nine/nine_ff.c b/src/gallium/frontends/nine/nine_ff.c index b8682b968f9..2406e82adf6 100644 --- a/src/gallium/frontends/nine/nine_ff.c +++ b/src/gallium/frontends/nine/nine_ff.c @@ -1951,7 +1951,7 @@ nine_ff_load_lights(struct NineDevice9 *device) dst[19].z = dst[25].z * mtl->Ambient.b + mtl->Emissive.b; } - if (!(context->changed.group & NINE_STATE_FF_LIGHTING)) + if (!(context->changed.group & NINE_STATE_FF_LIGHTING) && !IS_D3DTS_DIRTY(context, VIEW)) return; for (l = 0; l < context->ff.num_lights_active; ++l) {