Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cache GLX fbconfigs #1190

Merged
merged 4 commits into from
Feb 14, 2024
Merged

cache GLX fbconfigs #1190

merged 4 commits into from
Feb 14, 2024

Conversation

yshui
Copy link
Owner

@yshui yshui commented Feb 10, 2024

No description provided.

Copy link

codecov bot commented Feb 10, 2024

Codecov Report

Attention: 39 lines in your changes are missing coverage. Please review.

Comparison is base (28cb220) 36.29% compared to head (85bb56e) 36.25%.
Report is 5 commits behind head on next.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             next    #1190      +/-   ##
==========================================
- Coverage   36.29%   36.25%   -0.04%     
==========================================
  Files          50       50              
  Lines       11488    11495       +7     
==========================================
- Hits         4169     4167       -2     
- Misses       7319     7328       +9     
Files Coverage Δ
src/common.h 77.77% <ø> (ø)
src/opengl.h 59.52% <100.00%> (-0.95%) ⬇️
src/picom.c 62.12% <ø> (-0.06%) ⬇️
src/opengl.c 0.00% <0.00%> (ø)
src/render.c 0.57% <0.00%> (ø)
src/backend/gl/glx.c 31.17% <3.44%> (-0.84%) ⬇️

Copy link
Collaborator

@absolutelynothelix absolutelynothelix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good, builds and works for me. a few things may need to be addressed before merging.

CHANGELOG.md Outdated Show resolved Hide resolved
src/backend/gl/glx.c Outdated Show resolved Hide resolved
src/opengl.h Outdated Show resolved Hide resolved
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
It's fairly small, so it's reasonable to put it on the stack.

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This should marginally speed up pixmap binding for the glx backend (we
don't need FBConfigs for egl).

Fix a long running complaint in #381 (unrelated issue, but there is
complaint in there about glXChooseFBConfig being called whenever we bind
a new pixmap).

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
@absolutelynothelix absolutelynothelix merged commit 2238cf1 into next Feb 14, 2024
18 checks passed
@absolutelynothelix absolutelynothelix deleted the cache-fbconfig branch February 14, 2024 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants