st/pbo: fix pbo uploads without PIPE_CAP_TGSI_VS_LAYER_VIEWPORT and skip gs
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Mon, 14 Dec 2020 16:48:39 +0000 (11:48 -0500)
committerMarge Bot <eric+marge@anholt.net>
Tue, 29 Dec 2020 16:48:39 +0000 (16:48 +0000)
commit36097fc7ef70471ecfecd428f990233276e9c45b
treea0c325076926add53bd42dec33d8149d5b7d8c63
parentaccc2222174a90fd24ee56ce751feb6022ecc0c7
st/pbo: fix pbo uploads without PIPE_CAP_TGSI_VS_LAYER_VIEWPORT and skip gs

the previous commit handling this forced geometry shader usage for all cases,
but this is not ideal, so instead there are now fragment shader variants for
both depth==1 and depth!=1, corresponding to the existence of gl_Layer in the
shader

Fixes: 614c77772ac ("st/pbo: fix pbo uploads without PIPE_CAP_TGSI_VS_LAYER_VIEWPORT")

Acked-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8089>
src/mesa/state_tracker/st_cb_readpixels.c
src/mesa/state_tracker/st_cb_texture.c
src/mesa/state_tracker/st_context.h
src/mesa/state_tracker/st_pbo.c
src/mesa/state_tracker/st_pbo.h