Skip to content

Fix handling of DFD linear qualifier#1158

Merged
MarkCallow merged 8 commits intomainfrom
issue1156
Apr 21, 2026
Merged

Fix handling of DFD linear qualifier#1158
MarkCallow merged 8 commits intomainfrom
issue1156

Conversation

@MarkCallow
Copy link
Copy Markdown
Collaborator

Fix ktx create to set the linear qualifier according to the transfer function and channel id, instead of always setting it to the default value for the output VkFormat.

Fix the validator to allow values that differ from the default provided they comply with the KTX specification.

Fixes #1156.

* Fix command_create to write LINEAR qualifier when TF of UNORM texture
  is non-linear.

* Fix validate to
  - Allow LINEAR qualifier values differing from format default when
  TF is non-linear.
  - Check for non-zero LINEAR qualifier when TF is linear.

* Update CTS reference for new tests.

Fixes #1156.
@MarkCallow MarkCallow merged commit 3148f72 into main Apr 21, 2026
41 checks passed
@MarkCallow MarkCallow deleted the issue1156 branch April 21, 2026 06:47
@cwfitzgerald
Copy link
Copy Markdown

Thanks for all the help with this!

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.

Problems with handling of DFD linear qualifier

2 participants