Mesa (master): i965/cs: Emit texture surfaces to enable CS sampling

Jordan Justen jljusten at kemper.freedesktop.org
Thu Sep 10 23:53:02 UTC 2015


Module: Mesa
Branch: master
Commit: b01d0473917ba15de3aa146006bfef5836d10e93
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b01d0473917ba15de3aa146006bfef5836d10e93

Author: Jordan Justen <jordan.l.justen at intel.com>
Date:   Wed Mar 11 22:54:20 2015 -0700

i965/cs: Emit texture surfaces to enable CS sampling

Signed-off-by: Jordan Justen <jordan.l.justen at intel.com>
Reviewed-by: Kristian Høgsberg <krh at bitplanet.net>

---

 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 41ba769..0318a3f 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 01c0900..14627d5 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,
 };
 




More information about the mesa-commit mailing list