From 8c6196e7e88a51a87f62d28e9f34197ff57cf5b8 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Wed, 21 Jul 2021 14:55:41 +1000 Subject: [PATCH] crocus/gen4-5: fix ff gs emit on VS vue map change. This should fix some texturing problems seen on gen4/5, I reproduced it with a minecraft.trace file Fixes: f3630548f1da ("crocus: initial gallium driver for Intel gfx 4-7") Part-of: --- src/gallium/drivers/crocus/crocus_program.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/drivers/crocus/crocus_program.c b/src/gallium/drivers/crocus/crocus_program.c index f14c73ff736..d96edb7152d 100644 --- a/src/gallium/drivers/crocus/crocus_program.c +++ b/src/gallium/drivers/crocus/crocus_program.c @@ -1988,6 +1988,8 @@ update_last_vue_map(struct crocus_context *ice, if (changed_slots || (old_map && old_map->separate != vue_map->separate)) { ice->state.dirty |= CROCUS_DIRTY_GEN7_SBE; + if (devinfo->ver < 6) + ice->state.dirty |= CROCUS_DIRTY_GEN4_FF_GS_PROG; ice->state.stage_dirty |= CROCUS_STAGE_DIRTY_UNCOMPILED_FS; }