From: bugzilla-daemon@freedesktop.org
To: dri-devel@lists.freedesktop.org
Subject: [Bug 34495] Selecting objects in Blender 2.56 slow with gallium r600 driver
Date: Fri, 1 Jul 2011 09:00:59 -0700 (PDT) [thread overview]
Message-ID: <20110701160059.DB20B130051@annarchy.freedesktop.org> (raw)
In-Reply-To: <bug-34495-502@http.bugs.freedesktop.org/>
https://bugs.freedesktop.org/show_bug.cgi?id=34495
--- Comment #27 from Pierre-Eric Pelloux-Prayer <pelloux@gmail.com> 2011-07-01 09:00:56 PDT ---
(In reply to comment #26)
> @Pierre: After looking at your patch for a while I have the following
> doubts/suggestions:
>
> 1) on _mesa_exec_select_batch() why would you loop through buffer[..] for each
> batch entry? at first sight it seems to me that if there is more than one
> entry, the minZ and maxZ values written by write_hit_record would be the same
> for every entry.
This is what I understood from GL_SELECT behavior : "Both the minimum and
maximum window-coordinate z values of all vertices of the primitives that
intersected the viewing volume"
So by looping over buffer[] I'm trying to find the min/max z for the entry (at
least that was the point, but maybe it's incorrectly done :-))
>
> 2) What happens if the user changes the fbo or any state needed (depth and
> scissor) after calling "glRenderMode(GL_SELECT)"?
What happens if user changes something : it will not work reliably... Thanks to
remind me of this problem which I almost forgot.
Now the necessary state change should be limited :
- GL_DEPTH_TEST : I don't understand why it doesn't work with it enabled, but
it definitely not be changed
- GL_SCISSOR : this one is more annoying, as it's wrong to disable it too
(maybe the user really wants to GL_SELECT on a sub area of the window). But as
glScissor take window coordinates values, those should be changed before
drawing (scissor_width would become : scissor_width * fbo_width / window_width)
- FBO is needed
> Maybe we should create our
> st_select_draw_vbo that makes sure to have the correct state->render using
> st_draw_vbo->restore state. It is possible that this could be a little heavy on
> state changes but it feels safer... Maybe we could implement some kind of
> "state-override" later to make sure we only restore states after exiting
> GL_SELECT mode and still be sure that the end user isn't interfering with our
> GL_SELECT implementation.
The 1st version of the patch had a custom drawing function
('select_draw_func'). Initially I was doing some state changes over there, but
it caused problem in 'vbo_exec_FlushVertices' with this assert :
assert(exec->flush_call_depth == 1);
But sure, it would be safer to have some state check/change over there.
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
next prev parent reply other threads:[~2011-07-01 16:01 UTC|newest]
Thread overview: 76+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-20 7:13 [Bug 34495] New: Selecting objects in Blender 2.56 slow with gallium r600 driver bugzilla-daemon
2011-06-16 16:05 ` [Bug 34495] " bugzilla-daemon
2011-06-16 16:11 ` bugzilla-daemon
2011-06-16 18:51 ` bugzilla-daemon
2011-06-16 22:38 ` bugzilla-daemon
2011-06-17 9:05 ` bugzilla-daemon
2011-06-17 11:28 ` bugzilla-daemon
2011-06-17 19:50 ` bugzilla-daemon
2011-06-17 20:51 ` bugzilla-daemon
2011-06-18 17:12 ` bugzilla-daemon
2011-06-19 3:50 ` bugzilla-daemon
2011-06-20 0:18 ` bugzilla-daemon
2011-06-24 7:33 ` bugzilla-daemon
2011-06-26 5:18 ` bugzilla-daemon
2011-06-27 10:09 ` bugzilla-daemon
2011-06-27 10:10 ` bugzilla-daemon
2011-06-27 13:23 ` bugzilla-daemon
2011-06-27 14:38 ` bugzilla-daemon
2011-06-28 13:53 ` bugzilla-daemon
2011-06-30 17:58 ` bugzilla-daemon
2011-06-30 17:59 ` bugzilla-daemon
2011-07-01 10:02 ` bugzilla-daemon
2011-07-01 10:42 ` bugzilla-daemon
2011-07-01 11:02 ` bugzilla-daemon
2011-07-01 11:06 ` bugzilla-daemon
2011-07-01 11:22 ` bugzilla-daemon
2011-07-01 15:10 ` bugzilla-daemon
2011-07-01 16:00 ` bugzilla-daemon [this message]
2011-07-01 17:07 ` bugzilla-daemon
2011-07-01 17:20 ` bugzilla-daemon
2011-07-01 17:28 ` bugzilla-daemon
2011-07-01 17:33 ` bugzilla-daemon
2011-07-02 7:35 ` bugzilla-daemon
2011-07-02 12:16 ` bugzilla-daemon
2011-07-02 15:51 ` bugzilla-daemon
2011-07-02 15:52 ` bugzilla-daemon
2011-07-02 17:32 ` bugzilla-daemon
2011-07-03 13:23 ` bugzilla-daemon
2011-07-03 17:38 ` bugzilla-daemon
2011-07-04 9:47 ` bugzilla-daemon
2011-07-04 11:28 ` bugzilla-daemon
2011-07-04 21:08 ` bugzilla-daemon
2011-07-05 22:42 ` bugzilla-daemon
2011-07-11 21:58 ` bugzilla-daemon
2011-07-12 9:16 ` bugzilla-daemon
2011-07-12 9:31 ` bugzilla-daemon
2011-07-12 11:08 ` bugzilla-daemon
2011-07-12 20:21 ` bugzilla-daemon
2011-07-12 21:33 ` bugzilla-daemon
2011-07-17 18:45 ` bugzilla-daemon
2011-07-17 21:55 ` bugzilla-daemon
2011-07-31 3:16 ` bugzilla-daemon
2011-08-02 3:44 ` bugzilla-daemon
2011-08-02 11:40 ` bugzilla-daemon
2011-08-02 13:27 ` bugzilla-daemon
2011-08-04 5:06 ` bugzilla-daemon
2011-08-07 20:47 ` bugzilla-daemon
2011-09-06 17:42 ` bugzilla-daemon
2011-09-06 23:54 ` bugzilla-daemon
2011-09-07 2:16 ` bugzilla-daemon
2012-02-25 21:55 ` bugzilla-daemon
2012-02-25 22:58 ` bugzilla-daemon
2013-07-19 13:21 ` bugzilla-daemon
2013-07-19 13:27 ` bugzilla-daemon
2013-07-19 13:34 ` bugzilla-daemon
2013-07-19 14:07 ` bugzilla-daemon
2013-07-26 10:21 ` bugzilla-daemon
2013-08-14 3:07 ` bugzilla-daemon
2013-08-15 17:17 ` bugzilla-daemon
2013-08-15 17:59 ` bugzilla-daemon
2013-08-16 11:14 ` bugzilla-daemon
2013-08-16 12:48 ` bugzilla-daemon
2013-10-24 22:42 ` bugzilla-daemon
2013-10-25 7:37 ` bugzilla-daemon
2013-10-25 9:26 ` bugzilla-daemon
2013-10-25 13:11 ` [Bug 34495] Selecting objects in Blender 2.56 slow due the software gl_select mode 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=20110701160059.DB20B130051@annarchy.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;
as well as URLs for NNTP newsgroup(s).