mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 15:40:11 +01:00
iris: Add missing depth cache flushes
This commit is contained in:
parent
1b5c342f33
commit
d6dd57d43c
1 changed files with 5 additions and 0 deletions
|
|
@ -3926,10 +3926,15 @@ iris_restore_render_saved_bos(struct iris_context *ice,
|
||||||
iris_get_depth_stencil_resources(cso_fb->zsbuf->texture,
|
iris_get_depth_stencil_resources(cso_fb->zsbuf->texture,
|
||||||
&zres, &sres);
|
&zres, &sres);
|
||||||
if (zres) {
|
if (zres) {
|
||||||
|
iris_cache_flush_for_depth(batch, zres->bo);
|
||||||
|
|
||||||
iris_use_pinned_bo(batch, zres->bo,
|
iris_use_pinned_bo(batch, zres->bo,
|
||||||
ice->state.depth_writes_enabled);
|
ice->state.depth_writes_enabled);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sres) {
|
if (sres) {
|
||||||
|
iris_cache_flush_for_depth(batch, sres->bo);
|
||||||
|
|
||||||
iris_use_pinned_bo(batch, sres->bo,
|
iris_use_pinned_bo(batch, sres->bo,
|
||||||
ice->state.stencil_writes_enabled);
|
ice->state.stencil_writes_enabled);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue