[Mesa-dev] [PATCH 18/22] i965/gs: add geometry shader support to brw_texture_surfaces.

Paul Berry stereotype441 at gmail.com
Mon Aug 26 15:12:49 PDT 2013


---
 src/mesa/drivers/dri/i965/brw_wm_surface_state.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c b/src/mesa/drivers/dri/i965/brw_wm_surface_state.c
index 1b4388c..600b564 100644
--- a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c
+++ b/src/mesa/drivers/dri/i965/brw_wm_surface_state.c
@@ -779,6 +779,9 @@ brw_update_texture_surfaces(struct brw_context *brw)
    /* BRW_NEW_VERTEX_PROGRAM */
    struct gl_program *vs = (struct gl_program *) brw->vertex_program;
 
+   /* BRW_NEW_GEOMETRY_PROGRAM */
+   struct gl_program *gs = (struct gl_program *) brw->geometry_program;
+
    /* BRW_NEW_FRAGMENT_PROGRAM */
    struct gl_program *fs = (struct gl_program *) brw->fragment_program;
 
@@ -786,6 +789,9 @@ brw_update_texture_surfaces(struct brw_context *brw)
    update_stage_texture_surfaces(brw, vs,
                                  brw->vs.base.surf_offset +
                                  SURF_INDEX_VEC4_TEXTURE(0));
+   update_stage_texture_surfaces(brw, gs,
+                                 brw->gs.base.surf_offset +
+                                 SURF_INDEX_VEC4_TEXTURE(0));
    update_stage_texture_surfaces(brw, fs,
                                  brw->wm.surf_offset +
                                  SURF_INDEX_TEXTURE(0));
@@ -798,6 +804,7 @@ const struct brw_tracked_state brw_texture_surfaces = {
       .mesa = _NEW_TEXTURE,
       .brw = BRW_NEW_BATCH |
              BRW_NEW_VERTEX_PROGRAM |
+             BRW_NEW_GEOMETRY_PROGRAM |
              BRW_NEW_FRAGMENT_PROGRAM,
       .cache = 0
    },
-- 
1.8.4



More information about the mesa-dev mailing list