radv/geom: check if esgs and gsvs ring exists before filling geom rings
authorDave Airlie <airlied@redhat.com>
Tue, 31 Jan 2017 00:37:25 +0000 (10:37 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 31 Jan 2017 01:13:15 +0000 (11:13 +1000)
commit3882f3da22a1b12d39ed7f7c20a7009fb1b8d134
tree740199aef34ff6b2c890a27a475b207d30bbbe9e
parent723941bb3d8db853f48bc31df10bae3889419cb7
radv/geom: check if esgs and gsvs ring exists before filling geom rings

There are some corner cases where you end up with an esgs ring, but no
gsvs ring, test for both before dereferencing.

Fixes:
dEQP-VK.geometry.emit.points_emit_0_end_0

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