glx/drisw: Remove some misplaced error checks
authorAdam Jackson <ajax@redhat.com>
Wed, 11 Aug 2021 14:36:42 +0000 (10:36 -0400)
committerMarge Bot <eric+marge@anholt.net>
Wed, 18 Aug 2021 21:11:02 +0000 (21:11 +0000)
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

index 8c48165..ea5c733 100644 (file)
@@ -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)