llvmpipe: add multisample support to texture allocator.
authorDave Airlie <airlied@redhat.com>
Tue, 10 Mar 2020 00:30:13 +0000 (10:30 +1000)
committerMarge Bot <eric+marge@anholt.net>
Wed, 6 May 2020 06:20:37 +0000 (06:20 +0000)
commit1b02eb1a4c99b1268da2c17420ece6f341b42789
tree8bdce41d5e94d885dfdf301f3a69deb2338b7fc5
parent339aec7241f77fc027ee32d1537b30505c20028c
llvmpipe: add multisample support to texture allocator.

This adds a sample stride field and allocates enough memory for
each sample storage. Hook up the sample_stride field to draw
and jit textures and images

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4122>
src/gallium/drivers/llvmpipe/lp_setup.c
src/gallium/drivers/llvmpipe/lp_state_cs.c
src/gallium/drivers/llvmpipe/lp_state_sampler.c
src/gallium/drivers/llvmpipe/lp_texture.c
src/gallium/drivers/llvmpipe/lp_texture.h