diff options
author | Chia-I Wu <[email protected]> | 2015-05-02 15:36:59 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2015-05-02 22:14:07 +0800 |
commit | 9b705ec32d8cd527ab8d6ebc89f6550d52908c62 (patch) | |
tree | ec891e72a0b64be15fc4ade855f36669c29bff5b /src/gallium/drivers/ilo/ilo_transfer.c | |
parent | 430594c34ff594b5bf47417b7240a62fc93509e9 (diff) |
ilo: add ilo_image_can_enable_aux()
It replaces ilo_texture_can_enable_hiz().
Diffstat (limited to 'src/gallium/drivers/ilo/ilo_transfer.c')
-rw-r--r-- | src/gallium/drivers/ilo/ilo_transfer.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gallium/drivers/ilo/ilo_transfer.c b/src/gallium/drivers/ilo/ilo_transfer.c index 56e67870881..ec41473f94a 100644 --- a/src/gallium/drivers/ilo/ilo_transfer.c +++ b/src/gallium/drivers/ilo/ilo_transfer.c @@ -96,8 +96,7 @@ resource_get_transfer_method(struct pipe_resource *res, if (tex->image.tiling == GEN8_TILING_W || tex->separate_s8) { /* on GEN6, separate stencil is enabled only when HiZ is */ if (ilo_dev_gen(&is->dev) >= ILO_GEN(7) || - ilo_texture_can_enable_hiz(tex, transfer->level, - transfer->box.z, transfer->box.depth)) { + ilo_image_can_enable_aux(&tex->image, transfer->level)) { m = ILO_TRANSFER_MAP_SW_ZS; need_convert = true; } |