Skip to content

Commit

Permalink
backend/xrender: actually, nobody has accelerated convolution :'(
Browse files Browse the repository at this point in the history
Well, except xf86-video-intel.

Fixes #1349

Signed-off-by: Yuxuan Shui <[email protected]>
  • Loading branch information
yshui committed Oct 11, 2024
1 parent 2cbfd0c commit 6caa76a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Unreleased

## Improvements

* Extend workaround for missing hardware accelerated convolution to more drivers (#1349)

## Bug fixes

* Fix memory corruption that can happen when handling window property changes (#1350)
Expand Down
5 changes: 3 additions & 2 deletions src/backend/xrender/xrender.c
Original file line number Diff line number Diff line change
Expand Up @@ -956,8 +956,9 @@ static backend_t *xrender_init(session_t *ps, xcb_window_t target) {
xd->back_image.pict = xd->vsync ? xd->back[xd->curr_back] : xd->target;

auto drivers = detect_driver(xd->base.c->c, &xd->base, xd->target_win);
if (drivers & DRIVER_MODESETTING) {
// I believe other xf86-video drivers have accelerated blur?
if (drivers & (DRIVER_MODESETTING | DRIVER_NVIDIA | DRIVER_NOUVEAU |
DRIVER_AMDGPU | DRIVER_RADEON | DRIVER_FGLRX)) {
// I believe xf86-video-intel have accelerated convolution?
xd->quirks |= BACKEND_QUIRK_SLOW_BLUR;
}

Expand Down

0 comments on commit 6caa76a

Please sign in to comment.