mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 02:58:05 +02:00
nak: rustfmt fixes
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24998>
This commit is contained in:
parent
40ec7efa07
commit
32910d3016
1 changed files with 4 additions and 4 deletions
|
|
@ -1482,9 +1482,7 @@ impl<'a> ShaderFromNir<'a> {
|
|||
}
|
||||
nir_intrinsic_load_barycentric_centroid
|
||||
| nir_intrinsic_load_barycentric_pixel
|
||||
| nir_intrinsic_load_barycentric_sample => {
|
||||
Src::new_zero()
|
||||
}
|
||||
| nir_intrinsic_load_barycentric_sample => Src::new_zero(),
|
||||
_ => panic!("Unsupported interp mode"),
|
||||
};
|
||||
|
||||
|
|
@ -1567,7 +1565,9 @@ impl<'a> ShaderFromNir<'a> {
|
|||
if let ShaderIoInfo::Fragment(info) = &mut self.info.io {
|
||||
info.reads_sample_mask = true;
|
||||
} else {
|
||||
panic!("sample_mask_in is only available in fragment shaders");
|
||||
panic!(
|
||||
"sample_mask_in is only available in fragment shaders"
|
||||
);
|
||||
}
|
||||
|
||||
let dst = b.alloc_ssa(RegFile::GPR, 1);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue