[Mesa-dev] [Bug 79783] Distorted output in obs-studio where other vendors "work"
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Fri Sep 18 10:44:39 PDT 2015
https://bugs.freedesktop.org/show_bug.cgi?id=79783
--- Comment #7 from gregory.hainaut at gmail.com ---
After further investigation, the issue comes from the deadcode optimization of
the input (in the IR tree).
Just disabling the optimization fixes my basic testcase (see a quick patch
below). It remains 2 open questions
1/ I think the support of location for Interface Block was added in
ARB_enhanced_layouts. If I'm correct, it isn't legal to partially optimize an
Interface Block. But I'm not sure.
2/ As far as I understand, the separate state isn't known at the compilation
(only the link phase). So we potentially lose the varying optimization even for
standard program (potentially it is done at link time).
diff --git a/src/glsl/opt_dead_code.cpp b/src/glsl/opt_dead_code.cpp
index f45bf5d..ad0403c 100644
--- a/src/glsl/opt_dead_code.cpp
+++ b/src/glsl/opt_dead_code.cpp
@@ -125,6 +125,10 @@ do_dead_code(exec_list *instructions, bool
uniform_locations_assigned)
}
}
+ if (entry->var->data.mode == ir_var_shader_in) {
+ continue;
+ }
+
entry->var->remove();
progress = true;
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20150918/850a8027/attachment.html>
More information about the mesa-dev
mailing list