From 4f191feb0cf10b2ec7ffe41cd5375f5e9fbeec2c Mon Sep 17 00:00:00 2001 From: Rafael Antognolli Date: Wed, 13 Feb 2019 10:20:41 -0800 Subject: iris: Pin HiZ buffers when rendering. --- src/gallium/drivers/iris/iris_state.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/gallium') 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) { -- cgit v1.2.3