radv/gfx10: fix crash when emitting NGG GS prologue
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Sun, 14 Jul 2019 10:55:48 +0000 (12:55 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 15 Jul 2019 06:51:53 +0000 (08:51 +0200)
commit4478f143278b31887b7d363e76c5c8ca8d13468d
treedc4c0db164a85c441e0b2b2daabf78a8b9ea42b0
parenteb862c2365cbc68d07360628f72af0db426f6b6f
radv/gfx10: fix crash when emitting NGG GS prologue

ac_nir_context is initialized after the driver emits the NGG GS
prologue so it's likely to crash.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_nir_to_llvm.c