Mesa (master): i965: Drop _NEW_TRANSFORM from 3DSTATE_VS atom on Gen7.

Kenneth Graunke kwg at kemper.freedesktop.org
Wed Oct 5 04:36:38 UTC 2016


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

Author: Kenneth Graunke <kenneth at whitecape.org>
Date:   Mon Oct  3 21:41:10 2016 -0700

i965: Drop _NEW_TRANSFORM from 3DSTATE_VS atom on Gen7.

The atom that uploads push constants listens to _NEW_TRANSFORM for
legacy clip plane handling.  On Sandybridge, the gen6_vs_state atom
emits 3DSTATE_CONSTANT_VS as well as 3DSTATE_VS, so it needs to listen
to the same set of conditions.

However, it looks like Gen7 doesn't need this.  The push constant atom
emits 3DSTATE_CONSTANT_VS directly, and the gen7_vs_state atom that
emits 3DSTATE_VS doesn't have a dependency on ctx->Transform.

Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>

---

 src/mesa/drivers/dri/i965/gen7_vs_state.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mesa/drivers/dri/i965/gen7_vs_state.c b/src/mesa/drivers/dri/i965/gen7_vs_state.c
index d3bd9fd..0b51eb0 100644
--- a/src/mesa/drivers/dri/i965/gen7_vs_state.c
+++ b/src/mesa/drivers/dri/i965/gen7_vs_state.c
@@ -75,7 +75,7 @@ upload_vs_state(struct brw_context *brw)
 
 const struct brw_tracked_state gen7_vs_state = {
    .dirty = {
-      .mesa  = _NEW_TRANSFORM,
+      .mesa  = 0,
       .brw   = BRW_NEW_BATCH |
                BRW_NEW_BLORP |
                BRW_NEW_CONTEXT |




More information about the mesa-commit mailing list