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:
parent
f5e1f9ccef
commit
aad36dfd16
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue