static void
write_xfb_primitives_written(struct brw_context *brw,
- drm_intel_bo *bo, int idx)
+ drm_intel_bo *bo, int stream, int idx)
{
intel_batchbuffer_emit_mi_flush(brw);
if (brw->gen >= 7) {
- brw_store_register_mem64(brw, bo, GEN7_SO_NUM_PRIMS_WRITTEN(0), idx);
+ brw_store_register_mem64(brw, bo, GEN7_SO_NUM_PRIMS_WRITTEN(stream), idx);
} else {
brw_store_register_mem64(brw, bo, GEN6_SO_NUM_PRIMS_WRITTEN, idx);
}
break;
case GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN:
- write_xfb_primitives_written(brw, query->bo, 0);
+ write_xfb_primitives_written(brw, query->bo, query->Base.Stream, 0);
break;
default:
break;
case GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN:
- write_xfb_primitives_written(brw, query->bo, 1);
+ write_xfb_primitives_written(brw, query->bo, query->Base.Stream, 1);
break;
default: