All of lore.kernel.org
 help / color / mirror / Atom feed
From: bugzilla-daemon@freedesktop.org
To: dri-devel@lists.freedesktop.org
Subject: [Bug 98664] Fragment shader while loop causes geometry corruption
Date: Fri, 18 Nov 2016 21:51:01 +0000	[thread overview]
Message-ID: <bug-98664-502-aCminQdLO4@http.bugs.freedesktop.org/> (raw)
In-Reply-To: <bug-98664-502@http.bugs.freedesktop.org/>


[-- Attachment #1.1: Type: text/plain, Size: 1204 bytes --]

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

--- Comment #16 from Roland Scheidegger <sroland@vmware.com> ---
(In reply to Nicolai Hähnle from comment #14)
> I suspect the reason that the blob drivers do it this way is that if you
> don't, you're likely to hit a subtle bug with emit inside control flow. And
> making the effort to exploit the undefined-ness probably pays off very
> rarely, so...

Also, you can do this with dx10, so app developers porting things are somewhat
likely to get it wrong (I suppose that's similar to other such subtle issues
like discard killing your derivatives if you have per-pixel control flow with
gl, but not with dx10).
At least I think so from the description of emit:
https://msdn.microsoft.com/en-us/library/windows/desktop/hh447053(v=vs.85).aspx
"emit causes all declared o# registers to be read out of the Geometry Shader to
generate a vertex." Doesn't say explicitly the registers are still valid
afterwards, but since reading a register usually doesn't nuke the value, the
reg getting undefined would be a side-effect which should have been
mentioned...

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 2243 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

      parent reply	other threads:[~2016-11-18 21:51 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-09 19:17 [Bug 98664] Fragment shader while loop causes geometry corruption bugzilla-daemon
2016-11-09 19:18 ` bugzilla-daemon
2016-11-09 19:18 ` bugzilla-daemon
2016-11-09 19:21 ` bugzilla-daemon
2016-11-16 11:04 ` bugzilla-daemon
2016-11-16 11:44 ` bugzilla-daemon
2016-11-16 15:07 ` bugzilla-daemon
2016-11-16 15:59 ` bugzilla-daemon
2016-11-16 17:03 ` bugzilla-daemon
2016-11-16 21:09 ` bugzilla-daemon
2016-11-17 15:40 ` bugzilla-daemon
2016-11-17 15:56 ` bugzilla-daemon
2016-11-17 17:01 ` bugzilla-daemon
2016-11-17 17:15 ` bugzilla-daemon
2016-11-17 21:57 ` bugzilla-daemon
2016-11-17 22:34 ` bugzilla-daemon
2016-11-18 21:51 ` bugzilla-daemon [this message]

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-98664-502-aCminQdLO4@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.