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 54cb162b03fc676038aaa233e8e53ce56fe992bc..daa8102dedc7ea3706dce86b37ef1bc9e7e437bc 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 7d0dc8ff026d30d88d97b8134ca5a176c25ce3d2..15d6953a7ef71087289efcedd80fb3c3fd72ec23 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,
 };