Dolphin, the GameCube and Wii emulator - Forums
Log spewing errors (HiresTextures.cpp) - Printable Version

+- Dolphin, the GameCube and Wii emulator - Forums (https://forums.dolphin-emu.org)
+-- Forum: Dolphin Emulator Discussion and Support (https://forums.dolphin-emu.org/Forum-dolphin-emulator-discussion-and-support)
+--- Forum: Support (https://forums.dolphin-emu.org/Forum-support)
+--- Thread: Log spewing errors (HiresTextures.cpp) (/Thread-log-spewing-errors-hirestextures-cpp)



Log spewing errors (HiresTextures.cpp) - Kamikaze_Ice - 02-21-2016

I finally figured out how to actually use the logging feature (I'm lazy).
Anyways I was working on getting screenshots so I could compare various shaders and scaling options in Xenoblade. After taking the screenshots I wanted at 1xIR and 3xIR with original textures I loaded THIS custom texture pack.

Here is what I see in my log window:
Log when using DDS version: (Show Spoiler)
log when using PNG version: (Show Spoiler)
I reported this to the texture pack thread, and Bighead (current maintainer) replied with the following:
(02-21-2016, 12:20 AM)Bighead Wrote: Maybe a bug in Dolphin's texture validation? Only a dev would know for sure. Most of those look like false alarms, considering a dimension of 0 isn't even possible, and 22x22 would not be a correct mipmap for a texture of 64x64 no matter what integer it was scaled at (unless it was scaled at 22x, which no mipmap texture is scaled that large in this pack I think?). The only error in there that is correct is the one that mentions the aspect is off (11.45 vs 12).

Edit: With proper math, "unless it was scaled at 11x", not 22x. And it just so happens that texture is scaled at 11x. It's correct in the PNG pack, but it can't be correct in the DDS pack because 22 is not a multiple of 4. That's just one of the oddities of using DDS, there are times a texture cannot have the proper aspect/dimensions. The texture itself could probably just be rescaled with an even number instead (like 8x) and the mipmap levels would be correct for both formats.
Note: At the time of my post in that thread, I did not include the PNG log as it was still downloading. Bighead may have something different to say when he sees the PNG log.
PNG version finished and tested right before this post, and I will be posting this log in that thread after I finish making this thread.

I primarily use Ishiiruka (for the shaders), but this also happens in dev builds--logs are from Developer Build 4.0-8965. My oldest build, 4.0-8696, also shows this.


So ultimately, I'd like some confirmation if this is indeed a false positive. And if not, I'll need to figure out how to make a proper bug report (unless someone would be kind enough to make one on my behalf  Blush )

*Kami hopes he is posting this in the forum section it belongs in*