broadcom/vc5: Set up a vertex position if the shader doesn't.
authorEric Anholt <eric@anholt.net>
Wed, 21 Mar 2018 21:18:08 +0000 (14:18 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 22 Mar 2018 22:12:21 +0000 (15:12 -0700)
commitba29b89dc7c7555fc6996fee2d08b9cbcd8b9018
treeb1a460b4d08f2a2dbd2f94b4e08d9d52f295e153
parent903e9952fbce28677945325fd3ac6f01b3e560ce
broadcom/vc5: Set up a vertex position if the shader doesn't.

Our backend needs some sort of vertex position value to emit the scaled
viewport values and such.  Fixes potential segfaults in
KHR-GLES3.copy_tex_image_conversions.required.cubemap_negx_cubemap_negx
src/broadcom/compiler/nir_to_vir.c