From owner-freebsd-ports-bugs@freebsd.org Wed Mar 18 00:57:38 2020 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 6C06E277745 for ; Wed, 18 Mar 2020 00:57:38 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 48hs8L276Yz4CKD for ; Wed, 18 Mar 2020 00:57:38 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 257F4277742; Wed, 18 Mar 2020 00:57:38 +0000 (UTC) Delivered-To: ports-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 24D81277740 for ; Wed, 18 Mar 2020 00:57:38 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48hs8K3pgSz4CJ6 for ; Wed, 18 Mar 2020 00:57:37 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id CE17319F5A for ; Wed, 18 Mar 2020 00:57:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 02I0vafg029796 for ; Wed, 18 Mar 2020 00:57:36 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 02I0vacO029795 for ports-bugs@FreeBSD.org; Wed, 18 Mar 2020 00:57:36 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 244877] graphics/mesa-dri: Fixing vulkan by switching to unsynchronized userptr ioctls Date: Wed, 18 Mar 2020 00:57:35 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: ashafer@badland.io X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: x11@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Mar 2020 00:57:38 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D244877 Bug ID: 244877 Summary: graphics/mesa-dri: Fixing vulkan by switching to unsynchronized userptr ioctls Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: x11@FreeBSD.org Reporter: ashafer@badland.io Assignee: x11@FreeBSD.org Flags: maintainer-feedback?(x11@FreeBSD.org) Created attachment 212484 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D212484&action= =3Dedit mesa-dri: patch for anv_gem.c This is the userspace portion of a change which fixes the Vulkan graphics A= PI on older Intel machines: https://github.com/FreeBSDDesktop/kms-drm/pull/205 The above PR fixes the unsychronized DRM_IOCTL_I915_GEM_USERPTR which is us= ed by intel's vulkan code. For the fix to be used the ioctl needs to have the I915_USERPTR_UNSYNCHRONIZED flag enabled: struct drm_i915_gem_userptr userptr =3D { .user_ptr =3D (__u64)((unsigned long) mem), .user_size =3D size, - .flags =3D 0, + .flags =3D I915_USERPTR_UNSYNCHRONIZED, }; int ret =3D anv_ioctl(device->fd, DRM_IOCTL_I915_GEM_USERPTR, &userptr); I've needed both the PR and this change for some daily vulkan development to work. It seems that maybe all the mesa stuff is going to be overhauled soon? So m= aybe this isn't the ideal time to merge this. Please let me know if there is anything I can help with! --=20 You are receiving this mail because: You are the assignee for the bug.=