summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/ilo/ilo_transfer.c
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2014-09-12 10:55:58 +0800
committerChia-I Wu <[email protected]>2014-09-12 16:58:30 +0800
commit56d2ebb019f38d727a41f8f4a8ebd4f1aeee19e0 (patch)
tree44e84ab2aa0481e9f75a924ed2803bd7326f8064 /src/gallium/drivers/ilo/ilo_transfer.c
parentea5de3e0bd82c52130633b1f01b5e0ed226b3b76 (diff)
ilo: use an accessor for dev->gen
It should enable us to do specialized builds by making the accessor return a constant.
Diffstat (limited to 'src/gallium/drivers/ilo/ilo_transfer.c')
-rw-r--r--src/gallium/drivers/ilo/ilo_transfer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/ilo/ilo_transfer.c b/src/gallium/drivers/ilo/ilo_transfer.c
index 50eda3da56a..f1186ff1c65 100644
--- a/src/gallium/drivers/ilo/ilo_transfer.c
+++ b/src/gallium/drivers/ilo/ilo_transfer.c
@@ -96,7 +96,7 @@ resource_get_transfer_method(struct pipe_resource *res,
/* we may need to convert on the fly */
if (tex->separate_s8 || tex->layout.format == PIPE_FORMAT_S8_UINT) {
/* on GEN6, separate stencil is enabled only when HiZ is */
- if (is->dev.gen >= ILO_GEN(7) ||
+ if (ilo_dev_gen(&is->dev) >= ILO_GEN(7) ||
ilo_texture_can_enable_hiz(tex, transfer->level,
transfer->box.z, transfer->box.depth)) {
m = ILO_TRANSFER_MAP_SW_ZS;