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:
@@ -359,8 +359,7 @@ haiku_initialize_impl(_EGLDisplay *disp, void *platformDisplay)
|
||||
|
||||
/* Report back to EGL the bitmask of priorities supported */
|
||||
disp->Extensions.IMG_context_priority =
|
||||
hgl_dpy->disp->fscreen->screen->get_param(hgl_dpy->disp->fscreen->screen,
|
||||
PIPE_CAP_CONTEXT_PRIORITY_MASK);
|
||||
hgl_dpy->disp->fscreen->screen->caps.context_priority_mask;
|
||||
disp->Extensions.NV_context_priority_realtime =
|
||||
disp->Extensions.IMG_context_priority &
|
||||
(1 << __EGL_CONTEXT_PRIORITY_REALTIME_BIT);
|
||||
|
||||
@@ -269,8 +269,7 @@ wgl_initialize_impl(_EGLDisplay *disp, HDC hdc)
|
||||
disp->Extensions.MESA_query_driver = EGL_TRUE;
|
||||
|
||||
/* Report back to EGL the bitmask of priorities supported */
|
||||
disp->Extensions.IMG_context_priority = wgl_dpy->screen->get_param(
|
||||
wgl_dpy->screen, PIPE_CAP_CONTEXT_PRIORITY_MASK);
|
||||
disp->Extensions.IMG_context_priority = wgl_dpy->screen->caps.context_priority_mask;
|
||||
disp->Extensions.NV_context_priority_realtime =
|
||||
disp->Extensions.IMG_context_priority &
|
||||
(1 << __EGL_CONTEXT_PRIORITY_REALTIME_BIT);
|
||||
|
||||
Reference in New Issue
Block a user