egl,gallium,gbm,mesa: replace get_param with pipe_caps access
Use command:
find . -path "./.git" -prune -o -type f -exec sed -i ':a;N;$!ba;s/->get_param([^,]*,[[:space:]]*PIPE_CAP_\([^)]*\))/->caps.\L\1/g' {} +
And some manual adjustment.
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32955>
This commit is contained in:
@@ -1209,9 +1209,9 @@ dri_device_create(int fd, uint32_t gbm_backend_version)
|
||||
struct dri_screen *screen = dri->screen;
|
||||
struct pipe_screen *pscreen = screen->base.screen;
|
||||
#ifdef HAVE_LIBDRM
|
||||
if (pscreen->get_param(pscreen, PIPE_CAP_DMABUF) & DRM_PRIME_CAP_IMPORT)
|
||||
if (pscreen->caps.dmabuf & DRM_PRIME_CAP_IMPORT)
|
||||
dri->has_dmabuf_import = true;
|
||||
if (pscreen->get_param(pscreen, PIPE_CAP_DMABUF) & DRM_PRIME_CAP_EXPORT)
|
||||
if (pscreen->caps.dmabuf & DRM_PRIME_CAP_EXPORT)
|
||||
dri->has_dmabuf_export = true;
|
||||
#endif
|
||||
dri->has_compression_modifiers = pscreen->query_compression_rates &&
|
||||
|
||||
Reference in New Issue
Block a user