I was just looking at r300 code today for my own system.  A few things
that I think ought to happen for the merge:
- Clean up style.  Unindented blocks of code, weird whitespace (closing
brackets on the same column as the block containing it, rather than the
surrounding block), lack of wrapping at 80 columns, etc.
- r300_emit_unchecked_state should get renamed
(r300_check_and_emit_state?) and its all-caps warnings removed.

What about r300_emit_packet0 instead of r300_emit_unchecked_state and
r300_emit_packet3 instead of r300_emit_raw ? Cause that's what they do.


Things I noticed that aren't top priority:
- DRM_COPY_FROM_USER_UNCHECKED in r300_emit_cliprects should be a
DRM_COPY_FROM_USER, I think.

Hmm.. I have no idea either - could anyone else comment ?

- Axe the comment about "can't afford to let userspace control something
that locks up the graphics card so easily" in R300_CMD_END3D handling.
There are too many ways to hang a graphics card with DRI for us to try
to stop the user from doing so.

Well, nothing wrong for setting goals too high, at least there is something to look up to ;)

- r300_reg_flags should probably be in the dev_priv rather than a
global.

It is for all practical purposes a static array - identical for each r300 device. No reason to waste memory if someone has two cards.


And something I've wondered about for a while:
- Is the __user annotation supposed to mean "this is a value from
userland that should be checked for use" or "this is a pointer to
somewhere in userland that needs to be copy_from_usered before use?"

No idea, someone else should comment on this..

For the client driver code, I'm thinking it would be a good idea to
repocopy it over (thus maintaining CVS history).  If you agree with
this, whenever its time to do that merge we should have a 1-day rest so
that sf.net will make a clean tarball of the current cvsroot, which the
sf.net project admin (you) could grab and hand off to me to put the bits
in the right place in Mesa CVS.

Great, thank you !

                        Vladimir Dergachev


--
Eric Anholt                                     [EMAIL PROTECTED]
http://people.freebsd.org/~anholt/              [EMAIL PROTECTED]


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
--
_______________________________________________
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
--
_______________________________________________
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to