Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • mesa mesa
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 2,880
    • Issues 2,880
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 905
    • Merge requests 905
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Mesa
  • mesamesa
  • Merge requests
  • !12006

Open
Created Jul 21, 2021 by Adam Jackson@ajax🎧Developer
  • Report abuse
Report abuse

glx: Fix error handling yet again in CreateContextAttribs

  • Overview 13
  • Commits 8
  • Pipelines 16
  • Changes 17

You ever pull on a thread and unravel the whole tapestry?

This started out as an attempt to work around an X11 request sequence number issue between xlib and xcb, by simplifying CreateContextAttribs to match legacy CreateContext: if creating the client-side direct context state failed, error out immediately without sending a request to the X server. This creates a problem: glXCreateContextAttribsARB has some Very elaborately specified error conditions, and we were relying on the server to generate the right ones for us, so now piglit explodes in interesting ways. And just wiring up the existing error generation doesn't work for a variety of reasons so we have to fix things to generate the right errors.

I'm not quite done with this line of poking, we should be able to unify the dri*_create_context_attribs routines further and a ton of stuff gets simpler if you do that, but this appeases piglit and doesn't have the request-numbering issue so let's checkpoint here.

Edited Aug 12, 2021 by Adam Jackson
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: glx-issue-4763