Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
bool image_read_without_format;
bool image_write_without_format;
bool int64;
+ bool multiview;
};
nir_function *spirv_to_nir(const uint32_t *words, size_t word_count,
spv_check_supported(image_write_without_format, cap);
break;
+ case SpvCapabilityMultiView:
+ spv_check_supported(multiview, cap);
+ break;
+
default:
unreachable("Unhandled capability");
}
*location = SYSTEM_VALUE_DRAW_ID;
set_mode_system_value(mode);
break;
+ case SpvBuiltInViewIndex:
+ *location = SYSTEM_VALUE_VIEW_INDEX;
+ set_mode_system_value(mode);
+ break;
case SpvBuiltInHelperInvocation:
default:
unreachable("unsupported builtin");