GPU/Shader Instruction Set: Difference between revisions
m mild cleanup |
DP4I? |
||
Line 27: | Line 27: | ||
| 0x7 | | 0x7 | ||
| Source 1 register (SRC1) | | Source 1 register (SRC1) | ||
|- | |||
| 0x13 | |||
| 0x2 | |||
| Index (IDX) | |||
|- | |||
| 0x15 | |||
| 0x5 | |||
| Destination register (DST) | |||
|- | |||
| 0x1A | |||
| 0x6 | |||
| Opcode | |||
|} | |||
Format 1i : (used for register instructions) | |||
{| class="wikitable" border="1" | |||
|- | |||
! Offset | |||
! Size (bits) | |||
! Description | |||
|- | |||
| 0x0 | |||
| 0x7 | |||
| Operand descriptor ID (DESC) | |||
|- | |||
| 0x7 | |||
| 0x7 | |||
| Source 1 register (SRC1) | |||
|- | |||
| 0xE | |||
| 0x5 | |||
| Source 2 register (SRC2) | |||
|- | |- | ||
| 0x13 | | 0x13 | ||
Line 163: | Line 195: | ||
| MOV | | MOV | ||
| Moves value from one register to another; DST = SRC1. | | Moves value from one register to another; DST = SRC1. | ||
|- | |||
| 0x18 | |||
| 1i | |||
| DP4I? | |||
| Computes dot product on 4-component vectors; DST = SRC1.SRC2 ? | |||
|- | |- | ||
| 0x21 | | 0x21 |