DEPTHF

Loads, texture reads and special instructions

fixed bit field field the encoding fixes should be

Encoding

6362616059585756555453525150494847464544434241403938373635343332
11111011skipinv11src0_extendsrc1_extsrc2_extnoschedpredtwo_sidedfeedbacksrc0_bank
313029282726252423222120191817161514131211109876543210
src1_banksrc2_bankdest_nsrc0_nsrc1_nsrc2_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.

Fields

FieldBitsThe Sail reads it in
skipinv55
src0_ext51Bit(51)
end50
src1_ext49
src2_ext48
nosched43
pred42:41
two_sided37
feedback36:35
src0_bank34Bit(34)
src1_bank31:30
src2_bank29:28
dest_n27:21
src0_n20:14execute_DEPTHF
src1_n13:7
src2_n6:0

Operation Sail

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).