v3d: fix size of color_reads and sample_colors arrays
authorIago Toral Quiroga <itoral@igalia.com>
Wed, 3 Jul 2019 07:19:52 +0000 (09:19 +0200)
committerIago Toral Quiroga <itoral@igalia.com>
Fri, 12 Jul 2019 07:16:38 +0000 (09:16 +0200)
commit6af1bdefa975864a62a043a5ec1919c415dc9c4d
treedd9b707d0a696f7948e8b7e1a31da24ee0a6ad59
parent0279ac6e51e772bf9c374f4eb736d5f11d97d5f9
v3d: fix size of color_reads and sample_colors arrays

We need to scale the size of these arrays to consider up to
V3D_MAX_DRAW_BUFFERS render targets and 4 components per color.

v2: we want to store each color component separately, so scale by 4 too.

Reviewed-by: Eric Anholt <eric@anholt.net>
src/broadcom/compiler/v3d_compiler.h