components/x11/mesa: further fixes and enablement of dri (i915) and gallium (swrast, crocus, iris) drivers
As per title.
These fixes in addition to the previous fixes I have contributed will result in an almost error free Xorg log. When starting xorg-server there is an error for no devices found. When poking further it is around device initialisation. I read this to be an error in libdrm, resulting from the update in 2024.
When trying to load a gallium driver there is an error. When poked further it leads to libGLESv2.
Outstanding TODO:
- Glamor needs to be enabled in xorg-server
- libdrm needs to be explicitly enabled in xorg-server
- we might need to explicitly enable dri3 in Mesa
- xa might need to be re-enabled in Mesa.
- XvMc will need to be re-enabled in Mesa when we start to add r300, r600, etc.
With this PR, someone should be able to tweak libdrm and get a working Intel dri setup, just like we had before. Once the initial TODOs are complete i.e. Glamor enablement in xorg-server, we are not far away from a Mesa with working gallium drivers.
I have converted this to a draft for the time being. We still need to do a COMPONENT_REVISION bump too.
I will have limited time in the next couple of weeks. I will appreciate help here. I will also be at FOSDEM and would be happy to hack on this with anyone in attendance.
Will re-test this following merging of https://github.com/OpenIndiana/gfx-drm/pulls
Following that we should have working:
- gallium swrast
- gallium crocus and iris
- dri i915
I maerged the PR's in https://github.com/OpenIndiana/gfx-drm/pulls, You can re-test
@xmhd With the latest changes by contributors we have a rudimentary working DRI. Do you still want to take this further or is the current state sufficiently working for you?
@xmhd With the latest changes by contributors we have a rudimentary working DRI. Do you still want to take this further or is the current state sufficiently working for you?
I will pick this up again soon (tm). Planning to spend a few hours on it this weekend.