Created attachment 81649 [details] Patch for the first issue. I tried compiling latest git master with clang and had to fix some issues. 1. Some DRM_FORMAT_* symbols are used without including the appropriate header. 2. The wrong format string is used for an unsigned long. 3. Unsigned values are tested for being less than zero. The attached patches fix these problems. Let me know if you prefer separate bug reports for the separate patches.
Created attachment 81650 [details] [review] Patch for the second issue.
Created attachment 81651 [details] [review] Patch for the third issue.
Created attachment 82097 [details] New via_drm.h header
Applied your patches. Could you try the new via_drm.h header. I want to make sure I don't break the BSD support.
I've tried compiling git head with the via_drm.h from attachment 4 [details] [review], and it still compiled fine both with gcc and clang. I don't have the hardware, so I can't test functionality. Thanks for applying the patches!
All patches applied. We can close this ticket.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.