TEX (uniform handle)

Textures and surfaces

fixed bit field field the encoding fixes should be

Encoding

12712612512412312212112011911811711611511411311211111010910810710610510410310210110099989796
reusewaitrd_barwr_baryieldstall
9594939291908988878685848382818079787776757473727170696867666564
6362616059585756555453525150494847464544434241403938373635343332
313029282726252423222120191817161514131211109876543210
pred.notpred111101100000

bits 15:0: ---- 1111 0110 0000

TEX, TLD, TLD4, TXD and TXQ with the handle in a uniform register: the constant buffer codes with bit 10, the register at 40-45 in place of the constant buffer's reference, bit 91 set, the rest of the fields theirs. CuAssembler's sm_86 records: "TEX.SCR.LL.DC R34, R8, R2, R6, UR4, 2D" (0x00000000099e4f08_3000040602227f60) and "TXQ R35, R20, UR12, TEX_HEADER_DIMENSION, 0x2" (0x00000000080002ff_00000c0014237f6f). One game's programs take the handle from memory: an LDG.64 of a table of handles, R2UR, then UR + 1 = UR >> 20, the sampler's index. Another game's fragment and compute programs sample with TXD this way (0xf6c, with TXD's fields: Lichii's lowering of it)

Runs execute_TEX_U.

Fields

FieldBitsFrom
reuse125:122the decoder
wait121:116the decoder
rd_bar115:113the decoder
wr_bar112:110the decoder
yield109the decoder
stall108:105the decoder
pred.not15the decoder
pred14:12the decoder

Operation Sail

TexU(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 Mesa's NAK (sm70_encode.rs, MIT) and CuAssembler's sm_86 records.