From b01d0473917ba15de3aa146006bfef5836d10e93 Mon Sep 17 00:00:00 2001 From: Jordan Justen Date: Wed, 11 Mar 2015 22:54:20 -0700 Subject: [PATCH] i965/cs: Emit texture surfaces to enable CS sampling MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jordan Justen Reviewed-by: Kristian Høgsberg --- src/mesa/drivers/dri/i965/brw_context.h | 2 +- src/mesa/drivers/dri/i965/brw_state_upload.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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, }; -- 2.30.2