st/mesa: fix fallout from xfb changes.
authorDave Airlie <airlied@redhat.com>
Thu, 31 Mar 2016 02:35:25 +0000 (12:35 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 31 Mar 2016 02:36:55 +0000 (12:36 +1000)
Failed to update state tracker with new buffer interface.

Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/mesa/state_tracker/st_cb_xformfb.c

index 0c01cd5ab785cb2c6c8e2131351ef38530323533..a5cf3dfd5a940d082bfbc277351c4d65d0f412d9 100644 (file)
@@ -125,7 +125,7 @@ st_begin_transform_feedback(struct gl_context *ctx, GLenum mode,
 
       if (bo && bo->buffer) {
          unsigned stream =
-            obj->shader_program->LinkedTransformFeedback.BufferStream[i];
+            obj->shader_program->LinkedTransformFeedback.Buffers[i].Stream;
 
          /* Check whether we need to recreate the target. */
          if (!sobj->targets[i] ||
@@ -204,7 +204,7 @@ st_end_transform_feedback(struct gl_context *ctx,
 
    for (i = 0; i < ARRAY_SIZE(sobj->targets); i++) {
       unsigned stream =
-         obj->shader_program->LinkedTransformFeedback.BufferStream[i];
+         obj->shader_program->LinkedTransformFeedback.Buffers[i].Stream;
 
       /* Is it not bound or already set for this stream? */
       if (!sobj->targets[i] || sobj->draw_count[stream])