freedreno/a3xx: fix MAX_INPUTS shader cap
authorRob Clark <robclark@freedesktop.org>
Wed, 14 May 2014 15:15:26 +0000 (11:15 -0400)
committerRob Clark <robclark@freedesktop.org>
Thu, 15 May 2014 01:25:53 +0000 (21:25 -0400)
commit5dcf59e1429310b736a11f1ae17ae8d5842a63c2
treedb724b3e69e24ce008f95eba9b7a74a9f791ac8f
parente1896948da317406fd0fc27096952badf1d3cffc
freedreno/a3xx: fix MAX_INPUTS shader cap

Hardware only supports 16.  Which fd3_shader_variant properly reflected,
but the pipe cap did not, leading to array overflow (and shaders that
could not possibly work).

Also a bunch of asserts to make problems like this easier to see.

Signed-off-by: Rob Clark <robclark@freedesktop.org>
src/gallium/drivers/freedreno/a3xx/fd3_compiler.c
src/gallium/drivers/freedreno/a3xx/fd3_compiler_old.c
src/gallium/drivers/freedreno/freedreno_screen.c