-
Notifications
You must be signed in to change notification settings - Fork 239
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor common options #817
Refactor common options #817
Conversation
@MarkCallow for your review. |
c2d177c
to
f47584e
Compare
@wasimabbas-arm Sorry for the delay. I am working on the 4.3-beta1 release. I haven't reviewed yet but I did notice a couple of things from the description you wrote: thread-count and normal-mode will be needed also by encode-astc, right? When you say rename Before we proceed any further please create a short document describing your plans: what tools, what options apply to them, will we support normal_mode (the 3 channel to 2 channel conversion anyway) and normalization for uncompressed textures, if so, for what formats,what new options are needed (normalization), etc. Suggest a Google doc. Once done share it with the TSG for feedback. |
Is PR #810 dependent on this? |
@MarkCallow https://docs.google.com/document/d/1bIsYcornoFjVVLuBGNX6j0cIooYJAwXBPngl0iNmOu4/edit?usp=sharing is a document I created with my proposal. Please have a look. Haven't worked with google docs before so not sure how the permissions work. You probably need to request it. |
@wasimabbas-arm please rebase this and make sure it follows the proposal you wrote. Also rename I think these change are orthogonal to the commands presented to the user. It is a good idea to separate the utilities for each type of encoding and deflate from any of the ktx apps. Let's get this done. |
Looks like there has been a lot of changes since I made this PR. Will take me a while to rebase and make the required edits. On it. |
f47584e
to
ca5113d
Compare
For the failing tests, I have tried to fix those in the CTS but looks like @MarkCallow you have had a go at those already especially for Like the test
But I am getting
There is Does the CTS tests need fixing for those as well? |
If none of the changes here affect any of the command outputs, you need to
The last step updates the CTS reference in your branch and the PR to point at what is checked out in If the changes affect any command output, you need to:
|
@wasimabbas-arm are the tests working for you locally? Did you have to modify any of them? |
@MarkCallow No they don't.
This is the same list as what fails in TravisCI This time once I have pushed the
I think I know what was happening before. I was doing this process locally. I will do |
There is no need to commit changes to the CTS repo to test them. Nor is there any need to update the reference in your KTX-Software workarea. Simply make the changes in the
Check your build directory name. What I wrote in the example is the standard place used by You can use the same command to regenerate the golden files for the test. Simply add |
Here is what I see. I do When I go back into Anyways since I have pushed in an updated reference to
Cool thanks for pointing this one out. I was copy pasting the command directly onto the tool and copying its output and then updating the golden with it. |
Ah here we go. The script has
So it is putting you back on the reference of the submodule. I think this is problematic for the reason I mentioned above. You can't work on this repo locally. |
The script is normally used in CI which starts with a blank slate. Since You can workaround this by committing the new reference ( I almost always generate and use an Xcode project hence this has not been an issue for me. |
Thats what I have done now. But at least the mystery is solved :) Now back to the problem. Any thoughts on the following tests failing. I haven't looked deep enough yet but my changes shouldn't introduce anything that results in that. (famous last words)
|
None. Sorry. Suggest you run them directly with |
Some of the tests I can understand they are related to moving |
Use About
EDIT: I decided a separate PR is better. See #899. |
Thank you. I have eyes now :)
Looks like the order of these parameters is changed. I think this will need a PR into the |
Specifically the following tests are failing, all something to do with Does all these need changes to the golden files in tests/cts? |
Yes you will need a PR to KTX-Software-CTS and once the PR is created you will have to push an update to the tests/cts reference to this PR. I think options are processed in the order they appear when the Combine template is called. That order will directly affect the ordering of the options listed in KTXwriterScParams. The order in the help text depends on the order the
You either need to change the ordering or generate new golden files. |
@MarkCallow Most tests are passing now but some linux targets in TravisCI are failing to boot with
Doesn't sound related. Any idea? |
It is not related. This is happening during |
@MarkCallow If there is no more concerns. this one is ready to be merged. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here is the rest of my review.
Fix various @snippet references that were not updated to reflect file and option name changes in PR #817. Add new encode_utils files to ktxtool target sources to make visible in IDE. Reorganize encoding options and improve explanations in `ktx create` and `ktx encode` man pages. Changes in `ktx encode` documentation are a pre-cursor to adding ASTC support. Full proposed documentation is there but ASTC portions are commented out. This was proposed in a previously distributed e-mail.
This PR moves
thread-count
,noSSE
andnormal-mode
from basisOptionsCodec
to basis utils and renamesOptionsCodec
toBasisCodec
.This is required in prepartion for #810 PR, where we are separating basis
encode
fromencode-astc
.If you read the PR by each commit separately it will make more sense.