Skip to content

Commit

Permalink
Build script documentation
Browse files Browse the repository at this point in the history
S3TC integration lands with Mesa 17.3.
It is still needed to enable S3TC texture cache though.
  • Loading branch information
pal1000 committed Nov 11, 2017
1 parent dc0896c commit e492c01
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion buildscript/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ Optional, it reduces LLVM build size as it works with single configuration. Unli
If used, extract Ninja in `.\ninja`. My script asks if you want to do this before starting LLVM build. LLVM must be built in release mode with install target. This build script does it automatically or you can look [here](https://wiki.qt.io/MesaLlvmpipe).
- S3 texture compression library source code;

S3 texture compression library is optional. Build it only if you need it. Mesa master branch integrated it, now that the S3TC patent expired. It implements 5 S3 texture compression extensions. You will need to clone S3 texture compression library source code repository using git. Go to folder where you installed git and open git-cmd.bat. Change current folder to dependencies dropping folder, the one I called `.`. Execute `git clone git://people.freedesktop.org/~mareko/libtxc_dxtn dxtn`. It is also recommended that before building Mesa to enable S3TC texture cache by modifying inside Mesa source code in src/gallium/drivers/llvmpipe/lp_tex_sample.h the value of LP_USE_TEXTURE_CACHE to 1. It should become
S3 texture compression library is optional. Build it only if you need it. Mesa 17.3 integrated it, now that the S3TC patent expired, but you still need to enable S3TC texture cache though. libtxc_dxtn implements 5 S3 texture compression extensions. You will need to clone S3 texture compression library source code repository using git. Go to folder where you installed git and open git-cmd.bat. Change current folder to dependencies dropping folder, the one I called `.`. Execute `git clone git://people.freedesktop.org/~mareko/libtxc_dxtn dxtn`.

It is recommended that before building Mesa to enable S3TC texture cache by modifying inside Mesa source code in src/gallium/drivers/llvmpipe/lp_tex_sample.h the value of LP_USE_TEXTURE_CACHE to 1. It should become

`#define LP_USE_TEXTURE_CACHE 1`

Expand Down
5 changes: 4 additions & 1 deletion relnotes.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
### Build script
- Mesa3D version and branch detection code cleanup.
- Mesa3D version and branch detection code cleanup.

### Build script documentation
- S3TC integration landed in Mesa 17.3.

0 comments on commit e492c01

Please sign in to comment.