Building fails with the current git master
Hello folks,
When trying to build xf86-video-ati in it's current form in Git Master, I get the following error:
CC evergreen_textured_videofuncs.lo
CC cayman_accel.lo
CC cayman_shader.lo
CC radeon_dri2.lo
In file included from radeon_dri2.c:32:
radeon_dri2.c: In function ‘radeon_dri2_exchange_buffers’:
radeon_dri2.c:733:53: error: ‘screen’ undeclared (first use in this function); did you mean ‘strlen’?
733 | RADEONInfoPtr info = RADEONPTR(xf86ScreenToScrn(screen));
| ^~~~~~
radeon.h:232:48: note: in definition of macro ‘RADEONPTR’
232 | #define RADEONPTR(pScrn) ((RADEONInfoPtr)(pScrn)->driverPrivate)
| ^~~~~
radeon_dri2.c:733:53: note: each undeclared identifier is reported only once for each function it appears in
733 | RADEONInfoPtr info = RADEONPTR(xf86ScreenToScrn(screen));
| ^~~~~~
radeon.h:232:48: note: in definition of macro ‘RADEONPTR’
232 | #define RADEONPTR(pScrn) ((RADEONInfoPtr)(pScrn)->driverPrivate)
| ^~~~~
make[2]: *** [Makefile:690: radeon_dri2.lo] Error 1
make[2]: Leaving directory '/sources/xf86-video-ati-19.1.0/xf86-video-ati-19.1.0/src'
make[1]: *** [Makefile:462: all-recursive] Error 1
make[1]: Leaving directory '/sources/xf86-video-ati-19.1.0/xf86-video-ati-19.1.0'
make: *** [Makefile:394: all] Error 2
This seems to be due to commit 77d9ab03 removing the line "ScreenPtr screen = draw->pScreen;
"