broadcom/vc5: Pack clear colors according to the TLB internal format/type.
authorEric Anholt <eric@anholt.net>
Fri, 27 Oct 2017 21:13:46 +0000 (14:13 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 30 Oct 2017 20:31:32 +0000 (13:31 -0700)
commit2e3c7beb1e60a47e1f5dd12d28ac3f328555a543
treecdf3d64c4ba84290fa72ae8034b27770bbb3684f
parent828299d1bd3f98179cd82939d25d919f2022541e
broadcom/vc5: Pack clear colors according to the TLB internal format/type.

The previous packing I did got us all the R*16F and R*32F formats, where
the pipe format basically matched the TLB's format, but since the clear
color will just be memcpyed to the TLB, we should be looking at its format
for deciding how to pack.

Fixes RGB565, RGB5_A1 and RGBA10 fbo-clear-formats tests and improves
4444.
src/gallium/drivers/vc5/vc5_draw.c
src/gallium/drivers/vc5/vc5_rcl.c