Mesa (main): crocus/gen4-5: fix ff gs emit on VS vue map change.

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Jul 21 05:10:07 UTC 2021


Module: Mesa
Branch: main
Commit: 8c6196e7e88a51a87f62d28e9f34197ff57cf5b8
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=8c6196e7e88a51a87f62d28e9f34197ff57cf5b8

Author: Dave Airlie <airlied at redhat.com>
Date:   Wed Jul 21 14:55:41 2021 +1000

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: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11993>

---

 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;
    }
 



More information about the mesa-commit mailing list