radv: fix surface max layer count (v2)
authorDave Airlie <airlied@redhat.com>
Tue, 19 Dec 2017 05:41:42 +0000 (15:41 +1000)
committerDave Airlie <airlied@redhat.com>
Fri, 22 Dec 2017 04:07:55 +0000 (14:07 +1000)
commit9594667899e2e04d625901ea703a44d8c4b4737c
tree47672c755a98cdde3f361819d3424a504d046c31
parentb3e3cb990125c71c1fd172588852bd92bcfb8904
radv: fix surface max layer count (v2)

looking at traces I noticed we'd set slice_max too large sometimes.

This should fix it.

v2: fix missing - 1

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_device.c