mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 05:00:09 +01:00
mesa: save which transform feedback buffer is associated with which stream
Reviewed-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
c63e8b1193
commit
7d3939f0de
2 changed files with 6 additions and 0 deletions
|
|
@ -572,6 +572,7 @@ tfeedback_decl::store(struct gl_context *ctx, struct gl_shader_program *prog,
|
|||
info->Outputs[info->NumOutputs].DstOffset = info->BufferStride[buffer];
|
||||
++info->NumOutputs;
|
||||
info->BufferStride[buffer] += output_size;
|
||||
info->BufferStream[buffer] = this->stream_id;
|
||||
num_components -= output_size;
|
||||
location++;
|
||||
location_frac = 0;
|
||||
|
|
|
|||
|
|
@ -1868,6 +1868,11 @@ struct gl_transform_feedback_info
|
|||
* multiple transform feedback outputs in the same buffer.
|
||||
*/
|
||||
unsigned BufferStride[MAX_FEEDBACK_BUFFERS];
|
||||
|
||||
/**
|
||||
* Which transform feedback stream this buffer binding is associated with.
|
||||
*/
|
||||
unsigned BufferStream[MAX_FEEDBACK_BUFFERS];
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue