panfrost: Emulate GL_CLAMP on Bifrost

Hardware support was removed with Midgard. Use mesa/st to emulate GL_CLAMP with
nir_lower_tex automatically (the Zink lowering), and disable GL_MIRROR_CLAMP
which isn't lowered correctly.

Fixes *texwrap* Piglit tests on G52.

Fixes: f9ceab7b ("panfrost: Fix CLAMP wrap mode")
Signed-off-by: Alyssa Rosenzweig <>
Part-of: <!15253>
47 jobs for !15253 with glclamp in 16 minutes and 9 seconds (queued for 4 seconds)
latest merge request