diff options
author | Rafael Antognolli <[email protected]> | 2019-02-13 10:20:41 -0800 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2019-02-21 10:26:12 -0800 |
commit | 4f191feb0cf10b2ec7ffe41cd5375f5e9fbeec2c (patch) | |
tree | 33f66f5847d5f9a95ea7598b5746f5af0a4cf2c7 | |
parent | dfd54f995433def3ff83960c7080e30fe69a6c9a (diff) |
iris: Pin HiZ buffers when rendering.
-rw-r--r-- | src/gallium/drivers/iris/iris_state.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c index bd511c9645d..45d90e42515 100644 --- a/src/gallium/drivers/iris/iris_state.c +++ b/src/gallium/drivers/iris/iris_state.c @@ -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) { |