From: Jordan Justen Date: Thu, 12 Mar 2015 05:54:20 +0000 (-0700) Subject: i965/cs: Emit texture surfaces to enable CS sampling X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b01d0473917ba15de3aa146006bfef5836d10e93;p=mesa.git i965/cs: Emit texture surfaces to enable CS sampling Signed-off-by: Jordan Justen Reviewed-by: Kristian Høgsberg --- diff --git a/src/mesa/drivers/dri/i965/brw_context.h b/src/mesa/drivers/dri/i965/brw_context.h index 41ba7696d40..0318a3fb229 100644 --- a/src/mesa/drivers/dri/i965/brw_context.h +++ b/src/mesa/drivers/dri/i965/brw_context.h @@ -1517,7 +1517,7 @@ struct brw_context int num_atoms[BRW_NUM_PIPELINES]; const struct brw_tracked_state render_atoms[60]; - const struct brw_tracked_state compute_atoms[5]; + const struct brw_tracked_state compute_atoms[6]; /* 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 01c090014e4..14627d5231b 100644 --- a/src/mesa/drivers/dri/i965/brw_state_upload.c +++ b/src/mesa/drivers/dri/i965/brw_state_upload.c @@ -260,6 +260,7 @@ static const struct brw_tracked_state *gen7_compute_atoms[] = &brw_cs_image_surfaces, &gen7_cs_push_constants, &brw_cs_abo_surfaces, + &brw_texture_surfaces, &brw_cs_state, }; @@ -351,6 +352,7 @@ static const struct brw_tracked_state *gen8_compute_atoms[] = &brw_cs_image_surfaces, &gen7_cs_push_constants, &brw_cs_abo_surfaces, + &brw_texture_surfaces, &brw_cs_state, };