Line 241:
Line 241:
|-
|-
| 1
| 1
−
| Input buffer address
+
| Input buffer address.
|-
|-
| 2
| 2
−
| Output buffer address
+
| Output buffer address.
|-
|-
| 3
| 3
−
| Size
+
| Total bytes to copy, not including gaps.
|-
|-
| 4
| 4
−
| Input [[GPU|dimensions]]?
+
| Bits 0-15: Size of input line, in bytes. Bits 16-31: Gap between input lines, in bytes.
|-
|-
| 5
| 5
−
| Output dimensions?
+
| Same as 4, but for the output.
|-
|-
| 6
| 6
−
| Flags, normally this is 0x8, with bit2 optionally set when either of the dimensions fields are set.
+
| Flags, corresponding to the [[GPU/External_Registers#Transfer_Engine|Transfer Engine flags]]. However, for TextureCopy commands, bit 3 is always set, bit 2 is set if any output dimension is smaller than the input, and other bits are always 0.
|-
|-
| 7
| 7
Line 262:
Line 262:
|}
|}
−
This command is similar to cmd3. It also writes to the [[GPU]] registers at 0x1EF00C00. It's unknown where the difference is.
+
This command is similar to cmd3. It also triggers the [[GPU/External_Registers#Transfer_Engine|GPU Transfer Engine]], but setting the TextureCopy parameters.
== Flush Cache Regions ==
== Flush Cache Regions ==