Skip to content

Update basisu to v2.1.0#1170

Merged
MarkCallow merged 10 commits into
mainfrom
update_basisu_to_2_1_0
May 14, 2026
Merged

Update basisu to v2.1.0#1170
MarkCallow merged 10 commits into
mainfrom
update_basisu_to_2_1_0

Conversation

@MarkCallow
Copy link
Copy Markdown
Collaborator

No description provided.

…hronosGroup/basis_universal.git external/basis_universal

subrepo:
  subdir:   "external/basis_universal"
  merged:   "975391104"
upstream:
  origin:   "https://github.com/KhronosGroup/basis_universal.git"
  branch:   "fixes_for_ktx"
  commit:   "975391104"
git-subrepo:
  version:  "0.4.9"
  origin:   "https://github.com/MarkCallow/git-subrepo.git"
  commit:   "4f60dd7"
* Remove check for unsupported stream semantic version in UASTC 6x6i as,
  with this update, it is now supported.
* Adapt to member name changes in basisu_encoder cparams class.
Only define the variable when BASISU_WASI_THREADS is defined.
subrepo:
  subdir:   "external/basis_universal"
  merged:   "a660e7be1"
upstream:
  origin:   "https://github.com/KhronosGroup/basis_universal.git"
  branch:   "fixes_for_ktx"
  commit:   "a660e7be1"
git-subrepo:
  version:  "0.4.9"
  origin:   "https://github.com/MarkCallow/git-subrepo.git"
  commit:   "4f60dd7"
@MarkCallow MarkCallow mentioned this pull request May 14, 2026
@solbjorn
Copy link
Copy Markdown

Pls make sure you always handle m_ktx2_and_basis_srgb_transfer_function correctly as BasisU 2.0 changed the default value (unless the branch you're based this PR on handles it differently) (just a reminder from my comment under the previous PR).

Also, why not the HEAD commit of BasisU, but HEAD~46? I've seen several fixes there in the last couple weeks which might be important (can't say for sure).

@MarkCallow
Copy link
Copy Markdown
Collaborator Author

MarkCallow commented May 14, 2026

Pls make sure you always handle m_ktx2_and_basis_srgb_transfer_function correctly as BasisU 2.0 changed the default value (unless the branch you're based this PR on handles it differently) (just a reminder from my comment under the previous PR).

Looking into this. Thanks for pointing it out again.

Also, why not the HEAD commit of BasisU, but HEAD~46? I've seen several fixes there in the last couple weeks which might be important (can't say for sure).

Because we want the latest release for more stability especially as we are about to make a release.

It previously defaulted to false to false so this was not necessary.
@MarkCallow
Copy link
Copy Markdown
Collaborator Author

MarkCallow commented May 14, 2026

Pls make sure you always handle m_ktx2_and_basis_srgb_transfer_function correctly as BasisU 2.0 changed the default value (unless the branch you're based this PR on handles it differently) (just a reminder from my comment under the previous PR).

I committed a change to set it to false for non-sRGB but it does not make any difference to the results because basisu_encoder only uses it to determine what transfer function metadata to write to the output file and libktx writes the .ktx2 file itself. The perceptual param controls data handling in the encoder and we were already setting that false.

@MarkCallow MarkCallow merged commit 1dacc4b into main May 14, 2026
41 checks passed
@MarkCallow MarkCallow deleted the update_basisu_to_2_1_0 branch May 14, 2026 08:12
@solbjorn
Copy link
Copy Markdown

@MarkCallow, I see, thanks! Glad it's finally merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants