From: Jordan Justen Date: Thu, 12 Mar 2015 05:51:00 +0000 (-0700) Subject: i965/cs: Emit state base address X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5f70b49d4bffaaa073d6cc2a958ec655c201fd10;p=mesa.git i965/cs: Emit state base address Signed-off-by: Jordan Justen Reviewed-by: Kenneth Graunke --- diff --git a/src/mesa/drivers/dri/i965/brw_context.h b/src/mesa/drivers/dri/i965/brw_context.h index 54cb162b03f..daa8102dedc 100644 --- a/src/mesa/drivers/dri/i965/brw_context.h +++ b/src/mesa/drivers/dri/i965/brw_context.h @@ -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 { diff --git a/src/mesa/drivers/dri/i965/brw_state_upload.c b/src/mesa/drivers/dri/i965/brw_state_upload.c index 7d0dc8ff026..15d6953a7ef 100644 --- a/src/mesa/drivers/dri/i965/brw_state_upload.c +++ b/src/mesa/drivers/dri/i965/brw_state_upload.c @@ -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, };