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_shader.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_shader.c')
-rw-r--r-- | src/gallium/drivers/ilo/ilo_shader.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/ilo/ilo_shader.c b/src/gallium/drivers/ilo/ilo_shader.c index ee796da7788..cbc0fa39aeb 100644 --- a/src/gallium/drivers/ilo/ilo_shader.c +++ b/src/gallium/drivers/ilo/ilo_shader.c @@ -828,8 +828,8 @@ ilo_shader_select_kernel_routing(struct ilo_shader_state *shader, int dst_len, dst_slot; /* we are constructing 3DSTATE_SBE here */ - assert(shader->info.dev->gen >= ILO_GEN(6) && - shader->info.dev->gen <= ILO_GEN(7.5)); + assert(ilo_dev_gen(shader->info.dev) >= ILO_GEN(6) && + ilo_dev_gen(shader->info.dev) <= ILO_GEN(7.5)); assert(kernel); |