anv/state: Fix reversed MIN vs. MAX in levelCount handling.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 29 Dec 2015 23:50:15 +0000 (15:50 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 29 Dec 2015 23:51:14 +0000 (15:51 -0800)
commitccd84848f0ff71ccc4a257ee2628f5ebc94be3b5
tree422ec253e229855302ff7a7fda6cf179edbe35e4
parent2a58cb03d04b8cff632e6be70f1bef0ec12d9f0b
anv/state: Fix reversed MIN vs. MAX in levelCount handling.

The point is to promote a levelCount of 0 to 1 before subtracting 1.
This needs MAX, not MIN.
src/vulkan/gen7_state.c
src/vulkan/gen8_state.c