Lines Matching defs:opcode
481 SpvOp opcode = w[0] & SpvOpCodeMask;
487 switch (opcode) {
504 if (!handler(b, opcode, w, count))
530 vtn_handle_extension(struct vtn_builder *b, SpvOp opcode,
533 switch (opcode) {
569 vtn_fail_with_opcode("Unhandled opcode", opcode);
642 vtn_handle_decoration(struct vtn_builder *b, SpvOp opcode,
649 switch (opcode) {
664 switch (opcode) {
681 unreachable("Invalid decoration opcode");
716 if (opcode == SpvOpGroupDecorate) {
732 unreachable("Unhandled opcode");
1412 vtn_handle_type(struct vtn_builder *b, SpvOp opcode,
1420 if (opcode != SpvOpTypePointer && opcode != SpvOpTypeForwardPointer) {
1428 switch (opcode) {
1506 if (opcode == SpvOpTypeRuntimeArray) {
1613 vtn_fail_if(opcode == SpvOpTypeForwardPointer &&
1620 if (opcode == SpvOpTypePointer)
1657 if (opcode == SpvOpTypePointer) {
1853 vtn_fail_with_opcode("Unhandled opcode", opcode);
1961 vtn_handle_constant(struct vtn_builder *b, SpvOp opcode,
1966 switch (opcode) {
1973 spirv_op_to_string(opcode));
1975 bool bval = (opcode == SpvOpConstantTrue ||
1976 opcode == SpvOpSpecConstantTrue);
1980 if (opcode == SpvOpSpecConstantTrue ||
1981 opcode == SpvOpSpecConstantFalse)
1992 spirv_op_to_string(opcode));
2011 if (opcode == SpvOpSpecConstant)
2022 spirv_op_to_string(opcode), elem_count, val->type->length);
2060 spirv_op_to_string(opcode));
2068 SpvOp opcode = u32op.u32;
2069 switch (opcode) {
2125 if (opcode == SpvOpCompositeExtract) {
2143 spirv_op_to_string(opcode), w[i], type->length);
2164 spirv_op_to_string(opcode));
2168 if (opcode == SpvOpCompositeExtract) {
2200 switch (opcode) {
2207 /* We use the bitsize of the conversion source to evaluate the opcode later */
2215 nir_op op = vtn_nir_alu_op_for_spirv_opcode(b, opcode, &swap, &exact,
2283 vtn_fail_with_opcode("Unhandled opcode", opcode);
2676 vtn_handle_texture(struct vtn_builder *b, SpvOp opcode,
2679 if (opcode == SpvOpSampledImage) {
2693 } else if (opcode == SpvOpImage) {
2702 } else if (opcode == SpvOpImageSparseTexelsResident) {
2724 switch (opcode) {
2790 vtn_fail_with_opcode("Unhandled opcode", opcode);
2809 spirv_op_to_string(opcode));
2837 switch (opcode) {
2880 opcode == SpvOpImageSampleExplicitLod) {
2908 switch (opcode) {
2925 switch (opcode) {
2950 switch (opcode) {
2965 if (opcode == SpvOpImageQuerySizeLod)
2969 if (opcode == SpvOpFragmentFetchAMD)
3166 fill_common_atomic_sources(struct vtn_builder *b, SpvOp opcode,
3172 switch (opcode) {
3208 vtn_fail_with_opcode("Invalid SPIR-V atomic", opcode);
3221 vtn_handle_image(struct vtn_builder *b, SpvOp opcode,
3225 if (opcode == SpvOpImageTexelPointer) {
3245 switch (opcode) {
3389 vtn_fail_with_opcode("Invalid image opcode", opcode);
3396 switch (opcode) {
3427 vtn_fail_with_opcode("Invalid image opcode", opcode);
3437 switch (opcode) {
3469 switch (opcode) {
3493 const uint32_t value_id = opcode == SpvOpAtomicStore ? w[4] : w[3];
3529 fill_common_atomic_sources(b, opcode, w, &intrin->src[3]);
3533 vtn_fail_with_opcode("Invalid image opcode", opcode);
3546 if (opcode != SpvOpImageWrite && opcode != SpvOpAtomicStore) {
3549 if (opcode == SpvOpImageSparseRead) {
3556 if (opcode == SpvOpImageSparseRead)
3563 if (opcode == SpvOpImageQuerySize ||
3564 opcode == SpvOpImageQuerySizeLod)
3576 if (opcode == SpvOpImageQuerySize ||
3577 opcode == SpvOpImageQuerySizeLod)
3580 if (opcode == SpvOpImageSparseRead) {
3592 if (opcode == SpvOpImageRead || opcode == SpvOpImageSparseRead ||
3593 opcode == SpvOpAtomicLoad) {
3607 get_uniform_nir_atomic_op(struct vtn_builder *b, SpvOp opcode)
3609 switch (opcode) {
3637 get_deref_nir_atomic_op(struct vtn_builder *b, SpvOp opcode)
3639 switch (opcode) {
3664 vtn_fail_with_opcode("Invalid shared atomic", opcode);
3672 vtn_handle_atomics(struct vtn_builder *b, SpvOp opcode,
3682 switch (opcode) {
3714 vtn_fail_with_opcode("Invalid SPIR-V atomic", opcode);
3723 nir_intrinsic_op op = get_uniform_nir_atomic_op(b, opcode);
3732 switch (opcode) {
3760 nir_intrinsic_op op = get_deref_nir_atomic_op(b, opcode);
3769 switch (opcode) {
3806 fill_common_atomic_sources(b, opcode, w, &atomic->src[1]);
3810 vtn_fail_with_opcode("Invalid SPIR-V atomic", opcode);
3826 if (opcode != SpvOpAtomicStore && opcode != SpvOpAtomicFlagClear) {
3829 if (opcode == SpvOpAtomicFlagTestAndSet) {
3844 if (opcode == SpvOpAtomicFlagTestAndSet) {
4050 vtn_handle_composite(struct vtn_builder *b, SpvOp opcode,
4056 switch (opcode) {
4113 vtn_fail_with_opcode("unknown composite operation", opcode);
4194 vtn_handle_barrier(struct vtn_builder *b, SpvOp opcode,
4197 switch (opcode) {
4203 if (opcode == SpvOpEmitStreamVertex || opcode == SpvOpEndStreamPrimitive)
4206 switch (opcode) {
4216 unreachable("Invalid opcode");
4427 vtn_handle_preamble_instruction(struct vtn_builder *b, SpvOp opcode,
4430 switch (opcode) {
4860 vtn_handle_extension(b, opcode, w, count);
4946 vtn_handle_decoration(b, opcode, w, count);
5315 vtn_handle_variable_or_type_instruction(struct vtn_builder *b, SpvOp opcode,
5318 vtn_set_instruction_result_type(b, opcode, w, count);
5320 switch (opcode) {
5341 vtn_fail("Invalid opcode types and variables section");
5367 vtn_handle_type(b, opcode, w, count);
5380 vtn_handle_constant(b, opcode, w, count);
5386 vtn_handle_variables(b, opcode, w, count);
5427 vtn_handle_select(struct vtn_builder *b, SpvOp opcode,
5478 vtn_handle_ptr(struct vtn_builder *b, SpvOp opcode,
5486 spirv_op_to_string(opcode));
5489 spirv_op_to_string(opcode));
5499 switch (opcode) {
5521 if (opcode == SpvOpPtrNotEqual)
5534 vtn_handle_ray_intrinsic(struct vtn_builder *b, SpvOp opcode,
5539 switch (opcode) {
5550 if (opcode == SpvOpTraceNV)
5588 if (opcode == SpvOpExecuteCallableNV)
5598 vtn_fail_with_opcode("Unhandled opcode", opcode);
5603 vtn_handle_write_packed_primitive_indices(struct vtn_builder *b, SpvOp opcode,
5606 vtn_assert(opcode == SpvOpWritePackedPrimitiveIndices4x8NV);
5675 SpvOp opcode)
5677 switch (opcode) {
5700 vtn_fail_with_opcode("Unhandled opcode", opcode);
5705 ray_query_load_intrinsic_create(struct vtn_builder *b, SpvOp opcode,
5710 spirv_to_nir_type_ray_query_intrinsic(b, opcode);
5741 vtn_handle_ray_query_intrinsic(struct vtn_builder *b, SpvOp opcode,
5744 switch (opcode) {
5788 ray_query_load_intrinsic_create(b, opcode, w,
5798 ray_query_load_intrinsic_create(b, opcode, w,
5805 vtn_fail_with_opcode("Unhandled opcode", opcode);
5810 vtn_handle_body_instruction(struct vtn_builder *b, SpvOp opcode,
5813 switch (opcode) {
5829 vtn_handle_extension(b, opcode, w, count);
5849 vtn_handle_variables(b, opcode, w, count);
5853 vtn_handle_function_call(b, opcode, w, count);
5879 vtn_handle_texture(b, opcode, w, count);
5888 vtn_handle_image(b, opcode, w, count);
5897 vtn_handle_image(b, opcode, w, count);
5900 vtn_handle_texture(b, opcode, w, count);
5907 vtn_handle_texture(b, opcode, w, count);
5931 vtn_handle_image(b, opcode, w, count);
5934 vtn_handle_atomics(b, opcode, w, count);
5943 vtn_handle_image(b, opcode, w, count);
5946 vtn_handle_atomics(b, opcode, w, count);
5952 vtn_handle_select(b, opcode, w, count);
6067 vtn_handle_alu(b, opcode, w, count);
6076 vtn_handle_integer_dot(b, opcode, w, count);
6091 vtn_handle_composite(b, opcode, w, count);
6100 vtn_handle_barrier(b, opcode, w, count);
6166 vtn_handle_subgroup(b, opcode, w, count);
6172 vtn_handle_ptr(b, opcode, w, count);
6235 vtn_handle_ray_intrinsic(b, opcode, w, count);
6261 vtn_handle_ray_query_intrinsic(b, opcode, w, count);
6270 vtn_handle_opencl_core_instruction(b, opcode, w, count);
6274 vtn_handle_write_packed_primitive_indices(b, opcode, w, count);
6278 vtn_fail_with_opcode("Unhandled opcode", opcode);