mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-26 15:30:40 +02:00
iris: re-pin inherited streamout buffers
This commit is contained in:
parent
19803d0aa7
commit
a24734a2d7
1 changed files with 13 additions and 0 deletions
|
|
@ -3758,6 +3758,19 @@ iris_restore_render_saved_bos(struct iris_context *ice,
|
|||
iris_use_optional_res(batch, ice->state.last_res.scissor, false);
|
||||
}
|
||||
|
||||
if (ice->state.streamout_active && (clean & IRIS_DIRTY_SO_BUFFERS)) {
|
||||
for (int i = 0; i < 4; i++) {
|
||||
struct iris_stream_output_target *tgt =
|
||||
(void *) ice->state.so_target[i];
|
||||
if (tgt) {
|
||||
iris_use_pinned_bo(batch, iris_resource_bo(tgt->base.buffer),
|
||||
true);
|
||||
iris_use_pinned_bo(batch, iris_resource_bo(tgt->offset.res),
|
||||
true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
for (int stage = 0; stage <= MESA_SHADER_FRAGMENT; stage++) {
|
||||
if (!(clean & (IRIS_DIRTY_CONSTANTS_VS << stage)))
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue