Re: Non-RGBA Texture Storage
On Oct 26, 4:45 pm, crjjrc <crj...@xxxxxxxxx> wrote:
The red book states that some implementations perform faster with
GL_RGBA over GL_RGB thanks to better memory alignment. This suggests
to me that implementations that perform worse do not store the
implicit alpha of 1.0 for GL_RGB textures (otherwise the memory
alignment would be the same). Is this interpretation correct?
Yup. It means internally 8 bits are reserved/undefined and just place
holder for alignment. "pure" 24 bit internal format will save storage
space but means the memory arbiter will be more complicated and there
will be always some extra traffic, etc.. aligned is less hassle.
.
Relevant Pages
- Re: What factors influence required memory alignment?
... preventing such alignment on DOUBLE PRECISION operands. ... point values are packed into a single register and/or memory location. ... The ability to trap misaligned accesses was added to various x86 ... Its slightly easier to catch bugs when an odd address read immediately ... (comp.arch) - Re: [PATCH] Mantaining turnstile aligned to 128 bytes in i386 CPUs
... raw memory bandwidth is governed by RAS cycles. ... This means that the more data you can load into the cpu on the 'read' ... Alignment is critical. ... (freebsd-arch) - Re: [PATCH] Mantaining turnstile aligned to 128 bytes in i386 CPUs
... raw memory bandwidth is governed by RAS cycles. ... This means that the more data you can load into the cpu on the 'read' ... Alignment is critical. ... (freebsd-current) - Re: traumatized by pointer casting
... >> When you cast the array by name to a pointer to struct, ... structure, and after the last member, just not before the first ... the entire structure a multiple of the alignment size. ... That is why the memory allocation functions malloc(), calloc, ... (comp.lang.c) - Re: A malloc question
... reliably store 100 chars followed by a struct in this memory, ... the alignment of p+100 may not be suitable for the struct. ... the paddings for memory alignment are ... malloc() will see a request of 24 byte allocation. ... (comp.lang.c) |
|