You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While investigating the shimmer effect in #270 I noticed that Ninja Gaiden Black sets the NV_PGRAPH_TEXFILTER0_MIPMAP_LOD_BIAS portion of NV_PGRAPH_TEXFILTER0 to a non-zero value in the bugged render pass. At the moment I'm not sure how much this is actually contributing to the corruption, but presumably it at least has some effect that will make the rendering incorrect.
Expected Behavior
Handling should be implemented to match hardware behavior.
I'm not sure if it's safe to assume that the nv2a LOD bias range matches the OpenGL range, but if it does maybe we can just use GL_TEXTURE_LOD_BIAS in pgraph_bind_textures?
GL_TEXTURE_LOD_BIAS
params specifies a fixed bias value that is to be added to the level-of-detail parameter for the texture before texture sampling. The specified value is added to the shader-supplied bias value (if any) and subsequently clamped into the implementation-defined range [−biasmax,biasmax], where biasmax is the value of the implementation defined constant GL_MAX_TEXTURE_LOD_BIAS. The initial value is 0.0.
xemu Version
My near head development version (I'm confident that I have made no changes that would've removed handling of LOD bias)
Version: 0.6.2-109-ghttps://github.com/mborgerson/xemu/commit/a16eea7d86a1cbe5f6c9cfb6b076839abd64ea7dd86
Branch: work
Commit: a16eea7
Date: Sat Mar 12 06:38:59 AM UTC 2022
Bug Description
While investigating the shimmer effect in #270 I noticed that Ninja Gaiden Black sets the
NV_PGRAPH_TEXFILTER0_MIPMAP_LOD_BIAS
portion ofNV_PGRAPH_TEXFILTER0
to a non-zero value in the bugged render pass. At the moment I'm not sure how much this is actually contributing to the corruption, but presumably it at least has some effect that will make the rendering incorrect.Expected Behavior
Handling should be implemented to match hardware behavior.
I'm not sure if it's safe to assume that the nv2a LOD bias range matches the OpenGL range, but if it does maybe we can just use
GL_TEXTURE_LOD_BIAS
inpgraph_bind_textures
?xemu Version
My near head development version (I'm confident that I have made no changes that would've removed handling of LOD bias)
Version: 0.6.2-109-ghttps://github.com/mborgerson/xemu/commit/a16eea7d86a1cbe5f6c9cfb6b076839abd64ea7dd86
Branch: work
Commit: a16eea7
Date: Sat Mar 12 06:38:59 AM UTC 2022
System Information
"cpu": "Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz",
"gl_renderer": "NVIDIA GeForce GTX 1070/PCIe/SSE2",
"gl_shading_language_version": "4.00 NVIDIA via Cg compiler",
"gl_vendor": "NVIDIA Corporation",
"gl_version": "4.0.0 NVIDIA 470.103.01",
"os_platform": "Linux",
"os_version": "Ubuntu 21.10",
Additional Context
No response
The text was updated successfully, but these errors were encountered: