v3d: Fix setup of the VCM cache size.
authorEric Anholt <eric@anholt.net>
Fri, 24 Aug 2018 22:45:37 +0000 (15:45 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 7 Sep 2018 15:11:38 +0000 (08:11 -0700)
commita91b158bd9e1b6bc08f1d5ac350cd8b68e372042
tree037f5db2dcd704de69895912de71e9fb56a21eef
parentf73f748323ef5a421ffd8fa0f02afd9627e31023
v3d: Fix setup of the VCM cache size.

There were two bugs working together to make things mostly work: I wasn't
dividing the VPM output size available by the size of a batch (vertex),
but I also had the size of the VPM reduced by a factor of 8.

Fixes dEQP-GLES3.functional.vertex_array_objects.all_attributes and it
seems also my intermittent varying failures.

Fixes: 1561e4984eb0 ("v3d: Emit the VCM_CACHE_SIZE packet.")
src/broadcom/compiler/vir.c
src/gallium/drivers/v3d/v3d_screen.c