nak/sm50: Set f2f.high

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30402>
This commit is contained in:
Faith Ekstrand
2024-07-28 12:19:01 -05:00
committed by Marge Bot
parent 7b84319ec4
commit 13cc4e48d1
2 changed files with 4 additions and 1 deletions
+3 -1
View File
@@ -3977,7 +3977,9 @@ pub struct OpF2F {
pub dst_type: FloatType,
pub rnd_mode: FRndMode,
pub ftz: bool,
/// Place the result into the upper 16 bits of the destination register
/// For 16-bit up-conversions, take the high 16 bits of the source register.
/// For 16-bit down-conversions, place the result into the upper 16 bits of
/// the destination register
pub high: bool,
/// Round to the nearest integer rather than nearest float
///
+1
View File
@@ -1698,6 +1698,7 @@ impl SM50Op for OpF2F {
e.set_field(10..12, (self.src_type.bits() / 8).ilog2());
e.set_rnd_mode(39..41, self.rnd_mode);
e.set_bit(41, self.high);
e.set_bit(42, self.integer_rnd);
e.set_bit(44, self.ftz);
e.set_bit(50, false); // saturate