i965/cs: Emit state base address
authorJordan Justen <jordan.l.justen@intel.com>
Thu, 12 Mar 2015 05:51:00 +0000 (22:51 -0700)
committerJordan Justen <jordan.l.justen@intel.com>
Sat, 2 May 2015 07:49:59 +0000 (00:49 -0700)
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/brw_state_upload.c

index 54cb162..daa8102 100644 (file)
@@ -1445,7 +1445,7 @@ struct brw_context
 
    int num_atoms[BRW_NUM_PIPELINES];
    const struct brw_tracked_state render_atoms[57];
-   const struct brw_tracked_state compute_atoms[1];
+   const struct brw_tracked_state compute_atoms[2];
 
    /* If (INTEL_DEBUG & DEBUG_BATCH) */
    struct {
index 7d0dc8f..15d6953 100644 (file)
@@ -249,6 +249,7 @@ static const struct brw_tracked_state *gen7_render_atoms[] =
 
 static const struct brw_tracked_state *gen7_compute_atoms[] =
 {
+   &brw_state_base_address,
    &brw_cs_state,
 };
 
@@ -330,6 +331,7 @@ static const struct brw_tracked_state *gen8_render_atoms[] =
 
 static const struct brw_tracked_state *gen8_compute_atoms[] =
 {
+   &gen8_state_base_address,
    &brw_cs_state,
 };