panfrost: Use pipe resource helper
Like we already do in panfrost_resource_get_param(). While on it, update the later to use pan_resource() again for consistency. No functional changes intended.
Just a small drive-by cleanup, see also !26109 (merged)
Edited by Robert Mader