mesa: add StreamId information to transform feedback outputs.
authorIago Toral Quiroga <itoral@igalia.com>
Thu, 5 Jun 2014 06:31:40 +0000 (08:31 +0200)
committerIago Toral Quiroga <itoral@igalia.com>
Mon, 30 Jun 2014 06:08:49 +0000 (08:08 +0200)
For now initialized to the default stream 0.

Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/glsl/link_varyings.cpp
src/mesa/main/mtypes.h

index 6863298573fb335b04c692def37a63a67d269b46..f765d37fc73ec105ec8de47f1e7ccf8f20912d89 100644 (file)
@@ -495,6 +495,7 @@ tfeedback_decl::store(struct gl_context *ctx, struct gl_shader_program *prog,
       info->Outputs[info->NumOutputs].ComponentOffset = location_frac;
       info->Outputs[info->NumOutputs].OutputRegister = location;
       info->Outputs[info->NumOutputs].NumComponents = output_size;
+      info->Outputs[info->NumOutputs].StreamId = 0;
       info->Outputs[info->NumOutputs].OutputBuffer = buffer;
       info->Outputs[info->NumOutputs].DstOffset = info->BufferStride[buffer];
       ++info->NumOutputs;
index 4762d9616b308c07fcc402fa4b15b9fe93f102bd..5b110a7cdbf2c77b3934ecf4c9689fb56a3734f7 100644 (file)
@@ -1791,6 +1791,7 @@ struct gl_transform_feedback_output
    unsigned OutputRegister;
    unsigned OutputBuffer;
    unsigned NumComponents;
+   unsigned StreamId;
 
    /** offset (in DWORDs) of this output within the interleaved structure */
    unsigned DstOffset;