From: Greg H. <hu...@us...> - 2001-07-18 06:07:06
|
CVSROOT: /cvsroot/chromium Module name: cr Repository: cr/util/ Changes by: humper@usw-pr-cvs1. 01/07/17 23:07:05 Log message: Implemented byte-swapping. This has been tested from IRIX->WINDOWS and Linux->Windows (to make sure everything still ran OK on the same endiannesses). I tested it with the pack SPU and the Tilesort SPU, and everything was hunky dory with fonttest and atlantis (running over a DSL line, got 0.6 FPS on atlantis!) Also, fixed a bug where parallel API commands were not being broadcast by the tilesort SPU (whoops!) All connections are now brokered through the mothership, which is how the client figures out the server's endianness. All the swapping work is done by the client, including the swapping of the return values of round-trip glGet() calls in the pack SPU. That was the biggest kludge of this whole thing, but it appears to work OK. None of this code has been tested on Windows (I've been using an out-of-date server on Windows that just expects to get everything in its native endianness, which is exactly what's happening). Modified files: cr/crserver/: Makefile server_get.py server_simpleget.py cr/include/: cr_endian.h cr_pack.h cr/packer/: Makefile pack_buffer.c pack_header.py pack_swap.py pack_swap_map.c pack_swap_texture.c packer.h packer.py packer_bbox.py packer_defs.py cr/spu/pack/: Makefile pack.py packspu.h packspu_client.c packspu_get.py packspu_init.c packspu_net.c packspu_pixel.py packspu_special cr/spu/tilesort/: diffapi.py tilesort.py tilesort_special tilesortspu.h tilesortspu_bcast.c tilesortspu_beginend.c tilesortspu_client.c tilesortspu_flush.c tilesortspu_init.c tilesortspu_material.c tilesortspu_pinch.c tilesortspu_pixels.c tilesortspu_rect.c tilesortspu_swap.c cr/util/: endian.c net.c tcpip.c util.def Added files: cr/crserver/: get_components.py get_sizes.py cr/packer/: pack_init.c Revision Changes Path 1.16 +1 -1 cr/crserver/Makefile 1.6 +4 -60 cr/crserver/server_get.py 1.11 +1 -279 cr/crserver/server_simpleget.py 1.2 +43 -0 cr/include/cr_endian.h 1.15 +2 -0 cr/include/cr_pack.h 1.16 +1 -0 cr/packer/Makefile 1.13 +9 -1 cr/packer/pack_buffer.c 1.16 +2 -0 cr/packer/pack_header.py 1.2 +1 -1 cr/packer/pack_swap.py 1.2 +8 -8 cr/packer/pack_swap_map.c 1.2 +3 -3 cr/packer/pack_swap_texture.c 1.6 +0 -11 cr/packer/packer.h 1.17 +1 -1 cr/packer/packer.py 1.10 +1 -1 cr/packer/packer_bbox.py 1.10 +1 -0 cr/packer/packer_defs.py 1.11 +1 -1 cr/spu/pack/Makefile 1.11 +2 -2 cr/spu/pack/pack.py 1.6 +3 -0 cr/spu/pack/packspu.h 1.5 +29 -3 cr/spu/pack/packspu_client.c 1.8 +69 -1 cr/spu/pack/packspu_get.py 1.5 +10 -1 cr/spu/pack/packspu_init.c 1.15 +31 -11 cr/spu/pack/packspu_net.c 1.4 +24 -3 cr/spu/pack/packspu_pixel.py 1.10 +1 -0 cr/spu/pack/packspu_special 1.4 +9 -2 cr/spu/tilesort/diffapi.py 1.8 +2 -2 cr/spu/tilesort/tilesort.py 1.13 +7 -0 cr/spu/tilesort/tilesort_special 1.18 +1 -0 cr/spu/tilesort/tilesortspu.h 1.8 +169 -8 cr/spu/tilesort/tilesortspu_bcast.c 1.9 +57 -8 cr/spu/tilesort/tilesortspu_beginend.c 1.6 +60 -11 cr/spu/tilesort/tilesortspu_client.c 1.16 +131 -47 cr/spu/tilesort/tilesortspu_flush.c 1.16 +5 -1 cr/spu/tilesort/tilesortspu_init.c 1.3 +32 -4 cr/spu/tilesort/tilesortspu_material.c 1.8 +42 -6 cr/spu/tilesort/tilesortspu_pinch.c 1.4 +8 -1 cr/spu/tilesort/tilesortspu_pixels.c 1.3 +8 -1 cr/spu/tilesort/tilesortspu_rect.c 1.8 +16 -2 cr/spu/tilesort/tilesortspu_swap.c 1.2 +7 -0 cr/util/endian.c 1.23 +13 -1 cr/util/net.c 1.17 +24 -1 cr/util/tcpip.c 1.19 +1 -0 cr/util/util.def |