dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: bugzilla-daemon@freedesktop.org
To: dri-devel@lists.freedesktop.org
Subject: [Bug 42435] Suspected loss of varyings between shaders
Date: Wed, 02 Nov 2011 00:31:52 +0000	[thread overview]
Message-ID: <bug-42435-502-YucTsvC3Cd@http.bugs.freedesktop.org/> (raw)
In-Reply-To: <bug-42435-502@http.bugs.freedesktop.org/>

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

--- Comment #6 from Alexander Sabourenkov <screwdriver@lxnt.info> 2011-11-01 17:31:52 PDT ---
Created attachment 53028
  --> https://bugs.freedesktop.org/attachment.cgi?id=53028
xterm corruption screenshot

xterm corruption screenshot, got it right after I first run those shaders:

#version 120
#line 2 0

uniform float posz;
uniform float width;
attribute vec2 posn;

varying float idx;

void main() { 
    vec2 posn2 = posz*posn;
    idx = posn2.x/width;
    gl_Position = gl_ModelViewProjectionMatrix*vec4(posn2.x, posn2.y, 0.0,
1.0);
    gl_PointSize = posz;
}
#version 120
#line 2 0
uniform sampler2D ansi;

varying float idx;

void main() {
    vec2 pc = gl_PointCoord;
    gl_FragColor = texture2D(ansi, vec2(0.5, 0));
}

 - got grey screen as expected, and then reset fragment shader back to 

#version 120
#line 2 0
uniform sampler2D ansi;

varying float idx;

void main() {
    vec2 pc = gl_PointCoord;
    gl_FragColor = texture2D(ansi, vec2(idx, 0));
}

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

  parent reply	other threads:[~2011-11-02  0:31 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-31 14:40 [Bug 42435] New: Suspected loss of varyings between shaders bugzilla-daemon
2011-10-31 14:43 ` [Bug 42435] " bugzilla-daemon
2011-10-31 14:50 ` bugzilla-daemon
2011-11-01  9:42 ` bugzilla-daemon
2011-11-01 22:27 ` bugzilla-daemon
2011-11-01 22:28 ` bugzilla-daemon
2011-11-02  0:31 ` bugzilla-daemon [this message]
2011-11-02  0:53 ` bugzilla-daemon
2011-11-02  0:54 ` bugzilla-daemon
2011-11-02  1:03 ` bugzilla-daemon
2011-11-02  1:40 ` bugzilla-daemon
2011-11-02  1:41 ` bugzilla-daemon
2011-11-02  4:56 ` bugzilla-daemon
2011-11-02  7:41 ` bugzilla-daemon
2012-02-25 22:26 ` bugzilla-daemon
2012-02-26 15:29 ` bugzilla-daemon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-42435-502-YucTsvC3Cd@http.bugs.freedesktop.org/ \
    --to=bugzilla-daemon@freedesktop.org \
    --cc=dri-devel@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox