We are currently experiencing downtime impacting viewing & cloning the Mesa repo, and some GitLab pages returning 503. Please see #freedesktop on IRC for more updates.

Commit 4057cd93 authored by Miguel A. Vico's avatar Miguel A. Vico Committed by Pekka Paalanen

gl-renderer: Rename <attribs> param of gl_renderer to <config_attribs>

This change renames <attribs> parameter of gl_renderer_display_create()
and gl_renderer_output_window_create() to <config_attribs> to explain
which attribs it is.
Signed-off-by: default avatarMiguel A Vico Moya <mvicomoya@nvidia.com>
Reviewed-by: default avatarAndy Ritger <aritger@nvidia.com>
Reviewed-by: James Jones's avatarJames Jones <jajones@nvidia.com>
[Pekka: remove notes about EGLOutput]
Signed-off-by: Pekka Paalanen's avatarPekka Paalanen <pekka.paalanen@collabora.co.uk>
parent c095cde3
......@@ -2643,7 +2643,7 @@ static int
gl_renderer_output_window_create(struct weston_output *output,
EGLNativeWindowType window_for_legacy,
void *window_for_platform,
const EGLint *attribs,
const EGLint *config_attribs,
const EGLint *visual_id,
int n_ids)
{
......@@ -2653,7 +2653,7 @@ gl_renderer_output_window_create(struct weston_output *output,
EGLConfig egl_config;
int i;
if (egl_choose_config(gr, attribs, visual_id,
if (egl_choose_config(gr, config_attribs, visual_id,
n_ids, &egl_config) == -1) {
weston_log("failed to choose EGL config for output\n");
return -1;
......@@ -2990,7 +2990,7 @@ gl_renderer_create_pbuffer_surface(struct gl_renderer *gr) {
static int
gl_renderer_display_create(struct weston_compositor *ec, EGLenum platform,
void *native_window, const EGLint *attribs,
void *native_window, const EGLint *config_attribs,
const EGLint *visual_id, int n_ids)
{
struct gl_renderer *gr;
......@@ -3054,7 +3054,7 @@ gl_renderer_display_create(struct weston_compositor *ec, EGLenum platform,
goto fail_with_error;
}
if (egl_choose_config(gr, attribs, visual_id,
if (egl_choose_config(gr, config_attribs, visual_id,
n_ids, &gr->egl_config) < 0) {
weston_log("failed to choose EGL config\n");
goto fail_terminate;
......
......@@ -63,7 +63,7 @@ struct gl_renderer_interface {
int (*display_create)(struct weston_compositor *ec,
EGLenum platform,
void *native_window,
const EGLint *attribs,
const EGLint *config_attribs,
const EGLint *visual_id,
const int n_ids);
......@@ -72,7 +72,7 @@ struct gl_renderer_interface {
int (*output_window_create)(struct weston_output *output,
EGLNativeWindowType window_for_legacy,
void *window_for_platform,
const EGLint *attribs,
const EGLint *config_attribs,
const EGLint *visual_id,
const int n_ids);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment