broadcom/vc5: Fix up the NIR types of FS outputs generated by NIR-to-TGSI.
authorEric Anholt <eric@anholt.net>
Wed, 21 Mar 2018 19:05:54 +0000 (12:05 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 21 Mar 2018 21:02:34 +0000 (14:02 -0700)
commitbaeb6a4b4a275bc418037b718c904180e9e5c690
tree9b494ffe59b3e1bc8fa579ec70eb2b7e68654e1f
parent61603f0e4219fee2d288ece9d1b4105a8657fe38
broadcom/vc5: Fix up the NIR types of FS outputs generated by NIR-to-TGSI.

Unfortunately TGSI doesn't record the type of the FS output like GLSL
does, but VC5's TLB writes depend on the output's base type.  Just record
the type in the key at variant compile time when we've got a TGSI input
and then fix it up.

Fixes KHR-GLES3.packed_pixels.pbo_rectangle.rgba32i/ui and apparently a
GPU hang that breaks most tests that come after it.
src/broadcom/compiler/v3d_compiler.h
src/broadcom/compiler/vir.c
src/gallium/drivers/vc5/vc5_context.h
src/gallium/drivers/vc5/vc5_program.c