mesa: add StreamId information to transform feedback outputs.

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>
This commit is contained in:
Iago Toral Quiroga
2014-06-05 08:31:40 +02:00
parent a7e6ec6898
commit f20c723039
2 changed files with 2 additions and 0 deletions

View 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].ComponentOffset = location_frac;
info->Outputs[info->NumOutputs].OutputRegister = location; info->Outputs[info->NumOutputs].OutputRegister = location;
info->Outputs[info->NumOutputs].NumComponents = output_size; info->Outputs[info->NumOutputs].NumComponents = output_size;
info->Outputs[info->NumOutputs].StreamId = 0;
info->Outputs[info->NumOutputs].OutputBuffer = buffer; info->Outputs[info->NumOutputs].OutputBuffer = buffer;
info->Outputs[info->NumOutputs].DstOffset = info->BufferStride[buffer]; info->Outputs[info->NumOutputs].DstOffset = info->BufferStride[buffer];
++info->NumOutputs; ++info->NumOutputs;

View File

@@ -1791,6 +1791,7 @@ struct gl_transform_feedback_output
unsigned OutputRegister; unsigned OutputRegister;
unsigned OutputBuffer; unsigned OutputBuffer;
unsigned NumComponents; unsigned NumComponents;
unsigned StreamId;
/** offset (in DWORDs) of this output within the interleaved structure */ /** offset (in DWORDs) of this output within the interleaved structure */
unsigned DstOffset; unsigned DstOffset;