Loads, texture reads and special instructions
fixed bit field field the encoding fixes should be
| 63 | 62 | 61 | 60 | 59 | 58 | 57 | 56 | 55 | 54 | 53 | 52 | 51 | 50 | 49 | 48 | 47 | 46 | 45 | 44 | 43 | 42 | 41 | 40 | 39 | 38 | 37 | 36 | 35 | 34 | 33 | 32 |
| 1 | 1 | 1 | 1 | 1 | 0 | 1 | 1 | skipinv | 1 | 1 | src0_ext | end | src1_ext | src2_ext | nosched | pred | two_sided | feedback | src0_bank | ||||||||||||
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| src1_bank | src2_bank | dest_n | src0_n | src1_n | src2_n | ||||||||||||||||||||||||||
bits 63:0: 1111 1011 x-11 xxxx ---- xxx- --xx xx-- xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx
It is in a group of patterns that may match the same word: the decoder tries them in this order, and the first that matches decodes it: SMP, PHAS, NOP, BR, SMLSI, SMBO, KILL, LIMM, DEPTHF, SPEC, VLDST.
Runs execute_DEPTHF with Form() 0.
| Field | Bits | The Sail reads it in |
|---|---|---|
| skipinv | 55 | |
| src0_ext | 51 | Bit(51) |
| end | 50 | |
| src1_ext | 49 | |
| src2_ext | 48 | |
| nosched | 43 | |
| pred | 42:41 | |
| two_sided | 37 | |
| feedback | 36:35 | |
| src0_bank | 34 | Bit(34) |
| src1_bank | 31:30 | |
| src2_bank | 29:28 | |
| dest_n | 27:21 | |
| src0_n | 20:14 | execute_DEPTHF |
| src1_n | 13:7 | |
| src2_n | 6:0 |
DEPTHF: src0 is the fragment's depth
Src0(SRC0, UInt(Field(14, 7)), Bit(34), Bit(51), 1, 7);
SetType(SRC0, T_F32);
if not_bool(HasDepth()) then throw(Refuse("DEPTHF in a program that doesn't say it writes depth"));
Load(A, SRC0, 1, 0);
if not_bool(Failed()) then DepthWrite(At(A, 0))
Made from ScarletNX's Sail at 166ad3910f80. The Sail and the encodings' file are ScarletNX's (GPL-3.0-or-later); its encodings are from Vita3K's usse_translator_entry.cpp (GPL-2.0-or-later).