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:
@@ -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;
|
||||||
|
@@ -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;
|
||||||
|
Reference in New Issue
Block a user