A method for optimizing a cache memory used for multitexturing in a
graphics system is implemented. The graphics system comprises a texture
memory, which stores texture data comprised in texture maps, coupled to a
texture cache memory. Active texture maps for an individual primitive,
for example a triangle, are identified, and the texture cache memory is
divided into partitions. In one embodiment, the number of texture cache
memory partitions equals the number of active texture maps. Each texture
cache memory partition corresponds to a respective single active texture
map, and is operated as a direct mapped cache for its corresponding
respective single active texture map. In one embodiment, each texture
cache memory partition is further operated as an associative cache for
the texture data comprised in the partition's corresponding respective
single active texture map. The cache memory is dynamically re-configured
for each primitive.