llvmpipe/draw: handle UBOs that are < 16 bytes.
authorDave Airlie <airlied@redhat.com>
Wed, 9 Oct 2019 05:11:14 +0000 (15:11 +1000)
committerDave Airlie <airlied@linux.ie>
Thu, 10 Oct 2019 21:52:20 +0000 (21:52 +0000)
commit1b221f4e7bdae9c6ae2961b31a7fc0e917711eb6
tree37cd5f5e778711922e6a25a37a9b300142478c1a
parent744b8936dfd7bb21bf04a47ae83bcad75716e46f
llvmpipe/draw: handle UBOs that are < 16 bytes.

Not sure if this is a bug in the user or not, but some CTS
tests fail due to using an 8 byte constant buffer.

Fixes: KHR-GLES31.core.layout_binding.block_layout_binding_block_VertexShader
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline_llvm.c
src/gallium/drivers/llvmpipe/lp_setup.c