-
Notifications
You must be signed in to change notification settings - Fork 235
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
ktxTexture2_DecodeAstc does not check its vkformat parameter #960
Comments
Woops. Looks like at call site I have been using
I had some TODOs, in the decoding bit some for HDR that I won't resolve now but other for using this to make the right This means the PSNR tests usings those specific values for those specific golden files won't be correct either? Having a look where I am using this method in the metrics.
Both Basis and ASTC are using hardcoded RGBA format. So I guess that cancells out when it comes to PSNR. If metrics can be calculated in any specific
Yes the decoder can decode to the right format. From sRGB astc to sRGB image and RGB astc into RGB image etc, including HDR formats (16 and 32bit). |
It is fine, until we add HDR support, for metrics to hardcode passing
Since I should have spotted this when reviewing the original PR. My bad. |
The function needs to check that the provided format is supported by the decoder for the input ASTC format. E.g. an 8-bit UNORM format for UNORM ASTC formats, an 8-bit SRGB format for SRGB ASTC formats and a FLOAT format for ASTC HDR input. Function should return
KTX_INVALID_OPERATION
for a mismatched VkFormat.Actually is there even a point to the
vkformat
parameter? Can the underlying decoder do any conversions?@wasimabbas-arm please fix this. I can't find a way to add you to the Assignees list.
The text was updated successfully, but these errors were encountered: