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 <nanley.g.chery@intel.com>
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
Jordan Justen 2019-08-13 01:37:11 -07:00
parent f5e1f9ccef
commit aad36dfd16
No known key found for this signature in database
GPG Key ID: 37F99F68CAF992EB
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
}