mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
d3d12: make DrawTransformFeedback not depend on the vertex buffer offset
Suggested by Jesse Natalie to fix an issue where this worked with buffer_offset == 0 and src_offset != 0, but not the other way around. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27731>
This commit is contained in:
parent
341d0fcbf6
commit
f8cd9604f9
1 changed files with 1 additions and 1 deletions
|
|
@ -858,7 +858,7 @@ update_draw_auto(struct d3d12_context *ctx,
|
|||
d3d12_stream_output_target *target = (d3d12_stream_output_target *)so_arg;
|
||||
|
||||
ctx->transform_state_vars[0] = ctx->gfx_pipeline_state.ves->strides[0];
|
||||
ctx->transform_state_vars[1] = ctx->vbs[0].buffer_offset - so_arg->buffer_offset;
|
||||
ctx->transform_state_vars[1] = 0;
|
||||
|
||||
pipe_shader_buffer new_cs_ssbo;
|
||||
new_cs_ssbo.buffer = target->fill_buffer;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue