anv: reduce maxFragmentInputComponents
authorSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Mon, 28 May 2018 09:42:15 +0000 (11:42 +0200)
committerSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Thu, 14 Jun 2018 07:54:28 +0000 (09:54 +0200)
commit183adc51f8568fcb4f7670bb63e08f1adc77255e
tree188e3b8d55baade05a347d0170100331b0443739
parent6d671078a8eb683a4a978ca4f9d4e41cbb399bf8
anv: reduce maxFragmentInputComponents

If the application asks for the maximum number of fragment input
components (128), use all of them plus some builtins that are
passed in the VUE, then we exceed the maximum number of used VUE
slots (32) and we break one assert that checks this limit.

Also, with separate shader objects, we add CLIP_DIST0, CLIP_DIST1
builtins in brw_compute_vue_map() because we don't know if
gl_ClipDistance is going to be read/write by an adjacent stage.

Fixes VK-GL-CTS CL#2569.

Signed-off-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/vulkan/anv_device.c