radv: don't crash if we have no framebuffer
authorDave Airlie <airlied@redhat.com>
Thu, 17 Aug 2017 01:08:46 +0000 (02:08 +0100)
committerDave Airlie <airlied@redhat.com>
Thu, 24 Aug 2017 23:52:48 +0000 (00:52 +0100)
commit4a091b0788664f73bbb35c14d04c00cebf37e17a
tree2d81df634321cebab8b06bd0d9b525bc945864ca
parent19f6906c1e498499035e98929657e2faebe6c993
radv: don't crash if we have no framebuffer

Recording secondaries with no framebuffer attachment may
make this happen, though this might not be the complete solution.

(esp if someone does meta stuff in there, would we have to
save things, not sure).

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_cmd_buffer.c