Re: several bugs in pack/unpacking of textures

Brian Paul <[email protected]> Mon, 11 Apr 2005 09:25:37 -0600
Newsgroups gmane.comp.graphics.chromium.devel
Message-ID <[email protected]>
I just did a quick look into this, you should double-check before 
chaning anything.

Anyway, if you call crPackAlloc() you should use crHugePacket() send 
the message.  crHugePacket() calls the pc->SendHuge() callback.  In 
the case of the Pack SPU, this is the packspuHuge() function.  The 
last thing that function does is to call crPackFree() to deallocate 
the buffer.

You might check that the packer functions which call crPackAlloc() 
also call crHugePacket().

-Brian



Christopher Waters wrote:
> I went through a little more of the packer/unpacker code and tossed in a 
> few more fixes. I also took out one of the "special case" functions, 
> which seems to probably be the only one that 'needed' to be done at all.
> 
> I'm finding some quirks in that crPackFree is not being called in the 
> functions that use crPackAlloc... shouldn't it always be called?
> 
> -Chris
> 
> Brian Paul wrote:
> 
>> Christopher Waters wrote:
>>
>>> I just threw together the other 5.  I'm not checking it in myself 
>>> because I'm only 99% sure it's right, mainly because I've never 
>>> touched the unpacker before, but it was easy enough.  I also fixed 
>>> the function that was just added (GLenum was used in all the 
>>> READ_DATAs, instead of each variable's type)
>>
>>
>>
>> The code looks good to me.  I've checked it in.  Thanks!
>>
>> -Brian
>>
>>
> 
> 
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> Chromium-dev mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/chromium-dev
> 



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click