[Mesa-dev] [Bug 79783] Distorted output in obs-studio where other vendors "work"

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Sep 17 00:33:16 PDT 2015


https://bugs.freedesktop.org/show_bug.cgi?id=79783

gregory.hainaut at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gregory.hainaut at gmail.com

--- Comment #5 from gregory.hainaut at gmail.com ---
(In reply to Ilia Mirkin from comment #4)
> (In reply to gregory.hainaut from comment #3)
> > Unfortunately I don't know if there is any
> > possibility to dump VS asm code with Nouveau.
> 
> NV50_PROG_DEBUG=1 (assuming you've built mesa with --enable-debug) should
> dump the TGSI, nv50 ir (post optimizations and, separately, post-RA), and
> the actual instruction stream.
> 
> NV50_PROG_OPTIMIZE=0 will disable all of the nv50 ir optimizations, =1 will
> enable some of them, =2 will enable most of them (and =3 should be
> everything).

Greatly thanks you for the info. It is very useful.

I think the issue is on the fragment shader input optimization. 

My fs shader strech a texture. 

-----
in SHADER
{
    vec4 p;
    vec2 t;
} PSin;

out = texture(TextureSampler, PSin.t);
-----

Here the dump of the ASM (TGSI?). (Generated with the hack to disable flat
optimization)

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.

-- 
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/20150917/fe02ac2a/attachment.html>


More information about the mesa-dev mailing list