×

Method for executing graphics Z-compare and pixel merge instructions in a data processor

  • US 5,268,995 A
  • Filed: 11/21/1990
  • Issued: 12/07/1993
  • Est. Priority Date: 11/21/1990
  • Status: Expired due to Term
First Claim
Patent Images

1. In a data processing system, comprising:

  • storage means for storing a plurality of data elements and a plurality of instructions, said plurality of data elements comprising data operands for use with said plurality of instructions;

    execution means for executing a selected type of graphics instructions;

    communications means coupled to said storage means and said execution means, for providing said selected type of graphics instructions to said execution means, said communications means transferring said plurality of data elements between said storage means and said execution means; and

    sequencer means coupled to said communications means for providing a sequence of instruction addresses to said storage means, for retrieving a sequence of instructions for execution by said execution means in response thereto, and for issuing said sequence of instructions to said execution means, said sequencer means also retrieving a required number of data elements from said storage means for each instruction in said sequence of instructions;

    a method for executing a graphics pixel compare instruction to determine whether to display a pixel of a three-dimensional image, comprising the steps of;

    transferring under direction by said sequencer means, a selected number of data operands to said execution means each of said selected data operands comprising one or more values representing a predetermined number of Z-axis coordinates, each of said pixel of said three-dimensional image in an X, Y, and Z Cartesian coordinate system;

    comparing, via said execution means, one or more Z-axis coordinates within a first data operand to one or more z-axis coordinates in a corresponding bit-field position within a second data operand to determine a relative Z-axis position of each of the one or more pixels associated with said one or more Z-axis coordinates;

    encoding, via said execution means, a pixel compare result bit-vector to uniquely represent possible results of comparing each of said corresponding bit-field positions comprising said one or more Z-axis coordinates in each of said first and second operands, said encoding of said pixel compare result bit-vector being designed such that a predefined set of most likely compare results are readily detectable using a single bit test; and

    storing, under direction of said execution means, said pixel compare result bit-vector in said storage means, and using said pixel compare result bit-vector to determine which pixels of said three-dimensional image to display.

View all claims
  • 10 Assignments
Timeline View
Assignment View
    ×
    ×