forums.freebsd.org
Open in
urlscan Pro
2607:fc50:0:15::1b9
Public Scan
URL:
https://forums.freebsd.org/threads/how-to-migrate-to-amber-branch-for-mesa.89668/
Submission: On December 04 via api from US — Scanned from US
Submission: On December 04 via api from US — Scanned from US
Form analysis
2 forms found in the DOMPOST /search/search
<form action="/search/search" method="post" class="menu-content" data-xf-init="quick-search">
<h3 class="menu-header">Search</h3>
<div class="menu-row">
<div class="inputGroup inputGroup--joined">
<input type="text" class="input" name="keywords" data-acurl="/search/auto-complete" placeholder="Search…" aria-label="Search" data-menu-autofocus="true">
<select name="constraints" class="js-quickSearch-constraint input" aria-label="Search within" style="width: 116px; flex-grow: 0; flex-shrink: 0;">
<option value="">Everywhere</option>
<option value="{"search_type":"post"}">Threads</option>
<option value="{"search_type":"post","c":{"nodes":[38],"child_nodes":1}}">This forum</option>
<option value="{"search_type":"post","c":{"thread":89668}}">This thread</option>
</select>
</div>
</div>
<div class="menu-row">
<label class="iconic"><input type="checkbox" name="c[title_only]" value="1"><i aria-hidden="true"></i><span class="iconic-label">Search titles only <span tabindex="0" role="button" data-xf-init="tooltip" data-trigger="hover focus click"
data-original-title="Tags will also be searched in content where tags are supported" id="js-XFUniqueId1">
<i class="fa--xf far fa-question-circle u-muted u-smaller"><svg xmlns="http://www.w3.org/2000/svg" role="img"><title>Note</title><use href="/data/local/icons/regular.svg?v=1732703514#question-circle"></use></svg></i>
</span></span></label>
</div>
<div class="menu-row">
<div class="inputGroup">
<span class="inputGroup-text" id="ctrl_search_menu_by_member">By:</span>
<input type="text" class="input" name="c[users]" data-xf-init="auto-complete" placeholder="Member" aria-labelledby="ctrl_search_menu_by_member" autocomplete="off">
</div>
</div>
<div class="menu-footer">
<span class="menu-footer-controls">
<button type="submit"
class="button button--icon button--icon--search button--primary"><i class="fa--xf far fa-search "><svg xmlns="http://www.w3.org/2000/svg" role="img" aria-hidden="true"><use href="/data/local/icons/regular.svg?v=1732703514#search"></use></svg></i><span
class="button-text">Search</span></button>
<button type="submit" class="button " name="from_search_menu"><span class="button-text">Advanced search…</span></button>
</span>
</div>
<input type="hidden" name="_xfToken" value="1733274263,76374e6d3f8bc718faec8ca02a57c0e9">
</form>
<form style="display:none" hidden="hidden">
<input type="text" name="_xfClientLoadTime" value="" id="_xfClientLoadTime" title="_xfClientLoadTime" tabindex="-1">
</form>
Text Content
. Donate to FreeBSD . * Home * About * Introduction * Features * Privacy Policy * Projects * Ports * Get FreeBSD * Release Information * Release Engineering * Documentation * FAQ * Handbook * Porter's Handbook * Developer's Handbook * Manual Pages * Presentations and Papers * Documentation Project Primer * All Books and Articles * Community * Mailing Lists * Forums * User Groups * Events * FreeBSD Journal * Q&A (external) * Developers * Project Ideas * Git Repository * GitHub Mirror * Code Review (Phabricator) * Wiki * Continuous Integration Service * Support * Vendors * Security Information * Bug Reports * Submitting Bug Reports * Foundation * Monetary Donations * Hardware Donations * Forums New posts Search forums * What's new New posts Latest activity Log in Register What's new Search SEARCH Everywhere Threads This forum This thread Search titles only Note By: Search Advanced search… * New posts * Search forums Menu Log in -------------------------------------------------------------------------------- Register -------------------------------------------------------------------------------- Install the app Install How to install the app on iOS Follow along with the video below to see how to install our site as a web app on your home screen. Note: This feature may not be available in some browsers. * Desktop Usage * Display Servers SOLVED HOW TO MIGRATE TO AMBER BRANCH FOR MESA * Thread starter Thread starter the3ajm * Start date Start date Jul 16, 2023 THE3AJM * Jul 16, 2023 * * * #1 I recently updated pkg on Freebsd 12.4 and the i915 driver seems to be missing from mesa loader message. I looked at some documentation that says version after Mesa 21.3 has removed the driver and need to migrate to the amber branch: https://docs.mesa3d.org/amber.html I dont seem to find any documentation on how to do that and on the bug reporting site shows a link to using meson: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=269006 I'll do more digging to see if I can figure this one out but if anyone have done this before please share your knowledge. Thanks. OP THE3AJM * Jul 17, 2023 * Thread Starter * * * #2 I followed another thread for this guide on compiling the mesa-dri port with makefile modification needed to add the i915 to the gallium driver option (there are other variables such as problem srwast vulkan, pkg-plist install paths) and fetch the driver file from the stage working directory to be moved to the local dri folder. Once the driver has been moved then need to disable the original driver. The method above is a quick way since most likely you need to build from meson for the amber flag and use this logic to work with recent mesa releases I'll post another update if i manage to build mesa with meson. OP THE3AJM * Jul 17, 2023 * Thread Starter * * * #3 The amber branch has been installed on my laptop and able to install the dri drivers, i removed the mesa-dri package test it's working fine. Y YHA * Jul 20, 2023 * * * #4 > the3ajm said: > The amber branch has been installed on my laptop and able to install the dri > drivers, i removed the mesa-dri package test it's working fine. > Click to expand... Could you please share the steps you followed to install the amber branch? I have a ThinkPad X60 which is also affected by the removal of i915 support in the latest mesa-dri. OP THE3AJM * Jul 21, 2023 * Thread Starter * * * #5 You'll need to first install meson and ninja to perform this build: you'll use meson to configure options for the build and ninja to install it. The amber branch file can be found here, you'll need to download it: https://gitlab.freedesktop.org/mesa/mesa/-/tree/amber/. The folder you put into will be the source directory, create another folder that's not in the same directory, that will be your build directory. The meson.build file contains the drivers it'll be installing during the setup so you can reference this file in case it has issues finding a driver during the setup which you can comment out to skipping install them. You can cd into the source directory to run the command: meson setup *path to build directory* This will read the meson.build file and run those the list of drivers to be build for the setup. If there are errors most likely it's missing certain drivers not found in your current system. For example, it posted an error with the nouveau driver since it's not available with mesa-dri, I comment it out from the file to skip checking it. Once it completes, you'll want to run the command: meson *path to build directory* -Damber=true You can see all the options by running meson configure but that's the logic that need to be enabled from their writing. Next you'll need to performing the compiling process: ninja -C *path to build directory* ninja -C *path to build directory* install During the completion of the step, the drivers will be located at /usr/local/lib/dri. There is another post that was referenced earlier: https://forums.freebsd.org/threads/mesa-missing-i915-driver.88338/#post-616388 that compile the mesa-dri port which can create the driver, this step involves disabling all other drivers since it'll look at the staging folder (this behavior is setup by pkg-plist file), OP also upload the i915 driver that you can move to the dri folder. M MMORKO * Jul 21, 2023 * * * #6 Thanks!!! I am on the same boat!! I am fairly new to BSD but a bit experienced in Linux, so I think I can follow the instructions/steps, I will try. Thanks!!! M OP THE3AJM * Jul 21, 2023 * Thread Starter * * * #7 > mmorko said: > Thanks!!! > > I am on the same boat!! I am fairly new to BSD but a bit experienced in Linux, > so I think I can follow the instructions/steps, I will try. > > Thanks!!! > > M > Click to expand... Great, a good place to start is using the handbook at the freebsd website. The documentation will most likely let you understand some of the basics. M MMORKO * Jul 21, 2023 * * * #8 Thanks I am reading some guides. I have the following ideas A Try to downgrade the mesa-dri with pkg B Try to use ports C Manually compile the amber branc and make a pkg. Remove mesa-dri pkg. Install the new package A should be easy but how to mark the mesa-dri to not update upgrade in future? B should take care of the above cons but I never used ports. But I am used to void linux pkg-src that should be similar. C meh not convinced. Any thoughts? OP THE3AJM * Jul 21, 2023 * Thread Starter * * * #9 > A Try to downgrade the mesa-dri with pkg > Click to expand... I don't think you can directly downgrade pkg, it looks at the repo to find what version is there if you haven't backed up then only the new files will be available. In order to install a custom version you need to find the source code with the make file to use that version but that's what the amber branch does. > B Try to use ports > Click to expand... You can use this method suggested from the forum post referenced earlier, you just need to know on what to add and know the compiling process. The original OP provided the driver you can test on your system if it doesn't work then I would suggest compiling the port yourself to create the driver. > C Manually compile the amber branc and make a pkg. Remove mesa-dri pkg. > Install the new package > Click to expand... The amber branch installs the version that contains the driver you'll need which the current mesa-dri doesn't provide and it's also being maintained somewhat by their team so most likely if there's a updated version you would need to compile it again to install the driver. You must log in or register to reply here. Share: LinkedIn Reddit Pinterest Tumblr WhatsApp Email Share Link * Desktop Usage * Display Servers * FreeBSD Style * Contact us * Terms and rules * Privacy policy * Help * RSS Community platform by XenForo® © 2010-2024 XenForo Ltd. The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation. * This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register. By continuing to use this site, you are consenting to our use of cookies. Accept Learn more… Back Top