panfrost: Only do point coord replacement for PIPE_PRIM_POINTS
authorIcecream95 <ixn@disroot.org>
Sat, 10 Apr 2021 03:28:15 +0000 (15:28 +1200)
committerIcecream95 <ixn@disroot.org>
Sat, 10 Apr 2021 04:56:39 +0000 (16:56 +1200)
commit0a7a61b2d778aaf1fb28d97d7e0467907226989d
tree2e90fb1936059adf0e486979c6acf00d8bced7e4
parentc43109c07b080dd01e0db1baf003966f8a79b726
panfrost: Only do point coord replacement for PIPE_PRIM_POINTS

Fixes rendering in Terraria on Midgard.

Thanks to macc24 for reporting this and to HdkR for pointing me to a
similar issue for virgl.

Cc: mesa-stable
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10154>
src/gallium/drivers/panfrost/pan_cmdstream.c
src/gallium/drivers/panfrost/pan_cmdstream.h
src/gallium/drivers/panfrost/pan_context.c