Renoir: XCopyArea and XClearArea: possible race condition
Brief summary of the problem:
On a renoir based system, I noticed problems with scrolling in xterm(1) that I tried to condense in a simple example program, perhaps indicating a race condition with XCopyArea() and XClearArea().
Emacs(1) also has scrolling issues that seem to have the same cause.
Hardware description:
- CPU: AMD Ryzen 5 4500U
- GPU: renoir
How to reproduce the issue:
The attached program (modified tutorial program) does not work correctly on a renoir system. Activation of the sleep(1) between XCopyArea() and XClearArea() fixes the problem.
Attached files:
Modified tutorial program renamed to xlib-race.c xlib-race.c
Edited by Dirk Gouders