diff options
author | Chia-I Wu <[email protected]> | 2014-09-12 10:55:58 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2014-09-12 16:58:30 +0800 |
commit | 56d2ebb019f38d727a41f8f4a8ebd4f1aeee19e0 (patch) | |
tree | 44e84ab2aa0481e9f75a924ed2803bd7326f8064 /src/gallium/drivers/ilo/ilo_resource.c | |
parent | ea5de3e0bd82c52130633b1f01b5e0ed226b3b76 (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_resource.c')
-rw-r--r-- | src/gallium/drivers/ilo/ilo_resource.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/drivers/ilo/ilo_resource.c b/src/gallium/drivers/ilo/ilo_resource.c index d312a4dffdd..c6eadc3e381 100644 --- a/src/gallium/drivers/ilo/ilo_resource.c +++ b/src/gallium/drivers/ilo/ilo_resource.c @@ -267,7 +267,8 @@ tex_alloc_bos(struct ilo_texture *tex, case ILO_LAYOUT_AUX_HIZ: if (!tex_create_hiz(tex)) { /* Separate Stencil Buffer requires HiZ to be enabled */ - if (is->dev.gen == ILO_GEN(6) && tex->layout.separate_stencil) + if (ilo_dev_gen(&is->dev) == ILO_GEN(6) && + tex->layout.separate_stencil) return false; } break; @@ -398,7 +399,7 @@ buf_create(struct pipe_screen *screen, const struct pipe_resource *templ) buf->bo_size = align(buf->bo_size, 256) + 16; if ((templ->bind & PIPE_BIND_VERTEX_BUFFER) && - is->dev.gen < ILO_GEN(7.5)) { + ilo_dev_gen(&is->dev) < ILO_GEN(7.5)) { /* * As noted in ilo_translate_format(), we treat some 3-component formats * as 4-component formats to work around hardware limitations. Imagine |