Mesa (main): glx/drisw: Remove some misplaced error checks

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Aug 18 22:20:25 UTC 2021


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

Author: Adam Jackson <ajax at redhat.com>
Date:   Wed Aug 11 10:36:42 2021 -0400

glx/drisw: Remove some misplaced error checks

If the driver doesn't like these attributes it can reject them, it's not
libGL's job to verify them here.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12456>

---

 src/glx/drisw_glx.c | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/src/glx/drisw_glx.c b/src/glx/drisw_glx.c
index 8c48165bb24..ea5c733ebb8 100644
--- a/src/glx/drisw_glx.c
+++ b/src/glx/drisw_glx.c
@@ -540,13 +540,6 @@ drisw_create_context_attribs(struct glx_screen *base,
        return NULL;
    }
 
-   if (reset != __DRI_CTX_RESET_NO_NOTIFICATION)
-      return NULL;
-
-   if (release != __DRI_CTX_RELEASE_BEHAVIOR_FLUSH &&
-       release != __DRI_CTX_RELEASE_BEHAVIOR_NONE)
-      return NULL;
-
    if (shareList) {
       /* We can't share with an indirect context */
       if (!shareList->isDirect)



More information about the mesa-commit mailing list