Mesa (main): glx: set max values for pbuffer width / height

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue May 17 08:49:39 UTC 2022


Module: Mesa
Branch: main
Commit: 8779a5b84cefba11a8644be295973150ab3d630f
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=8779a5b84cefba11a8644be295973150ab3d630f

Author: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer at amd.com>
Date:   Fri May 13 14:31:53 2022 +0200

glx: set max values for pbuffer width / height

Without this change the values are always 0. This breaks
Maya which uses this value to create a pbuffer (and then
fails).

This commit is based on b91e1e38e87 which does the same
for EGL.

Cc: mesa-stable
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Reviewed-by: Adam Jackson <ajax at redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16496>

---

 src/glx/glxconfig.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/glx/glxconfig.c b/src/glx/glxconfig.c
index f8dc3ce6086..e67d5fadf41 100644
--- a/src/glx/glxconfig.c
+++ b/src/glx/glxconfig.c
@@ -145,10 +145,10 @@ glx_config_get(struct glx_config * mode, int attribute, int *value_return)
       *value_return = mode->fbconfigID;
       return 0;
    case GLX_MAX_PBUFFER_WIDTH:
-      *value_return = mode->maxPbufferWidth;
+      *value_return = 4096; /* _EGL_MAX_PBUFFER_WIDTH */
       return 0;
    case GLX_MAX_PBUFFER_HEIGHT:
-      *value_return = mode->maxPbufferHeight;
+      *value_return = 4096; /* _EGL_MAX_PBUFFER_HEIGHT */
       return 0;
    case GLX_MAX_PBUFFER_PIXELS:
       *value_return = mode->maxPbufferPixels;



More information about the mesa-commit mailing list