radv: fix non-0 based layer clears.
authorDave Airlie <airlied@redhat.com>
Mon, 24 Jul 2017 07:09:47 +0000 (17:09 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 24 Jul 2017 07:27:55 +0000 (17:27 +1000)
commit75392e76adf143070a5f208febd8da31b39b7676
tree1619bb2fdb2079271d1918804d6cc3f2b09eb84f
parent22b59b99cbee00689b68f1781ed0a10d74ffc49e
radv: fix non-0 based layer clears.

If the layer base was > 0, it wasn't getting passed as the start
instance or getting added in the shaders.

Fixes CTS dEQP-VK.api.image_clearing.core.clear_color_attachment.2d_r8_uint_multiple_layers

Fixes: 7e0382fb (radv: add support for layered clears (v2))
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_meta_clear.c