mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 19:40:10 +01:00
nak: Use the simplified BAR.SYNC encoding
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24998>
This commit is contained in:
parent
4f2f9c6ab3
commit
bc58620e1e
1 changed files with 19 additions and 17 deletions
|
|
@ -1695,27 +1695,29 @@ impl SM75Instr {
|
|||
}
|
||||
|
||||
fn encode_bar(&mut self, _op: &OpBar) {
|
||||
self.set_opcode(0x31d);
|
||||
self.set_opcode(0xb1d);
|
||||
|
||||
/* src0 == src1 */
|
||||
self.set_reg_src(32..40, SrcRef::Zero.into());
|
||||
// self.set_opcode(0x31d);
|
||||
|
||||
/*
|
||||
* 00: RED.POPC
|
||||
* 01: RED.AND
|
||||
* 02: RED.OR
|
||||
*/
|
||||
self.set_field(74..76, 0_u8);
|
||||
// /* src0 == src1 */
|
||||
// self.set_reg_src(32..40, SrcRef::Zero.into());
|
||||
|
||||
/*
|
||||
* 00: SYNC
|
||||
* 01: ARV
|
||||
* 02: RED
|
||||
* 03: SCAN
|
||||
*/
|
||||
self.set_field(77..79, 0_u8);
|
||||
// /*
|
||||
// * 00: RED.POPC
|
||||
// * 01: RED.AND
|
||||
// * 02: RED.OR
|
||||
// */
|
||||
// self.set_field(74..76, 0_u8);
|
||||
|
||||
self.set_pred_src(87..90, 90, SrcRef::True.into());
|
||||
// /*
|
||||
// * 00: SYNC
|
||||
// * 01: ARV
|
||||
// * 02: RED
|
||||
// * 03: SCAN
|
||||
// */
|
||||
// self.set_field(77..79, 0_u8);
|
||||
|
||||
// self.set_pred_src(87..90, 90, SrcRef::True.into());
|
||||
}
|
||||
|
||||
fn encode_cs2r(&mut self, op: &OpCS2R) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue