turnip: Execute ir3_nir_lower_gs pass again
[mesa.git] / docs / vmware-guest.html
index 09fd8ebcdf0f0e9c609ff2d5d61e483faac3609a..378b9c5797c23be719781af442fb38fe77ceeef0 100644 (file)
@@ -111,24 +111,24 @@ On the host, all you're doing is running VMware
 <li>Xserver version at least 1.7 
 <li>Ubuntu: For ubuntu you need to install a number of build dependencies. 
   <pre>
-  sudo apt-get install git-core
-  sudo apt-get install ninja-build meson libpthread-stubs0-dev
-  sudo apt-get install xserver-xorg-dev x11proto-xinerama-dev libx11-xcb-dev
-  sudo apt-get install libxcb-glx0-dev libxrender-dev
-  sudo apt-get build-dep libgl1-mesa-dri libxcb-glx0-dev
+sudo apt-get install git-core
+sudo apt-get install ninja-build meson libpthread-stubs0-dev
+sudo apt-get install xserver-xorg-dev x11proto-xinerama-dev libx11-xcb-dev
+sudo apt-get install libxcb-glx0-dev libxrender-dev
+sudo apt-get build-dep libgl1-mesa-dri libxcb-glx0-dev
   </pre>
 <li>Fedora: For Fedora you also need to install a number of build dependencies. 
   <pre>
-  sudo yum install mesa-libGL-devel xorg-x11-server-devel xorg-x11-util-macros
-  sudo yum install libXrender-devel.i686
-  sudo yum install ninja-build meson gcc expat-devel kernel-devel git-core
-  sudo yum install makedepend flex bison
+sudo yum install mesa-libGL-devel xorg-x11-server-devel xorg-x11-util-macros
+sudo yum install libXrender-devel.i686
+sudo yum install ninja-build meson gcc expat-devel kernel-devel git-core
+sudo yum install makedepend flex bison
   </pre>
 </ul>
 
 <p>
 Depending on your Linux distro, other packages may be needed.
-The configure scripts should tell you what's missing.
+Meson should tell you what's missing.
 </p>
 
 
@@ -137,27 +137,27 @@ The configure scripts should tell you what's missing.
 
 Begin by saving your current directory location:
   <pre>
-  export TOP=$PWD
+export TOP=$PWD
   </pre>
 
 <ul>
 <li>Mesa/Gallium master branch. This code is used to build libGL, and the direct rendering svga driver for libGL, vmwgfx_dri.so, and the X acceleration library libxatracker.so.x.x.x. 
   <pre>
-  git clone https://gitlab.freedesktop.org/mesa/mesa.git
+git clone https://gitlab.freedesktop.org/mesa/mesa.git
   </pre>
 <li>VMware Linux guest kernel module. Note that this repo contains the complete DRM and TTM code. The vmware-specific driver is really only the files prefixed with vmwgfx. 
   <pre>
-  git clone git://anongit.freedesktop.org/git/mesa/vmwgfx
+git clone git://anongit.freedesktop.org/git/mesa/vmwgfx
   </pre>
 <li>libdrm, a user-space library that interfaces with drm.
 Most distros ship with this but it's safest to install a newer version.
 To get the latest code from git:
   <pre>
-  git clone https://gitlab.freedesktop.org/mesa/drm.git
+git clone https://gitlab.freedesktop.org/mesa/drm.git
   </pre>
 <li>xf86-video-vmware. The chainloading driver, vmware_drv.so, the legacy driver vmwlegacy_drv.so, and the vmwgfx driver vmwgfx_drv.so. 
   <pre>
-  git clone git://anongit.freedesktop.org/git/xorg/driver/xf86-video-vmware
+git clone git://anongit.freedesktop.org/git/xorg/driver/xf86-video-vmware
   </pre>
 </ul>
 
@@ -172,29 +172,29 @@ the LIBDIR environment variable accordingly.
 </p>
 For 32-bit Ubuntu systems:
 <pre>
-  export LIBDIR=/usr/lib/i386-linux-gnu
+export LIBDIR=/usr/lib/i386-linux-gnu
 </pre>
 For 64-bit Ubuntu systems:
 <pre>
-  export LIBDIR=/usr/lib/x86_64-linux-gnu
+export LIBDIR=/usr/lib/x86_64-linux-gnu
 </pre>
 For 32-bit Fedora systems:
 <pre>
-  export LIBDIR=/usr/lib
+export LIBDIR=/usr/lib
 </pre>
 For 64-bit Fedora systems:
 <pre>
-  export LIBDIR=/usr/lib64
+export LIBDIR=/usr/lib64
 </pre>
 
 </li>
 
 <li>Build libdrm:
   <pre>
-  cd $TOP/drm
-  meson builddir --prefix=/usr --libdir=${LIBDIR}
-  ninja -C builddir
-  sudo ninja -C builddir install
+cd $TOP/drm
+meson builddir --prefix=/usr --libdir=${LIBDIR}
+ninja -C builddir
+sudo ninja -C builddir install
   </pre>
 <li>
 <p>Build Mesa and the vmwgfx_dri.so driver, the vmwgfx_drv.so xorg driver, the X acceleration library libxatracker.
@@ -206,10 +206,10 @@ copy and video acceleration:
 
 The following configure options doesn't build the EGL system.
   <pre>
-  cd $TOP/mesa
-  meson builddir --prefix=/usr --libdir=${LIBDIR} -Dgallium-drivers=svga -Ddri-drivers=swrast -Dgallium-xa=true -Ddri3=false
-  ninja -C builddir
-  sudo ninja -C builddir install
+cd $TOP/mesa
+meson builddir --prefix=/usr --libdir=${LIBDIR} -Dgallium-drivers=svga -Ddri-drivers=swrast -Dgallium-xa=true -Ddri3=false
+ninja -C builddir
+sudo ninja -C builddir install
   </pre>
 
 <p>
@@ -221,34 +221,34 @@ if they're not installed in your system.  You should be told what's missing.
 building and replacing the current Xorg driver.
 First check if your system is 32- or 64-bit.
   <pre>
-  cd $TOP/xf86-video-vmware
-  ./autogen.sh --prefix=/usr --libdir=${LIBDIR}
-  make
-  sudo make install
+cd $TOP/xf86-video-vmware
+./autogen.sh --prefix=/usr --libdir=${LIBDIR}
+make
+sudo make install
   </pre>
 
 <li>vmwgfx kernel module. First make sure that any old version of this kernel module is removed from the system by issuing
 <pre>
-  sudo rm /lib/modules/`uname -r`/kernel/drivers/gpu/drm/vmwgfx.ko*
+sudo rm /lib/modules/`uname -r`/kernel/drivers/gpu/drm/vmwgfx.ko*
 </pre>
 Build and install:
 <pre>
-  cd $TOP/vmwgfx
-  make
-  sudo make install
-  sudo depmod -a
+cd $TOP/vmwgfx
+make
+sudo make install
+sudo depmod -a
 </pre>
 If you're using a Ubuntu OS:
 <pre>
-  sudo update-initramfs -u
+sudo update-initramfs -u
 </pre>
 If you're using a Fedora OS:
 <pre>
-  sudo dracut --force
+sudo dracut --force
 </pre>
 Add 'vmwgfx' to the /etc/modules file:
 <pre>
-  echo vmwgfx | sudo tee -a /etc/modules
+echo vmwgfx | sudo tee -a /etc/modules
 </pre>
 
 Note: some distros put DRM kernel drivers in different directories.
@@ -259,7 +259,7 @@ For example, sometimes vmwgfx.ko might be found in
 After installing vmwgfx.ko you might want to run the following command to
 check that the new kernel module is in the expected place:
 <pre>
-  find /lib/modules -name vmwgfx.ko -exec ls -l '{}' \;
+find /lib/modules -name vmwgfx.ko -exec ls -l '{}' \;
 </pre>
 If you see the kernel module listed in more than one place, you may need to
 move things around.
@@ -271,10 +271,10 @@ reinstall the vmwgfx.ko module again.
 
 Now try to load the kernel module by issuing
   <pre>
-  sudo modprobe vmwgfx</pre>
+sudo modprobe vmwgfx</pre>
 Then type 
   <pre>
-  dmesg</pre>
+dmesg</pre>
 to watch the debug output. It should contain a number of lines prefixed with "[vmwgfx]". 
 
 <p>
@@ -301,7 +301,7 @@ OpenGL version string: 2.1 Mesa 8.0
 <p>
 If you don't see this, try setting this environment variable:
   <pre>
-  export LIBGL_DEBUG=verbose</pre>
+export LIBGL_DEBUG=verbose</pre>
 <p>
 then rerun glxinfo and examine the output for error messages.
 </p>