<div dir="ltr">rb<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 3, 2016 at 9:41 PM, Kenneth Graunke <span dir="ltr"><<a href="mailto:kenneth@whitecape.org" target="_blank">kenneth@whitecape.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The atom that uploads push constants listens to _NEW_TRANSFORM for<br>
legacy clip plane handling.  On Sandybridge, the gen6_vs_state atom<br>
emits 3DSTATE_CONSTANT_VS as well as 3DSTATE_VS, so it needs to listen<br>
to the same set of conditions.<br>
<br>
However, it looks like Gen7 doesn't need this.  The push constant atom<br>
emits 3DSTATE_CONSTANT_VS directly, and the gen7_vs_state atom that<br>
emits 3DSTATE_VS doesn't have a dependency on ctx->Transform.<br>
<br>
Signed-off-by: Kenneth Graunke <<a href="mailto:kenneth@whitecape.org">kenneth@whitecape.org</a>><br>
---<br>
 src/mesa/drivers/dri/i965/<wbr>gen7_vs_state.c | 2 +-<br>
 1 file changed, 1 insertion(+), 1 deletion(-)<br>
<br>
Whoops :( I meant to remove it from gen6_vs_state, not the push constant<br>
atom...and frankly, even that's not right.  Thanks for catching that.<br>
<br>
Here's a v2 that just changes Ivybridge.<br>
<br>
diff --git a/src/mesa/drivers/dri/i965/<wbr>gen7_vs_state.c b/src/mesa/drivers/dri/i965/<wbr>gen7_vs_state.c<br>
index 57e0419..cfd535e 100644<br>
--- a/src/mesa/drivers/dri/i965/<wbr>gen7_vs_state.c<br>
+++ b/src/mesa/drivers/dri/i965/<wbr>gen7_vs_state.c<br>
@@ -75,7 +75,7 @@ upload_vs_state(struct brw_context *brw)<br>
<br>
 const struct brw_tracked_state gen7_vs_state = {<br>
    .dirty = {<br>
-      .mesa  = _NEW_TRANSFORM,<br>
+      .mesa  = 0,<br>
       .brw   = BRW_NEW_BATCH |<br>
                BRW_NEW_BLORP |<br>
                BRW_NEW_CONTEXT |<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.10.0<br>
<br>
______________________________<wbr>_________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/mesa-dev</a><br>
</font></span></blockquote></div><br></div>