<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Distorted output in obs-studio where other vendors "work""
href="https://bugs.freedesktop.org/show_bug.cgi?id=79783#c8">Comment # 8</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Distorted output in obs-studio where other vendors "work""
href="https://bugs.freedesktop.org/show_bug.cgi?id=79783">bug 79783</a>
from <span class="vcard"><a class="email" href="mailto:imirkin@alum.mit.edu" title="Ilia Mirkin <imirkin@alum.mit.edu>"> <span class="fn">Ilia Mirkin</span></a>
</span></b>
<pre>(In reply to gregory.hainaut from <a href="show_bug.cgi?id=79783#c5">comment #5</a>)
<span class="quote">> Here the dump of the ASM (TGSI?). (Generated with the hack to disable flat
> optimization)</span >
TGSI (which is DX9-ish assembly type code, but extended well beyond)
<span class="quote">>
> FRAG
> DCL IN[0], GENERIC[0], PERSPECTIVE
> DCL OUT[0], COLOR
> DCL SAMP[0]
> DCL SVIEW[0], 2D, FLOAT
> DCL CONST[1][0]
> DCL TEMP[0..1], LOCAL
> IMM[0] FLT32 { 2.0000, 0.0000, 0.0000, 0.0000}
> 0: MOV TEMP[0].xy, IN[0].xyyy
> 1: TEX TEMP[0], TEMP[0], SAMP[0], 2D
> 2: MOV TEMP[1].xyz, TEMP[0].xyzx
> 3: MUL TEMP[0].x, TEMP[0].wwww, IMM[0].xxxx
> 4: MOV TEMP[1].w, TEMP[0].xxxx
> 5: MOV OUT[0], TEMP[1]
> 6: END
>
> As you can it use the IN[0] whereas I have 2 inputs in the FS. IN[0] is
> likely my position which is [-1;1]. It confirms the strange behavior of my
> previous message.
> My shader doesn't use the parameter p so I guess it was wrongly removed.</span >
You should double-check that it wasn't also eliminated from the relevant vertex
shader. GENERIC[0] should map to whatever GENERIC[0] output in the vertex
shader.
By the way, you may also be interested in MESA_GLSL=dump which dumps out the
mesa glsl ir in various stages.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>