freedreno/a5xx: Fix clip_mask
authorRob Clark <robdclark@chromium.org>
Thu, 20 Jan 2022 23:46:49 +0000 (15:46 -0800)
committerMarge Bot <emma+marge@anholt.net>
Mon, 24 Jan 2022 15:51:47 +0000 (15:51 +0000)
commit2dfebf34874b5365156d254c2c1ba2ecc5262deb
tree50765049a3951504195a65414277858616df4434
parentd26cdfac2c43e84c1a21fb7614939bf5b1b3ba03
freedreno/a5xx: Fix clip_mask

The clip_mask needs to also take into account rast->clip_plane_enable

Fixes: 99838513aee ("freedreno/a5xx: Add support for clip distances and use them for userclip.")
Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14643>
src/gallium/drivers/freedreno/a5xx/fd5_emit.c
src/gallium/drivers/freedreno/a5xx/fd5_program.c
src/gallium/drivers/freedreno/a5xx/fd5_program.h