mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
swr: mark streamout buffers as written
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
This commit is contained in:
parent
203c8794a1
commit
ea276512a0
1 changed files with 7 additions and 0 deletions
|
|
@ -682,6 +682,13 @@ swr_update_resource_status(struct pipe_context *pipe,
|
|||
swr_resource_read(ib->buffer);
|
||||
}
|
||||
|
||||
/* transform feedback buffers */
|
||||
for (uint32_t i = 0; i < ctx->num_so_targets; i++) {
|
||||
struct pipe_stream_output_target *target = ctx->so_targets[i];
|
||||
if (target && target->buffer)
|
||||
swr_resource_write(target->buffer);
|
||||
}
|
||||
|
||||
/* texture sampler views */
|
||||
for (uint32_t j : {PIPE_SHADER_VERTEX, PIPE_SHADER_FRAGMENT}) {
|
||||
for (uint32_t i = 0; i < ctx->num_sampler_views[j]; i++) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue