i965g: convert read/write domain pairs into single usage value
[mesa.git] / src / gallium / drivers / i965 / brw_vs_state.c
index 549696f7ae79c8a8aad873709ac2681ce2013d66..26d5d005faaf7cdd8c8f63b18cf473c1a0dd2d63 100644 (file)
@@ -87,7 +87,7 @@ vs_unit_create_from_key(struct brw_context *brw, struct brw_vs_unit_key *key)
 
    memset(&vs, 0, sizeof(vs));
 
-   vs.thread0.kernel_start_pointer = brw->vs.prog_bo->offset >> 6; /* reloc */
+   vs.thread0.kernel_start_pointer = brw->vs.prog_bo->offset[0] >> 6; /* reloc */
    vs.thread0.grf_reg_count = align(key->total_grf, 16) / 16 - 1;
    vs.thread1.floating_point_mode = BRW_FLOATING_POINT_NON_IEEE_754;
    /* Choosing multiple program flow means that we may get 2-vertex threads,
@@ -149,7 +149,7 @@ vs_unit_create_from_key(struct brw_context *brw, struct brw_vs_unit_key *key)
 
    /* Emit VS program relocation */
    brw->sws->bo_emit_reloc(bo,
-                          I915_GEM_DOMAIN_INSTRUCTION, 0,
+                          BRW_USAGE_STATE,
                           vs.thread0.grf_reg_count << 1,
                           offsetof(struct brw_vs_unit_state, thread0),
                           brw->vs.prog_bo);