i965/gs: add geometry shader support to brw_texture_surfaces.
authorPaul Berry <stereotype441@gmail.com>
Sun, 25 Aug 2013 15:05:44 +0000 (08:05 -0700)
committerPaul Berry <stereotype441@gmail.com>
Sun, 1 Sep 2013 00:13:07 +0000 (17:13 -0700)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_wm_surface_state.c

index a1f97b7dfbdd6fb01a3bb7ca1c2746554a655c88..37dd5abd997aba47df9c15d1f019b9d433882d16 100644 (file)
@@ -769,6 +769,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;
 
@@ -776,6 +779,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));
@@ -788,6 +794,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
    },