anv: Fix VK_EXT_transform_feedback working with varyings packed in PSIZ
authorDanylo Piliaiev <danylo.piliaiev@globallogic.com>
Fri, 1 Feb 2019 10:21:38 +0000 (12:21 +0200)
committerJason Ekstrand <jason@jlekstrand.net>
Mon, 4 Feb 2019 15:30:43 +0000 (15:30 +0000)
commit64d3b148fe71453c296ba9525f49ffe728171582
tree79cd3b9600802a0f75ae91db2504a062e2e30147
parentb7a93cbdede05af6bf5cad0a67d1a6045c52369f
anv: Fix VK_EXT_transform_feedback working with varyings packed in PSIZ

Transform feedback did not set correct SO_DECL.ComponentMask for
varyings packed in VARYING_SLOT_PSIZ:
 gl_Layer         - VARYING_SLOT_LAYER    in VARYING_SLOT_PSIZ.y
 gl_ViewportIndex - VARYING_SLOT_VIEWPORT in VARYING_SLOT_PSIZ.z
 gl_PointSize     - VARYING_SLOT_PSIZ     in VARYING_SLOT_PSIZ.w

Fixes: 36ee2fd61c8f94 "anv: Implement the basic form of VK_EXT_transform_feedback"

Signed-off-by: Danylo Piliaiev <danylo.piliaiev@globallogic.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/vulkan/genX_pipeline.c