llvmpipe: make sure to initialize the lp_setup_context slots with the default values
authorCorentin Noël <corentin.noel@collabora.com>
Mon, 11 Sep 2023 14:53:03 +0000 (16:53 +0200)
committerMarge Bot <emma+marge@anholt.net>
Tue, 12 Sep 2023 15:17:39 +0000 (15:17 +0000)
commit010147cd642cf8a5213b5a368b16a8299b04e590
treea95281b2e4e96d59fdd5384b6958e901b22ce415
parentf9b341cbf40f8e5a30c39ee82b48de249f65b4e9
llvmpipe: make sure to initialize the lp_setup_context slots with the default values

As 0 is an actual valid value, this can lead to issues when we actually want to use them.

This fixes `spec@arb_cull_distance@basic-cull-3` crashes for instance.

Cc: mesa-stable
Signed-off-by: Corentin Noël <corentin.noel@collabora.com>
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25152>
src/gallium/drivers/llvmpipe/ci/llvmpipe-fails.txt
src/gallium/drivers/llvmpipe/lp_setup.c
src/gallium/drivers/virgl/ci/virpipe-gl-fails.txt