Block linear memory ordering of texture data techniques
First Claim
1. A non-transitory computer-readable medium storing a plurality of instructions which when executed cause a computing device to implement a method comprising:
- computing a coordinate in gobs of a texel as a function of a texel coordinate and a gob dimension in texels, wherein a dimension of each gob is a fixed number of bytes, and a plurality of gobs are a fixed size of a page of a memory space;
computing a coordinate in blocks of said texel as a function of said coordinate in gobs of said texel and a block dimension in gobs, wherein a dimension of each block is a variable number of said gobs but constant for a given mipmap level;
sequencing a plurality of blocks as a function of said coordinate in gobs of said texel, an image dimension in gobs, said coordinate in blocks of said texel and said block dimension in gobs, wherein each block is arranged in a given order of gobs;
sequencing a plurality of gobs in each of said plurality of blocks as a function of said coordinate in gobs and said block dimension in gobs, wherein each gob is arranged in a given order of bytes; and
computing a gob offset value as a function of said sequencing said plurality of block, said block dimension in gobs and said sequencing said plurality of gobs.
0 Assignments
0 Petitions
Accused Products
Abstract
A method of organizing memory for storage of texture data, in accordance with one embodiment of the invention, includes accessing a size of a mipmap level of a texture map. A block dimension may be determined based on the size of the mipmap level. A memory space (e.g., computer-readable medium) may be logically divided into a plurality of whole number of blocks of variable dimension. The dimension of the blocks is measured in units of gobs and each gob is of a fixed dimension of bytes. A mipmap level of a texture map may be stored in the memory space. A texel coordinate of said mipmap level may be converted into a byte address of the memory space by determining a gob address of a gob in which the texel coordinate resides and determining a byte address within the particular gob.
60 Citations
11 Claims
-
1. A non-transitory computer-readable medium storing a plurality of instructions which when executed cause a computing device to implement a method comprising:
-
computing a coordinate in gobs of a texel as a function of a texel coordinate and a gob dimension in texels, wherein a dimension of each gob is a fixed number of bytes, and a plurality of gobs are a fixed size of a page of a memory space; computing a coordinate in blocks of said texel as a function of said coordinate in gobs of said texel and a block dimension in gobs, wherein a dimension of each block is a variable number of said gobs but constant for a given mipmap level; sequencing a plurality of blocks as a function of said coordinate in gobs of said texel, an image dimension in gobs, said coordinate in blocks of said texel and said block dimension in gobs, wherein each block is arranged in a given order of gobs; sequencing a plurality of gobs in each of said plurality of blocks as a function of said coordinate in gobs and said block dimension in gobs, wherein each gob is arranged in a given order of bytes; and computing a gob offset value as a function of said sequencing said plurality of block, said block dimension in gobs and said sequencing said plurality of gobs. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11)
-
Specification