wl/shm: don't fetch formats if not requested. [21.2 version]
This aligns the code with the drm format code
Acked-By: Mike Blumenkrantz michael.blumenkrantz@gmail.com Reviewed-by: Jason Ekstrand jason@jlekstrand.net Reviewed-by: Simon Ser contact@emersion.fr