i965,anv: Set the CS stall bit on the ISP disable PIPE_CONTROL
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 9 May 2018 22:06:13 +0000 (15:06 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 10 May 2018 01:03:28 +0000 (18:03 -0700)
From the bspec docs for "Indirect State Pointers Disable":

    "At the completion of the post-sync operation associated with this
    pipe control packet, the indirect state pointers in the hardware are
    considered invalid"

So the ISP disable is a post-sync type of operation which means that it
should be combined with a CS stall.  Without this, the simulator throws
an error.

Fixes: 766d801ca "anv: emit pixel scoreboard stall before ISP disable"
Fixes: f536097f6 "i965: require pixel scoreboard stall prior to ISP disable"
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/vulkan/genX_cmd_buffer.c
src/mesa/drivers/dri/i965/brw_pipe_control.c

index 526e18af1085b1d7c2670358bf4fc120f6088db1..afccad8ef803f8deff090e9a6d54cfe329214465 100644 (file)
@@ -1434,6 +1434,7 @@ emit_isp_disable(struct anv_cmd_buffer *cmd_buffer)
    }
    anv_batch_emit(&cmd_buffer->batch, GENX(PIPE_CONTROL), pc) {
          pc.IndirectStatePointersDisable = true;
+         pc.CommandStreamerStallEnable = true;
    }
 }
 
index 879bfb660ed81a6b2c59ca828336a968aeb0671c..e31d625ddbaa094871c2524731be28995d1d4074 100644 (file)
@@ -362,7 +362,8 @@ gen10_emit_isp_disable(struct brw_context *brw)
                          PIPE_CONTROL_CS_STALL,
                          NULL, 0, 0);
    brw_emit_pipe_control(brw,
-                         PIPE_CONTROL_ISP_DIS,
+                         PIPE_CONTROL_ISP_DIS |
+                         PIPE_CONTROL_CS_STALL,
                          NULL, 0, 0);
 
    brw->vs.base.push_constants_dirty = true;