radv: set fmask state to all 0s when no fmask. (v2)
authorDave Airlie <airlied@redhat.com>
Fri, 9 Jun 2017 01:11:29 +0000 (02:11 +0100)
committerDave Airlie <airlied@redhat.com>
Fri, 9 Jun 2017 19:41:55 +0000 (20:41 +0100)
commit51553c0beaeb91b1f2cb3292ac55573309b1d86f
treebb64577dd1db3680e0a12b89bb8d59a63d355e08
parent71651b3139c501f50e6547c21a1cdb816b0a9dde
radv: set fmask state to all 0s when no fmask. (v2)

The shader reads the descriptor to decide if it should take the
fmask value, however we weren't initing it always, which meant
random crap, esp with MSAA depth textures.

Fixes random hangs with:
dEQP-VK.glsl.builtin_var.fragdepth.*

v2: check fmask_state is not NULL

Fixes: f4e499ec791 "radv: add initial non-conformant radv vulkan driver"
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_image.c