mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-14 22:18:20 +02:00
nak: wire up shader resource residency intrinsics
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26719>
This commit is contained in:
parent
09e2917ee8
commit
75390a7aeb
1 changed files with 5 additions and 0 deletions
|
|
@ -2708,6 +2708,11 @@ impl<'a> ShaderFromNir<'a> {
|
|||
});
|
||||
self.set_dst(&intrin.def, dst);
|
||||
}
|
||||
nir_intrinsic_is_sparse_texels_resident => {
|
||||
let src = self.get_src(&srcs[0]);
|
||||
let dst = b.isetp(IntCmpType::I32, IntCmpOp::Ne, src, 0.into());
|
||||
self.set_dst(&intrin.def, dst);
|
||||
}
|
||||
_ => panic!(
|
||||
"Unsupported intrinsic instruction: {}",
|
||||
intrin.info().name()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue