Jump to content
The Dark Mod Forums

Compiled LLVMpipe/Softpipe for Windows


lowenz

Recommended Posts

Right. We would need to ship uncompressed versions of all our textures. I think we had a package like that a long time ago but it would

be quite a project to scrounge all the textures in our repositories for the originals and some were donated pre-compressed so we would need

to convert them back to uncompressed formats.

 

No chance of adding S3TC to llvm soft-pipe?

Please visit TDM's IndieDB site and help promote the mod:

 

http://www.indiedb.com/mods/the-dark-mod

 

(Yeah, shameless promotion... but traffic is traffic folks...)

Link to comment
Share on other sites

No: https://dri.freedesktop.org/wiki/S3TC/

 

S3TC support has been partially implemented in Mesa. We cannot integrate and enable S3TC code by default due to the patents on the algorithm. Because of this, to be cautious, code was integrated to only attempt to open an external library, libtxc_dxtn.so, and use a small number of functions from that to implement S3TC if available. There is also an option in the S3TC-supporting DRI drivers called force_s3tc_enable. If the library is unavailable, setting this option to true will expose the extension even though it cannot be fully implemented. This may be of use for some games which require S3TC or don't use the ARB_texture_compression extension correctly.

Task is not so much to see what no one has yet seen but to think what nobody has yet thought about that which everybody see. - E.S.

Link to comment
Share on other sites

  • 4 weeks later...

RTCW (with widescreen patch :D ) @16 FPS!

See: GPU 0%

 

Wolf_SP_2016_09_12_22_26_42_263.png

Nice, REALLY NICE, improvements with lastest version:

 

16->28 ! (if only we could use LLVM 3.9 but we are stuck to 3.7.1 due to the missing LLVMipa in 3.9!)

 

Wolf_SP_2016_10_10_11_19_42_400.png

Edited by lowenz

Task is not so much to see what no one has yet seen but to think what nobody has yet thought about that which everybody see. - E.S.

Link to comment
Share on other sites

And Unreal (OpenGL 2.1 unofficial patch, 1280x960) @50 FPS (!!!)

It's outstanding! (the renderer is recent)

 

Unreal_2016_10_10_12_25_24_157.png

Edited by lowenz

Task is not so much to see what no one has yet seen but to think what nobody has yet thought about that which everybody see. - E.S.

Link to comment
Share on other sites

Quake 2 with R1Q2 renderer (original one is wrapping-protected!)

 

r1q2_2016_10_15_15_43_53_124.png

 

If only they could add the S3TC support and a form of Anisotropic Filtering we're good to go :D OpenGL 1.x and 2.x unbound (NVidia, AMD and Intel :P )

Edited by lowenz

Task is not so much to see what no one has yet seen but to think what nobody has yet thought about that which everybody see. - E.S.

Link to comment
Share on other sites

  • 2 months later...

If you're interested here's the lastest binaries build by MSYS2 project :)

 

32 bit OpenGL32.dll -> https://sourceforge.net/projects/msys2/files/REPOS/MINGW/i686/mingw-w64-i686-mesa-13.0.2-1-any.pkg.tar.xz/download

64 bit OpenGL32.dll -> https://sourceforge.net/projects/msys2/files/REPOS/MINGW/x86_64/mingw-w64-x86_64-mesa-13.0.2-1-any.pkg.tar.xz/download

 

Just extract the DLL and drop it in the main-exe dir of your OpenGL application.

Edited by lowenz

Task is not so much to see what no one has yet seen but to think what nobody has yet thought about that which everybody see. - E.S.

Link to comment
Share on other sites

  • 1 month later...

If you're interested Mesa dev removed the LLVM 3.7 dependencies and now you can compile LLVMpipe with the shining new LLVM 3.9.1/4.0! :D

And with Mesa 17 the performance goes up again, 60 FPS in Unreal+OpenGL 2.1:

 

image.jpg

Edited by lowenz

Task is not so much to see what no one has yet seen but to think what nobody has yet thought about that which everybody see. - E.S.

Link to comment
Share on other sites

  • 5 weeks later...

64 bit for old OpenGL games/engines is a non-sense. There's no old 64 bit OGL application (the first is Rage64) :D

Use normal 32 bit instead.

Edited by lowenz

Task is not so much to see what no one has yet seen but to think what nobody has yet thought about that which everybody see. - E.S.

Link to comment
Share on other sites

Its not only for old games i have intel gma with ofical 1.1 OpenGL only i need recompiled Mesa 3D 17.0.0 for windows 32/64bit any of them will be good.

But i can't handle to compile it myself, can you upload it for me somwhere?

I don't have a 64 bit OpenGL application installed to test the result of the build process!

Edited by lowenz

Task is not so much to see what no one has yet seen but to think what nobody has yet thought about that which everybody see. - E.S.

Link to comment
Share on other sites

13.0.4 performance level is the same of 17.

 

https://sourceforge.net/projects/msys2/files/REPOS/MINGW/i686/mingw-w64-i686-mesa-13.0.4-1-any.pkg.tar.xz/download

Edited by lowenz

Task is not so much to see what no one has yet seen but to think what nobody has yet thought about that which everybody see. - E.S.

Link to comment
Share on other sites

  • 3 weeks later...

Found a S3TC standard implementation in CygWin archive.

In theory mesa opengl32.dll + dxtn.dll = complete S3TC support in OpenGL 2.1

  • Like 1

Task is not so much to see what no one has yet seen but to think what nobody has yet thought about that which everybody see. - E.S.

Link to comment
Share on other sites

Found a S3TC standard implementation in CygWin archive.

In theory mesa opengl32.dll + dxtn.dll = complete S3TC support in OpenGL 2.1

Unfortunately Mesa codebase makes clear distinction between Cygwin and Win32. Additionally libtxc_dxtn source code does not include a sconscript so Visual Studio is not an option. The only option left is Msys2 cross-compilation and with this, things go bad,

Compilation fails.

$ make
  CC     txc_compress_dxtn.lo
txc_compress_dxtn.c: In function 'storedxtencodedblock':
txc_compress_dxtn.c:287:16: error: 'GL_COMPRESSED_RGB_S3TC_DXT1_EXT' undeclared (first use in this function)
    if (type == GL_COMPRESSED_RGB_S3TC_DXT1_EXT || type == GL_COMPRESSED_RGBA_S3TC_DXT1_EXT) {
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
txc_compress_dxtn.c:287:16: note: each undeclared identifier is reported only once for each function it appears in
txc_compress_dxtn.c:287:59: error: 'GL_COMPRESSED_RGBA_S3TC_DXT1_EXT' undeclared (first use in this function)
    if (type == GL_COMPRESSED_RGB_S3TC_DXT1_EXT || type == GL_COMPRESSED_RGBA_S3TC_DXT1_EXT) {
                                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
txc_compress_dxtn.c: In function 'encodedxtcolorblockfaster':
txc_compress_dxtn.c:376:23: error: 'GL_COMPRESSED_RGBA_S3TC_DXT1_EXT' undeclared (first use in this function)
          if ((type != GL_COMPRESSED_RGBA_S3TC_DXT1_EXT) || (srccolors[j][i][3] > ALPHACUT)) {
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
txc_compress_dxtn.c: In function 'tx_compress_dxtn':
txc_compress_dxtn.c:769:9: error: 'GL_COMPRESSED_RGB_S3TC_DXT1_EXT' undeclared (first use in this function)
    case GL_COMPRESSED_RGB_S3TC_DXT1_EXT:
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
txc_compress_dxtn.c:770:9: error: 'GL_COMPRESSED_RGBA_S3TC_DXT1_EXT' undeclared (first use in this function)
    case GL_COMPRESSED_RGBA_S3TC_DXT1_EXT:
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
txc_compress_dxtn.c:790:9: error: 'GL_COMPRESSED_RGBA_S3TC_DXT3_EXT' undeclared (first use in this function)
    case GL_COMPRESSED_RGBA_S3TC_DXT3_EXT:
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
txc_compress_dxtn.c:817:9: error: 'GL_COMPRESSED_RGBA_S3TC_DXT5_EXT' undeclared (first use in this function)
    case GL_COMPRESSED_RGBA_S3TC_DXT5_EXT:
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make: *** [Makefile:328: txc_compress_dxtn.lo] Error 1

prodea2@DESKTOP-H4RKMNR MINGW64 /home/s3tc
$

Edited by pal1000
Link to comment
Share on other sites

Me and another guy we found a dxtn.dll working with Mesa as you can see in the screenshot.

The main problem is the performance now.

Task is not so much to see what no one has yet seen but to think what nobody has yet thought about that which everybody see. - E.S.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recent Status Updates

    • OrbWeaver

      Does anyone actually use the Normalise button in the Surface inspector? Even after looking at the code I'm not quite sure what it's for.
      · 4 replies
    • Ansome

      Turns out my 15th anniversary mission idea has already been done once or twice before! I've been beaten to the punch once again, but I suppose that's to be expected when there's over 170 FMs out there, eh? I'm not complaining though, I love learning new tricks and taking inspiration from past FMs. Best of luck on your own fan missions!
      · 4 replies
    • The Black Arrow

      I wanna play Doom 3, but fhDoom has much better features than dhewm3, yet fhDoom is old, outdated and probably not supported. Damn!
      Makes me think that TDM engine for Doom 3 itself would actually be perfect.
      · 6 replies
    • Petike the Taffer

      Maybe a bit of advice ? In the FM series I'm preparing, the two main characters have the given names Toby and Agnes (it's the protagonist and deuteragonist, respectively), I've been toying with the idea of giving them family names as well, since many of the FM series have named protagonists who have surnames. Toby's from a family who were usually farriers, though he eventually wound up working as a cobbler (this serves as a daylight "front" for his night time thieving). Would it make sense if the man's popularly accepted family name was Farrier ? It's an existing, though less common English surname, and it directly refers to the profession practiced by his relatives. Your suggestions ?
      · 9 replies
    • nbohr1more

      Looks like the "Reverse April Fools" releases were too well hidden. Darkfate still hasn't acknowledge all the new releases. Did you play any of the new April Fools missions?
      · 5 replies
×
×
  • Create New...