mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 22:08:26 +02:00
nak/copy_prop: Rewrap a couple comments
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29591>
This commit is contained in:
parent
81288bfad7
commit
5406cfc7fe
1 changed files with 4 additions and 4 deletions
|
|
@ -208,8 +208,8 @@ impl CopyPropPass {
|
||||||
src.src_mod = entry.src.src_mod.modify(src.src_mod);
|
src.src_mod = entry.src.src_mod.modify(src.src_mod);
|
||||||
}
|
}
|
||||||
CopyPropEntry::Prmt(entry) => {
|
CopyPropEntry::Prmt(entry) => {
|
||||||
// Turn the swizzle into a permute. For F16, we use Xx to indicate
|
// Turn the swizzle into a permute. For F16, we use Xx to
|
||||||
// that it only takes the bottom 16 bits.
|
// indicate that it only takes the bottom 16 bits.
|
||||||
let swizzle_prmt: [u8; 4] = match src_type {
|
let swizzle_prmt: [u8; 4] = match src_type {
|
||||||
SrcType::F16 => [0, 1, 0, 1],
|
SrcType::F16 => [0, 1, 0, 1],
|
||||||
SrcType::F16v2 => match src.src_swizzle {
|
SrcType::F16v2 => match src.src_swizzle {
|
||||||
|
|
@ -234,8 +234,8 @@ impl CopyPropPass {
|
||||||
|
|
||||||
let target_src_idx = val / 4;
|
let target_src_idx = val / 4;
|
||||||
|
|
||||||
// Ensure we are using the same source, we cannot combine
|
// Ensure we are using the same source, we cannot
|
||||||
// multiple sources.
|
// combine multiple sources.
|
||||||
if entry_src_idx.is_none() {
|
if entry_src_idx.is_none() {
|
||||||
entry_src_idx = Some(target_src_idx);
|
entry_src_idx = Some(target_src_idx);
|
||||||
} else if entry_src_idx != Some(target_src_idx) {
|
} else if entry_src_idx != Some(target_src_idx) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue