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 <davyaxel0@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28232>
(cherry picked from commit b4a14c7ebf)
This commit is contained in:
Axel Davy 2023-04-29 15:53:22 +02:00 committed by Eric Engestrom
parent 64b0629062
commit 63873590d8
2 changed files with 2 additions and 2 deletions

View File

@ -234,7 +234,7 @@
"description": "frontend/nine: Fix missing light flag check",
"nominated": true,
"nomination_type": 0,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

View File

@ -1953,7 +1953,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) {