i965: Convert PIPELINE_SELECT to OUT_BATCH style.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 30 Jun 2011 07:05:49 +0000 (00:05 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 7 Jul 2011 20:31:41 +0000 (13:31 -0700)
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_misc_state.c

index a2ee7a592e21092c0749dc7b3dd1828dc3956e1b..fcbd97b44c80465381a7f16c41096b5ad8554245 100644 (file)
@@ -609,16 +609,10 @@ static void upload_invarient_state( struct brw_context *brw )
    if (intel->gen == 6)
       intel_emit_post_sync_nonzero_flush(intel);
 
-   {
-      /* 0x61040000  Pipeline Select */
-      /*     PipelineSelect            : 0 */
-      struct brw_pipeline_select ps;
-
-      memset(&ps, 0, sizeof(ps));
-      ps.header.opcode = brw->CMD_PIPELINE_SELECT;
-      ps.header.pipeline_select = 0;
-      BRW_BATCH_STRUCT(brw, &ps);
-   }
+   /* Select the 3D pipeline (as opposed to media) */
+   BEGIN_BATCH(1);
+   OUT_BATCH(brw->CMD_PIPELINE_SELECT << 16 | 0);
+   ADVANCE_BATCH();
 
    if (intel->gen < 6) {
       /* Disable depth offset clamping. */