Le blog de Jean David TECHER, un Réunionnais à Saint-Priest/Lyon

Aller au contenu | Aller au menu | Aller à la recherche


< 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 >

samedi 30 janvier 2016

Refresh Mesa Repo with latest patches from Gallium Nine

Here we will download

  • the Official Mesa Repo
  • the Mesa Repo maintained by iXit Team
.

Notice: iXit Team Repo is the Mesa Repo patched with Gallium Nine. Sometimes it is refreshed sometimes not!. Here I will show how I extract lasted patches for Gallium Nine and how I apply those patches to Mesa Official Repo

  1. Download the latest Official Mesa Repo
    git clone git://anongit.freedesktop.org/mesa/mesa Mesa-3D_$(date -I)
  2. Get the latest comment from the latest commit
    root@amdgaming:/opt/Sources/Mesa-3D_2016-01-30# git log|head -n5
    commit 438d421f8bb3f65402701628c3504c0ad04184c0
    Author: Ilia Mirkin 
    Date:   Fri Jan 29 20:28:12 2016 -0500
    
        nvc0: avoid crashing when there are holes in vertex array bindings
    
  3. Download the latest iXit Repo (this one is patched with Gallium Nine!)
    git clone https://github.com/iXit/Mesa-3D.git Mesa-3D_iXit_$(date -I)
    cd Mesa-3D_iXit_$(date -I)
  4. We need to extract the latest patches for Gallium Nine. To do this we need to get the latest commit. We get it using
    root@amdgaming:/opt/Sources/Mesa-3D_iXit_2016-01-30# git log|head -n1
    commit e4ce343e5c8b85ead88717b886c8a46753b5d7c8
    
    Ok. So it will be e4ce343e5c8b85ead88717b886c8a46753b5d7c8
  5. Now question is how many patches have to be generated? Well try a huge number like 60 using the command first
    root@amdgaming:/opt/Sources/Mesa-3D_iXit_2016-01-30# rm -f *patch;git format-patch -60 e4ce343e5c8b85ead88717b886c8a46753b5d7c8
    0001-glsl-double-precision-values-don-t-support-interpola.patch
    0002-radeonsi-Add-option-for-SI-scheduler.patch
    0003-glsl-disallow-implicit-conversions-in-ESSL-shaders.patch
    0004-st-nine-Fix-AlphaCmpCaps.patch
    0005-st-nine-Fix-D3DPMISCCAPS_FOGANDSPECULARALPHA-support.patch
    0006-st-nine-Fix-rounding-issue-with-vs1.1-a0-reg.patch
    ...
    ...
    0057-st-nine-Add-format-checks-to-create_zs_or_rt_surface.patch
    0058-st-nine-SCRATCH-does-support-all-formats.patch
    0059-st-nine-Improve-doc-of-D3DPMISCCAPS_POSTBLENDSRGBCON.patch
    0060-st-nine-Ignore-discard-flag-when-nooverwrite-is-set.patch
    
  6. So it means that we will get the latest patches by removing the 3 first patches listed above. 57 = 60 - 3. So the correct command to extract Gallium Nine patches will be
    rm -f *patch;git format-patch -57 e4ce343e5c8b85ead88717b886c8a46753b5d7c8
  7. So now we can get back to Mesa Official Sources and patch those sources with Gallium Nine
    cd Mesa-3D_$(date -I)
    for file in $(ls /opt/Sources/Mesa-3D_iXit_2016-01-30/*patch);do patch -p1 < $file;done
    and we will get
    patching file src/gallium/state_trackers/nine/adapter9.c
    patching file src/gallium/state_trackers/nine/adapter9.c
    patching file src/gallium/state_trackers/nine/nine_shader.c
    patching file src/gallium/state_trackers/nine/nine_shader.c
    ...
    ...
    patching file src/gallium/state_trackers/nine/texture9.c
    patching file src/gallium/state_trackers/nine/volumetexture9.c
    patching file src/gallium/state_trackers/nine/adapter9.c
    patching file src/gallium/state_trackers/nine/nine_pipe.h
    
  8. Now we can build Mesa

mercredi 27 janvier 2016

"The Deadly Tower Of Monsters" on Linux | Gallium Nine | Wine-Staging 1.9.2

Got decent FPS for this game

Resident Evil 0 HD Remaster on Linux | Gallium Nine | Wine-Staging 1.9.1

Prerequisites for this game are the same used for "Resident Evil HD Remaster"

Chaos Reborn on Linux | Mesa 11.2 Dev | Wine-Staging 1.9.1

This game works great on Linux with Mesa 11.2 Dev -- WineD3D -- . Gallium-Nine is not useable here