Solved: the cause was the stub in mesa3d drm backend. It's solved by altering the backend.