intel: add a missing WA in the meta path
authorChia-I Wu <olv@lunarg.com>
Tue, 28 Oct 2014 03:19:14 +0000 (11:19 +0800)
committerChia-I Wu <olv@lunarg.com>
Tue, 28 Oct 2014 06:52:21 +0000 (14:52 +0800)
A scoreboard stall needs to be emitted prior to any change to "Maximum Number
of Threads" of 3DSTATE_PS.  If the normal draw path and the meta path
programmed the same value for the field, we probably could skip this WA.  But
let's play safe.

icd/intel/cmd_pipeline.c

index f8f23eae93b5e9c6533656f1b520eafb8168789b..0057488427dc311cb81913a0b8ebebf4ec6c99d8 100644 (file)
@@ -2868,6 +2868,7 @@ void cmd_draw_meta(struct intel_cmd *cmd, const struct intel_cmd_meta *meta)
     cmd->bind.meta = meta;
 
     cmd_wa_gen6_pre_depth_stall_write(cmd);
+    cmd_wa_gen6_pre_command_scoreboard_stall(cmd);
 
     gen6_meta_dynamic_states(cmd);
     gen6_meta_surface_states(cmd);