Skip to content

Conversation

MarkCallow
Copy link
Collaborator

@MarkCallow MarkCallow commented Feb 9, 2024

for all valid VkFormats.

Merge needs to wait until issue #857 is fixed so it can be tested against correct DFDs.

@MarkCallow MarkCallow requested a review from aqnuep February 9, 2024 08:51
@MarkCallow
Copy link
Collaborator Author

@aqnuep there are now a small number of failures in the extract tool tests having to do with extracting X8_D24_UNORM_PACK32 format to .raw files. I suspect it because the previous version of recreate... returned a value of 3 for this format. The new one returns the correct 4. Most likely I just need to regenerate the golden files. What is a good way to examine the content of a .raw file? I can see the current golden file has a size of 192 while the new output is 256 bytes which suggests it is indeed due to the 4 instead of 3.

Apologies for the bug in the previous version of recreate....

I think I'm going to rename the function to reconstructBytesPlane0. I prefer your "reconstruct" and the current name is too long. I think I'll also make it return the value. For dfdutils users I'll have to provide a wrapper for backward API compatibiility.

@aqnuep
Copy link
Collaborator

aqnuep commented Feb 9, 2024 via email

@MarkCallow
Copy link
Collaborator Author

I can see the current golden file has a size of 192 while the new output is 256 bytes which suggests it is indeed due to the 4 instead of 3.

The incorrect bytesPlane0 value messed up the calculation in ktxTexture2_GetImageSize resulting in not writing enough bytes to the raw file. I've updated the golden images in KhronosGroup/KTX-Software-CTS#17. Hopefully I've managed to point this branch at the branch in the CTS. .gitmodules is still pointing at branch main.

@aqnuep
Copy link
Collaborator

aqnuep commented Feb 9, 2024

Hopefully I've managed to point this branch at the branch in the CTS. .gitmodules is still pointing at branch main.

The branch in .gitmodules is the the "tracked" branch. That confused me to in the past, don't worry about it. Only the commit hash the git module points to is relevant.

@MarkCallow MarkCallow merged commit 83b6386 into main Feb 13, 2024
@MarkCallow MarkCallow deleted the fix_bytesPlanw0 branch February 13, 2024 12:55
KaperD pushed a commit to KaperD/KTX-Software that referenced this pull request Feb 21, 2024
of correct result for all valid VkFormats.

Modify mkvkformatfiles to generate the list of valid format names
to populate the table that drives the new test.

Fix dfdutils Doxygen config file to include queries.c in the input.
KaperD pushed a commit to KaperD/KTX-Software that referenced this pull request Feb 22, 2024
of correct result for all valid VkFormats.

Modify mkvkformatfiles to generate the list of valid format names
to populate the table that drives the new test.

Fix dfdutils Doxygen config file to include queries.c in the input.
KaperD pushed a commit to KaperD/KTX-Software that referenced this pull request Feb 22, 2024
of correct result for all valid VkFormats.

Modify mkvkformatfiles to generate the list of valid format names
to populate the table that drives the new test.

Fix dfdutils Doxygen config file to include queries.c in the input.
KaperD pushed a commit to KaperD/KTX-Software that referenced this pull request Feb 22, 2024
of correct result for all valid VkFormats.

Modify mkvkformatfiles to generate the list of valid format names
to populate the table that drives the new test.

Fix dfdutils Doxygen config file to include queries.c in the input.
KaperD pushed a commit to KaperD/KTX-Software that referenced this pull request Feb 22, 2024
of correct result for all valid VkFormats.

Modify mkvkformatfiles to generate the list of valid format names
to populate the table that drives the new test.

Fix dfdutils Doxygen config file to include queries.c in the input.
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