nak: Bind nir_intrinsic_access

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24998>
This commit is contained in:
M Henning
2023-10-20 23:14:13 -04:00
committed by Marge Bot
parent dfb6260483
commit 2a02a0d0b3
2 changed files with 6 additions and 0 deletions
+1
View File
@@ -49,6 +49,7 @@ nak_bindings_rs = rust.bindgen(
'--raw-line', '#![allow(non_upper_case_globals)]',
'--allowlist-type', 'exec_list',
'--allowlist-type', 'exec_node',
'--allowlist-type', 'gl_access_qualifier',
'--allowlist-type', 'gl_frag_result',
'--allowlist-type', 'gl_interp_mode',
'--allowlist-type', 'gl_shader_stage',
+5
View File
@@ -256,6 +256,7 @@ pub trait NirIntrinsicInstr {
fn cluster_size(&self) -> u32;
fn image_dim(&self) -> glsl_sampler_dim;
fn image_array(&self) -> bool;
fn access(&self) -> gl_access_qualifier;
fn align(&self) -> u32;
fn align_mul(&self) -> u32;
fn align_offset(&self) -> u32;
@@ -324,6 +325,10 @@ impl NirIntrinsicInstr for nir_intrinsic_instr {
self.get_const_index(NIR_INTRINSIC_IMAGE_ARRAY) != 0
}
fn access(&self) -> gl_access_qualifier {
self.get_const_index(NIR_INTRINSIC_ACCESS) as gl_access_qualifier
}
fn align(&self) -> u32 {
let mul = self.align_mul();
let offset = self.align_offset();