llvmpipe: Truncate the binned constants to max const buffer size.
authorJose Fonseca <jfonseca@vmware.com>
Thu, 18 Jun 2015 14:47:00 +0000 (15:47 +0100)
committerJose Fonseca <jfonseca@vmware.com>
Fri, 19 Jun 2015 06:21:06 +0000 (07:21 +0100)
commitafeb92220690c8f27cdc56c30e109ca175d51d83
tree3a0b93389b34d796066d2e27cb59cabb8aad62c7
parentf734d2556013e9239e91f43b563b5b1d8f03ada4
llvmpipe: Truncate the binned constants to max const buffer size.

Tested with Ilia Mirkin's gzdoom.trace and
"arb_uniform_buffer_object-maxuniformblocksize fsexceed" piglit test
without my earlier fix to fail linkage when UBO exceeds
GL_MAX_UNIFORM_BLOCK_SIZE.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/auxiliary/gallivm/lp_bld_limits.h
src/gallium/drivers/llvmpipe/lp_setup.c