intel: suppress PIPE_CONTROL with 0 flags
authorMike Stroyan <mike@LunarG.com>
Sat, 31 Jan 2015 00:21:08 +0000 (17:21 -0700)
committerMike Stroyan <mike@LunarG.com>
Thu, 12 Feb 2015 17:42:15 +0000 (10:42 -0700)
icd/intel/cmd_pipeline.c

index 26db520..ac6e68c 100644 (file)
@@ -1210,6 +1210,9 @@ void cmd_batch_state_base_address(struct intel_cmd *cmd)
 
 void cmd_batch_flush(struct intel_cmd *cmd, uint32_t pipe_control_dw0)
 {
+    if (pipe_control_dw0 == 0)
+        return;
+
     if (!cmd->bind.draw_count)
         return;