i965g: format RELOCs similarly
authorKeith Whitwell <keithw@vmware.com>
Mon, 2 Nov 2009 08:49:02 +0000 (08:49 +0000)
committerKeith Whitwell <keithw@vmware.com>
Mon, 2 Nov 2009 08:50:16 +0000 (08:50 +0000)
src/gallium/drivers/i965/brw_cc.c
src/gallium/drivers/i965/brw_clip_state.c
src/gallium/drivers/i965/brw_misc_state.c

index cf3791e11e37c3f8b43cba91c769a301259f9898..c6267e1c6066a0fbc25e4791ad64c06b14a3566d 100644 (file)
@@ -151,8 +151,7 @@ cc_unit_create_from_key(struct brw_context *brw, struct brw_cc_unit_key *key)
 
    /* Emit CC viewport relocation */
    brw->sws->bo_emit_reloc(bo,
-                          I915_GEM_DOMAIN_INSTRUCTION,
-                          0,
+                          I915_GEM_DOMAIN_INSTRUCTION, 0,
                           0,
                           offsetof(struct brw_cc_unit_state, cc4),
                           brw->cc.vp_bo);
index 31e2e0bc17b96f5259d88ace20b5698c43dc06bc..8be53e4bfb49acd4217b404e7090c111cbaae267 100644 (file)
@@ -150,8 +150,7 @@ clip_unit_create_from_key(struct brw_context *brw,
    /* Emit clip program relocation */
    assert(brw->clip.prog_bo);
    brw->sws->bo_emit_reloc(bo,
-                          I915_GEM_DOMAIN_INSTRUCTION,
-                          0,
+                          I915_GEM_DOMAIN_INSTRUCTION, 0,
                           clip.thread0.grf_reg_count << 1,
                           offsetof(struct brw_clip_unit_state, thread0),
                           brw->clip.prog_bo);
index db8a2a5008867f8c6d79825c8194a58e16bf7b79..06b9a2d2dfa4c43b481aaab7479950675c3313f7 100644 (file)
@@ -110,13 +110,17 @@ static int upload_binding_table_pointers(struct brw_context *brw)
    BEGIN_BATCH(6, IGNORE_CLIPRECTS);
    OUT_BATCH(CMD_BINDING_TABLE_PTRS << 16 | (6 - 2));
    if (brw->vs.bind_bo != NULL)
-      OUT_RELOC(brw->vs.bind_bo, I915_GEM_DOMAIN_SAMPLER, 0, 0); /* vs */
+      OUT_RELOC(brw->vs.bind_bo, 
+               I915_GEM_DOMAIN_SAMPLER, 0,
+               0); /* vs */
    else
       OUT_BATCH(0);
    OUT_BATCH(0); /* gs */
    OUT_BATCH(0); /* clip */
    OUT_BATCH(0); /* sf */
-   OUT_RELOC(brw->wm.bind_bo, I915_GEM_DOMAIN_SAMPLER, 0, 0); /* wm/ps */
+   OUT_RELOC(brw->wm.bind_bo,
+            I915_GEM_DOMAIN_SAMPLER, 0,
+            0); /* wm/ps */
    ADVANCE_BATCH();
    return 0;
 }
@@ -142,15 +146,27 @@ static int upload_pipelined_state_pointers(struct brw_context *brw )
 {
    BEGIN_BATCH(7, IGNORE_CLIPRECTS);
    OUT_BATCH(CMD_PIPELINED_STATE_POINTERS << 16 | (7 - 2));
-   OUT_RELOC(brw->vs.state_bo, I915_GEM_DOMAIN_INSTRUCTION, 0, 0);
+   OUT_RELOC(brw->vs.state_bo, 
+            I915_GEM_DOMAIN_INSTRUCTION, 0,
+            0);
    if (brw->gs.prog_active)
-      OUT_RELOC(brw->gs.state_bo, I915_GEM_DOMAIN_INSTRUCTION, 0, 1);
+      OUT_RELOC(brw->gs.state_bo, 
+               I915_GEM_DOMAIN_INSTRUCTION, 0,
+               1);
    else
       OUT_BATCH(0);
-   OUT_RELOC(brw->clip.state_bo, I915_GEM_DOMAIN_INSTRUCTION, 0, 1);
-   OUT_RELOC(brw->sf.state_bo, I915_GEM_DOMAIN_INSTRUCTION, 0, 0);
-   OUT_RELOC(brw->wm.state_bo, I915_GEM_DOMAIN_INSTRUCTION, 0, 0);
-   OUT_RELOC(brw->cc.state_bo, I915_GEM_DOMAIN_INSTRUCTION, 0, 0);
+   OUT_RELOC(brw->clip.state_bo, 
+            I915_GEM_DOMAIN_INSTRUCTION, 0,
+            1);
+   OUT_RELOC(brw->sf.state_bo,
+            I915_GEM_DOMAIN_INSTRUCTION, 0,
+            0);
+   OUT_RELOC(brw->wm.state_bo,
+            I915_GEM_DOMAIN_INSTRUCTION, 0,
+            0);
+   OUT_RELOC(brw->cc.state_bo,
+            I915_GEM_DOMAIN_INSTRUCTION, 0,
+            0);
    ADVANCE_BATCH();
 
    brw->state.dirty.brw |= BRW_NEW_PSP;