summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/iris/iris_state.c
diff options
context:
space:
mode:
authorJordan Justen <[email protected]>2019-08-13 01:37:11 -0700
committerJordan Justen <[email protected]>2019-08-13 15:20:39 -0700
commitaad36dfd1619a66c31f987322f2e66729e0813e8 (patch)
tree7d12cdef73711be0bd353b959b8b9a3c7dcc13e4 /src/gallium/drivers/iris/iris_state.c
parentf5e1f9ccef249b2f897179150bdb18d564c25ddc (diff)
iris: Add aux offset into hiz_address
This is not currently required because the hiz buffer is in a separate buffer, and therefore the offset is 0. If we combine the aux buffer with the main surface buffer, then the hiz offset may become non-zero. Suggested-by: Nanley Chery <[email protected]> Signed-off-by: Jordan Justen <[email protected]> Reviewed-by: Nanley Chery <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/gallium/drivers/iris/iris_state.c')
-rw-r--r--src/gallium/drivers/iris/iris_state.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c
index 2eecf46d24a..a3d93b769ce 100644
--- a/src/gallium/drivers/iris/iris_state.c
+++ b/src/gallium/drivers/iris/iris_state.c
@@ -2461,7 +2461,7 @@ iris_set_framebuffer_state(struct pipe_context *ctx,
if (iris_resource_level_has_hiz(zres, view.base_level)) {
info.hiz_usage = ISL_AUX_USAGE_HIZ;
info.hiz_surf = &zres->aux.surf;
- info.hiz_address = zres->aux.bo->gtt_offset;
+ info.hiz_address = zres->aux.bo->gtt_offset + zres->aux.offset;
}
}