瀏覽代碼

ilo: make sure there is HiZ before resolving

We do not want to perform a depth resolve on an MCS enabled surface.
tags/11.1-branchpoint
Chia-I Wu 9 年之前
父節點
當前提交
13a5805b64
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. 4
    2
      src/gallium/drivers/ilo/ilo_blit.h

+ 4
- 2
src/gallium/drivers/ilo/ilo_blit.h 查看文件

@@ -58,10 +58,12 @@ ilo_blit_resolve_slices(struct ilo_context *ilo,
* As it is only used to resolve HiZ right now, return early when there is
* no HiZ.
*/
if (!ilo_image_can_enable_aux(&tex->image, level))
if (tex->image.aux.type != ILO_IMAGE_AUX_HIZ ||
!ilo_image_can_enable_aux(&tex->image, level))
return;

if (ilo_image_can_enable_aux(&tex->image, level)) {
if (tex->image.aux.type == ILO_IMAGE_AUX_HIZ &&
ilo_image_can_enable_aux(&tex->image, level)) {
ilo_blit_resolve_slices_for_hiz(ilo, res, level,
first_slice, num_slices, resolve_flags);
}

Loading…
取消
儲存