CVS Update: cr (branch: trunk)

Robert Ellison <[email protected]>
Newsgroups gmane.comp.graphics.chromium.cvs
Message-ID <[email protected]>
CVSROOT:	/cvsroot/chromium
Module name:	cr
Repository:	cr/spu/render/
Changes by:	[email protected].(none)	06/01/24 04:48:22

Log message:
  Fixed a bug in how the crserver recreates contexts.
  
  When the crserver needs to recreate a context (because a new
  context appears that requires more capability than the old, e.g.
  if the original context was created with visBits = CR_RGB_BIT | CR_DOUBLE_BIT
  and the new one requires CR_RGB_BIT | CR_DOUBLE_BIT | CR_DEPTH_BIT),
  the crserver used to just delete the old context and create a more capable
  new one, relying on state differencing to send all the state as needed.
  
  Unfortunately, this only sent simple state - deleting the old context
  also effectively deleted all display lists and textures associated with it.
  Suddenly, any connection using the old context would no longer have access
  to its complex state.
  
  After these changes, the crserver will instead first create a new context,
  sharing complex state with the old one; then the old one will be removed.
  This allows display lists and textures to persist across context recreation.
  
  The render SPU (which is typically the SPU actually creating the new
  context) also had to be changed, to support the sharedContext parameter
  (which was always set to 0 or NULL before).

Modified files:
      cr/crserverlib/:
        server_context.c 
      cr/spu/render/:
        renderspu.c renderspu.h renderspu_agl.c renderspu_glx.c 
        renderspu_wgl.c 
  
  Revision      Changes    Path
  1.20          +17 -3     cr/crserverlib/server_context.c
  1.67          +1 -1      cr/spu/render/renderspu.c
  1.51          +1 -1      cr/spu/render/renderspu.h
  1.15          +2 -1      cr/spu/render/renderspu_agl.c
  1.71          +10 -3     cr/spu/render/renderspu_glx.c
  1.37          +2 -1      cr/spu/render/renderspu_wgl.c



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.