52 lines
1.9 KiB
Diff
52 lines
1.9 KiB
Diff
From 505efe31a09ed9ad8291976b95ac77db9397fdcf Mon Sep 17 00:00:00 2001
|
|
From: Imagination Technologies <powervr@imgtec.com>
|
|
Date: Thu, 16 Sep 2021 17:46:28 +0100
|
|
Subject: [PATCH 052/168] mesa: partially revert pbuffer attribute removal
|
|
|
|
This partially reverts commit 5ffd1ebe6b3c8c7dd316dd47fac088044222e6ef
|
|
("mesa: Remove misc pbuffer attributes from struct gl_config").
|
|
|
|
The IMG PowerVR driver sets meaningful values for the maximum
|
|
pbuffer width, height and pixels.
|
|
---
|
|
src/gallium/frontends/dri/dri_util.c | 6 +++---
|
|
src/mesa/main/glconfig.h | 5 +++++
|
|
2 files changed, 8 insertions(+), 3 deletions(-)
|
|
|
|
diff --git a/src/gallium/frontends/dri/dri_util.c b/src/gallium/frontends/dri/dri_util.c
|
|
index 32ae2b6fec7..ca2655ec536 100644
|
|
--- a/src/gallium/frontends/dri/dri_util.c
|
|
+++ b/src/gallium/frontends/dri/dri_util.c
|
|
@@ -338,9 +338,9 @@ driGetConfigAttribIndex(const __DRIconfig *config,
|
|
SIMPLE_CASE(__DRI_ATTRIB_GREEN_MASK, greenMask);
|
|
SIMPLE_CASE(__DRI_ATTRIB_BLUE_MASK, blueMask);
|
|
SIMPLE_CASE(__DRI_ATTRIB_ALPHA_MASK, alphaMask);
|
|
- case __DRI_ATTRIB_MAX_PBUFFER_WIDTH:
|
|
- case __DRI_ATTRIB_MAX_PBUFFER_HEIGHT:
|
|
- case __DRI_ATTRIB_MAX_PBUFFER_PIXELS:
|
|
+ SIMPLE_CASE(__DRI_ATTRIB_MAX_PBUFFER_WIDTH, maxPbufferWidth);
|
|
+ SIMPLE_CASE(__DRI_ATTRIB_MAX_PBUFFER_HEIGHT, maxPbufferHeight);
|
|
+ SIMPLE_CASE(__DRI_ATTRIB_MAX_PBUFFER_PIXELS, maxPbufferPixels);
|
|
case __DRI_ATTRIB_OPTIMAL_PBUFFER_WIDTH:
|
|
case __DRI_ATTRIB_OPTIMAL_PBUFFER_HEIGHT:
|
|
case __DRI_ATTRIB_VISUAL_SELECT_GROUP:
|
|
diff --git a/src/mesa/main/glconfig.h b/src/mesa/main/glconfig.h
|
|
index d54a4f75cfd..f9aa5a06940 100644
|
|
--- a/src/mesa/main/glconfig.h
|
|
+++ b/src/mesa/main/glconfig.h
|
|
@@ -27,6 +27,11 @@ struct gl_config
|
|
/* ARB_multisample / SGIS_multisample */
|
|
GLuint samples;
|
|
|
|
+ /* GLX 1.3 */
|
|
+ GLint maxPbufferWidth;
|
|
+ GLint maxPbufferHeight;
|
|
+ GLint maxPbufferPixels;
|
|
+
|
|
/* OML_swap_method */
|
|
GLint swapMethod;
|
|
|
|
--
|
|
2.17.1
|
|
|