nak/copy_prop: Rewrap a couple comments

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29591>
This commit is contained in:
Faith Ekstrand 2024-06-11 10:13:48 -05:00 committed by Marge Bot
parent 81288bfad7
commit 5406cfc7fe

View file

@ -208,8 +208,8 @@ impl CopyPropPass {
src.src_mod = entry.src.src_mod.modify(src.src_mod);
}
CopyPropEntry::Prmt(entry) => {
// Turn the swizzle into a permute. For F16, we use Xx to indicate
// that it only takes the bottom 16 bits.
// Turn the swizzle into a permute. For F16, we use Xx to
// indicate that it only takes the bottom 16 bits.
let swizzle_prmt: [u8; 4] = match src_type {
SrcType::F16 => [0, 1, 0, 1],
SrcType::F16v2 => match src.src_swizzle {
@ -234,8 +234,8 @@ impl CopyPropPass {
let target_src_idx = val / 4;
// Ensure we are using the same source, we cannot combine
// multiple sources.
// Ensure we are using the same source, we cannot
// combine multiple sources.
if entry_src_idx.is_none() {
entry_src_idx = Some(target_src_idx);
} else if entry_src_idx != Some(target_src_idx) {