From 14531d676b11999123c04fb7569ab80c9f150180 Mon Sep 17 00:00:00 2001 From: Karol Herbst Date: Wed, 27 Mar 2019 00:59:03 +0100 Subject: nir: make nir_const_value scalar v2: remove & operator in a couple of memsets add some memsets v3: fixup lima Signed-off-by: Karol Herbst Reviewed-by: Jason Ekstrand (v2) --- src/compiler/spirv/vtn_private.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/compiler/spirv/vtn_private.h') diff --git a/src/compiler/spirv/vtn_private.h b/src/compiler/spirv/vtn_private.h index 395250984c5..dd3c328b3a7 100644 --- a/src/compiler/spirv/vtn_private.h +++ b/src/compiler/spirv/vtn_private.h @@ -692,10 +692,10 @@ vtn_constant_uint(struct vtn_builder *b, uint32_t value_id) "Expected id %u to be an integer constant", value_id); switch (glsl_get_bit_size(val->type->type)) { - case 8: return val->constant->values[0].u8[0]; - case 16: return val->constant->values[0].u16[0]; - case 32: return val->constant->values[0].u32[0]; - case 64: return val->constant->values[0].u64[0]; + case 8: return val->constant->values[0][0].u8; + case 16: return val->constant->values[0][0].u16; + case 32: return val->constant->values[0][0].u32; + case 64: return val->constant->values[0][0].u64; default: unreachable("Invalid bit size"); } } -- cgit v1.2.3