Home | History | Annotate | only in /external/mesa3d/src/gallium/state_trackers/nine
Up to higher level directory
NameDateSize
.editorconfig22-Oct-202047
adapter9.c22-Oct-202046.4K
adapter9.h22-Oct-20205.4K
authenticatedchannel9.c22-Oct-20203K
authenticatedchannel9.h22-Oct-20202.7K
basetexture9.c22-Oct-202022.3K
basetexture9.h22-Oct-20205.2K
buffer9.c22-Oct-202016.1K
buffer9.h22-Oct-20204.5K
cryptosession9.c22-Oct-20204.2K
cryptosession9.h22-Oct-20203.5K
cubetexture9.c22-Oct-202012.2K
cubetexture9.h22-Oct-20203K
device9.c22-Oct-2020140.7K
device9.h22-Oct-202029.5K
device9ex.c22-Oct-202016.8K
device9ex.h22-Oct-20206.8K
device9video.c22-Oct-20202.6K
device9video.h22-Oct-20202.5K
guid.c22-Oct-20204.8K
guid.h22-Oct-20201.4K
indexbuffer9.c22-Oct-20204.2K
indexbuffer9.h22-Oct-20202.7K
iunknown.c22-Oct-20208.3K
iunknown.h22-Oct-20205K
Makefile.am22-Oct-2020277
Makefile.sources22-Oct-20201.4K
meson.build22-Oct-20202K
nine_buffer_upload.c22-Oct-20209.1K
nine_buffer_upload.h22-Oct-20202.2K
nine_csmt_helper.h22-Oct-202016.2K
nine_debug.c22-Oct-20205.5K
nine_debug.h22-Oct-20204.3K
nine_defines.h22-Oct-20202.7K
nine_dump.c22-Oct-202031.8K
nine_dump.h22-Oct-20201.4K
nine_ff.c22-Oct-202095.9K
nine_ff.h22-Oct-20203.3K
nine_flags.h22-Oct-2020298
nine_helpers.c22-Oct-20203.1K
nine_helpers.h22-Oct-20204.8K
nine_limits.h22-Oct-20208.6K
nine_lock.c22-Oct-2020101.9K
nine_lock.h22-Oct-20202.5K
nine_pdata.h22-Oct-2020822
nine_pipe.c22-Oct-202017K
nine_pipe.h22-Oct-202028.1K
nine_queue.c22-Oct-20207.2K
nine_queue.h22-Oct-20201.7K
nine_quirk.c22-Oct-20201.8K
nine_quirk.h22-Oct-20201.4K
nine_shader.c22-Oct-2020118.8K
nine_shader.h22-Oct-20206.5K
nine_state.c22-Oct-2020130.7K
nine_state.h22-Oct-202023.1K
nineexoverlayextension.c22-Oct-20202.2K
nineexoverlayextension.h22-Oct-20202.2K
pixelshader9.c22-Oct-20206.5K
pixelshader9.h22-Oct-20204K
query9.c22-Oct-202010.1K
query9.h22-Oct-20202.6K
README22-Oct-20203K
resource9.c22-Oct-20205.3K
resource9.h22-Oct-20202.6K
stateblock9.c22-Oct-202021.3K
stateblock9.h22-Oct-20202.2K
surface9.c22-Oct-202029.5K
surface9.h22-Oct-20205.5K
swapchain9.c22-Oct-202040.9K
swapchain9.h22-Oct-20205.1K
swapchain9ex.c22-Oct-20204.3K
swapchain9ex.h22-Oct-20202.4K
texture9.c22-Oct-202014.1K
texture9.h22-Oct-20202.7K
threadpool.c22-Oct-20205.2K
threadpool.h22-Oct-20202.1K
vertexbuffer9.c22-Oct-20203.9K
vertexbuffer9.h22-Oct-20202.6K
vertexdeclaration9.c22-Oct-202019.2K
vertexdeclaration9.h22-Oct-20203.3K
vertexshader9.c22-Oct-20208.5K
vertexshader9.h22-Oct-20204.3K
volume9.c22-Oct-202019.4K
volume9.h22-Oct-20203.6K
volumetexture9.c22-Oct-202010.2K
volumetexture9.h22-Oct-20202.8K

README

      1 Quickstart Guide
      2 
      3 *** Configure and build mesa
      4 CFLAGS="-m32" CXXFLAGS="-m32" ./autogen.sh --prefix=/usr \
      5  --with-gallium-drivers=nouveau,r600,swrast --enable-nine \
      6  --enable-debug --enable-texture-float --with-dri-drivers= --disable-dri \
      7  --disable-opengl --disable-egl --disable-vdpau --disable-xvmc --disable-gbm \
      8  --disable-llvm
      9 make
     10 
     11 *** Then we create some symlinks to mesa:
     12 ln -s "`pwd`/lib/gallium/libd3dadapter9.so.0.0.0" /usr/lib/
     13 ln -s "`pwd`/lib/gallium/libd3dadapter9.so.0" /usr/lib/
     14 ln -s "`pwd`/lib/gallium/libd3dadapter9.so" /usr/lib/
     15 ln -s "`pwd`/include/d3dadapter" /usr/include/
     16 
     17 *** Clone and build a patched wine
     18 git clone git (a] github.com:iXit/wine.git
     19 ./configure
     20 make
     21 
     22 *** And finally we create some symlinks to our patched wine files:
     23 for f in d3d9.dll gdi32.dll user32.dll wineps.drv winex11.drv;
     24 do
     25     mv /usr/lib/wine/$f.so /usr/lib/wine/$f.so.old
     26     ln -s "`pwd`/dlls/`basename -s .dll $f`/$f.so" /usr/lib/wine/
     27 done
     28 
     29 *** Activating it within wine
     30 regedit
     31 Navigate to HKCU\Software\Wine\Direct3D
     32 If it's not there, create it
     33 Create a new DWORD value called UseNative
     34 Set its value to 1
     35 
     36 Every Direct3D9 program will now try using nine before wined3d
     37 
     38 If you want to selectively enable it per-exe instead, use the key:
     39 HKCU\Software\Wine\AppDefaults\app.exe\Direct3D\UseNative
     40 where app.exe is the name of your .exe file
     41 
     42 
     43 *** HOW IT WORKS ***
     44 
     45 Nine implements the full IDirect3DDevice9 COM interface and a custom COM
     46 interface called ID3DAdapter9 which is used to implement a final IDirect3D9Ex
     47 COM interface.
     48 ID3DAdapter9 is completely devoid of window system code, meaning this can be
     49 provided by wine, Xlib, Wayland, etc. It's inadvisible to write a non-Windows
     50 backend though, as we don't want to encourage linux developers to use this API.
     51 
     52 The state tracker is compiled, along with pipe-loader, into a library called
     53 libd3dadapter9.so. This library loads pipe_[driver].so drivers on demand and
     54 exports a single symbol for getting a subsystem driver. Currently only DRM is
     55 supported.
     56 This library is then linked to the library implementing the IDirect3D9[Ex]
     57 interface and the actual Direct3D9 entry points (Direct3DCreate9[Ex])
     58 
     59 The implementation of IDirect3D9[Ex] lies within wine and coexists with
     60 wined3d. It's loaded on demand and so if it's not there, it doesn't have any
     61 drivers or something else is wrong, d3d9.dll will automatically revert to using
     62 wined3d.
     63 Whether or not it's even tried is determined by 2 DWORD registry keys.
     64 > HKCU\Software\Wine\Direct3D\UseNative
     65 > HKCU\Software\Wine\AppDefaults\app.exe\Direct3D\UseNative
     66 The former is the global on-switch. The latter is per-exe.
     67 
     68 The driver search path can be set at configure time with
     69 --with-gallium-driver-dir and overridden at runtime with D3D9_DRIVERS_PATH.
     70 Debugging information can be gotten with the WINEDEBUG channels d3d9 and
     71 d3dadapter, and state_tracker debug information can be gotten with NINE_DEBUG.
     72 Help on NINE_DEBUG is shown through NINE_DEBUG=help
     73 
     74 Finally, the ID3DPresent[Group] and ID3DAdapter9 interfaces are not set in
     75 stone, so feel free to hack on those as well as st/nine.
     76 
     77 Happy Hacking!
     78