Skip to content

intel_stub: Wrap dup()

Kenneth Graunke requested to merge kwg/shader-db:stub-dup into master

Since mesa@7557f160, iris has been calling dup() on the file descriptor. Since our drm file descriptor is fake (0xBEEF), the real dup() returns -1, which iris then uses as the file descriptor for all drm access, causing all ioctls to fail.

We don't actually care about duplicating it, so just check for the fake one and return it. Otherwise actually dup().

Edited by Kenneth Graunke

Merge request reports

Loading