Closed coleleavitt closed 3 months ago
for custom close and open shaders
Could you upload the config?
for custom close and open shaders
Could you upload the config?
You have errors in your custom shaders:
window-open
you use niri_tex_next
but there's no such variable in the open shader, the correct one is niri_tex
window-close
you use niri_tex_curr
but there's no such variable in the close shader, the correct one is niri_tex
Issue was fixed, primary issue with screen tearing and artifacting:
debug {
wait-for-frame-completion-before-queueing
}
thanks to @YaLTeR
Failure to Switch to External Monitor (DP-4) & Shader Compilation Errors on Niri 0.1.7 Startup
Description
When starting Niri version 0.1.7 (v0.1.7-59-g324029c) on a system with hybrid graphics (Intel + NVIDIA), shader compilation errors occur for custom close and open shaders. This prevents proper rendering and impacts functionality (not being able to display on DP-4).
Environment
Steps to Reproduce
niri msg outputs
Observed Behavior
Shader compilation errors occur for custom close and open shaders:
[GL] 0:32(25): error: niri_tex_curr' undeclared [GL] 0:32(15): error: no matching function for call to texture2D(error, vec2)'; candidates are: [GL] 0:32(15): error: vec4 texture2D(sampler2D, vec2) [GL] 0:32(15): error: vec4 texture2D(sampler2D, vec2, float)
Similar errors occur for
niri_tex_next
.Expected Behavior
Shaders should compile successfully without errors, allowing proper rendering and display configuration.
Relevant Log Output
Niri Log: https://paste.rs/1vDoC.txt
Additional Context
niri_tex_curr
andniri_tex_next
) in the shader codePossible Causes
Proposed Solutions
Questions for Investigation
Related Threads
https://github.com/YaLTeR/niri/issues/567