mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 15:40:11 +01:00
iris: Pin HiZ buffers when rendering.
This commit is contained in:
parent
dfd54f9954
commit
4f191feb0c
1 changed files with 8 additions and 0 deletions
|
|
@ -4028,6 +4028,10 @@ iris_restore_render_saved_bos(struct iris_context *ice,
|
|||
|
||||
iris_use_pinned_bo(batch, zres->bo,
|
||||
ice->state.depth_writes_enabled);
|
||||
if (zres->aux.bo) {
|
||||
iris_use_pinned_bo(batch, zres->aux.bo,
|
||||
ice->state.depth_writes_enabled);
|
||||
}
|
||||
}
|
||||
|
||||
if (sres) {
|
||||
|
|
@ -4612,6 +4616,10 @@ iris_upload_dirty_render_state(struct iris_context *ice,
|
|||
if (zres) {
|
||||
iris_use_pinned_bo(batch, zres->bo,
|
||||
ice->state.depth_writes_enabled);
|
||||
if (zres->aux.bo) {
|
||||
iris_use_pinned_bo(batch, zres->aux.bo,
|
||||
ice->state.depth_writes_enabled);
|
||||
}
|
||||
}
|
||||
|
||||
if (sres) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue