A method, system, and computer program product are provided for texture
tiling with adjacent information. Adjacency information is supplied for
one or more potential tiling directions. In one example, adjacency
information is supplied for eight potential tiling directions radiating in
eight different directions relative to an original texture image. In
another example, adjacency information is supplied for three potential
tiling directions. The present invention provides a solution that allows
the specification of a texture image as a border to another for texture
tiling purposes. This means that when texture addressing extends beyond
the region within a texture map another texture image is addressed. During
texture processing, in mapping a graphics primitive to adjacent border
textures, two steps are carried out. The first step evaluates texture
coordinate values to determine when texture coordinates are outside a
range of a base texture image being texture mapped. The second step
determines which adjacent border texture corresponds to the texture
coordinates evaluated to be outside the base image. This determination is
made using adjacency information which identifies the direction of the
adjacent border texture relative to the base image.