On Sun, 2004-06-06 at 20:03 -0700, Mike Mestnik wrote: > I found that "rb3d_coloroffset:0x1c40" gets emited in both the [1]client > and the [2]DRM. > > 1. At init time and 3 other places. > 2. At emit state from the ctx. > > I was wondering how I should procede in making changes to the way this reg > gets used(how to set it to a diffrent value, globaly). I think the ctx is > part of the seara? I could just change it there and cause a state update. > > > The four places it's emited in the client are... > 1. At init, a good time to set state any way. > 2. When moving windows(lock contention). > 3. Just for ?fun? in _ioctl.c > 4. In _state.c > > I don't know why there is direct hardware access in _ioctl.c seams too me > like the place to stay-away from that kinda thing.
Clients only have read access to the hardware registers. They can only have the DRM write to the hardware via state atoms, of which ctx is one. -- Earthling Michel DÃnzer | Debian (powerpc), X and DRI developer Libre software enthusiast | http://svcs.affero.net/rm.php?r=daenzer ------------------------------------------------------- This SF.Net email is sponsored by the new InstallShield X. >From Windows to Linux, servers to mobile, InstallShield X is the one installation-authoring solution that does it all. Learn more and evaluate today! http://www.installshield.com/Dev2Dev/0504 -- _______________________________________________ Dri-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dri-devel