llvmpipe: always take depth clamping from state tracker
authorDave Airlie <airlied@redhat.com>
Wed, 7 Apr 2021 01:18:44 +0000 (11:18 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 7 Apr 2021 19:18:16 +0000 (05:18 +1000)
commit60bdf61d6859f18ec151e332d6bbc6f014669a8e
tree7dd5588059a1b519d8eb7fc29427c7e6ec64af1d
parentf96f016c2280bb7df1c67f251abeac866ff3997e
llvmpipe: always take depth clamping from state tracker

Don't be smarter than state tracker here, of d3d10 wants to do
something the state tracker should hard code that. Since lavapipe
wants to use clip_halfz and depth clipping independently.

This fixes some issues blitting Z that zink was seeing

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10068>
src/gallium/drivers/llvmpipe/lp_state_fs.c