broadcom/vc5: Emit flat shade flags for varying components > 24.
authorEric Anholt <eric@anholt.net>
Wed, 27 Dec 2017 23:38:57 +0000 (15:38 -0800)
committerEric Anholt <eric@anholt.net>
Wed, 3 Jan 2018 22:25:23 +0000 (14:25 -0800)
commit8e5a0ed95307fed7cb2bbbb86d1c264bbd070ca0
treef5a1a0aa5c8062084d60ed09af8dc88bc37b226c
parent2056e4a777bd0eed88ff2762977955b2f2bf2f1c
broadcom/vc5: Emit flat shade flags for varying components > 24.

This means that with no flatshading we'll emit the single-byte
ZERO_ALL_FLAT_SHADE_FLAGS, and otherwise emit a set of FLAT_SHADE_FLAGS to
get all the bits we need set.

There's a _SET enum in the packet we could use to possibly set entire
ranges of the bitfield without using another packet, but this at least
fixes the conformance failure.
src/broadcom/cle/v3d_packet_v33.xml
src/broadcom/compiler/v3d_compiler.h
src/broadcom/compiler/vir.c
src/gallium/drivers/vc5/vc5_emit.c