File builders/mesa-vulkan-1/contrib/generators/nir/nir_database_alu.c changed (mode: 100644) (index b2db49b..74f52ed) |
... |
... |
static struct nir_op nir_bitfield_select = { |
2695 |
2695 |
{NIR_TYPE_UINT32,NIR_TYPE_UINT32,NIR_TYPE_UINT32}, |
{NIR_TYPE_UINT32,NIR_TYPE_UINT32,NIR_TYPE_UINT32}, |
2696 |
2696 |
0 |
0 |
2697 |
2697 |
}; |
}; |
|
2698 |
|
/******************************************************************************/ |
|
2699 |
|
/* Sum of vector components */ |
|
2700 |
|
static struct nir_op nir_fsum2 = { |
|
2701 |
|
"fsum2", |
|
2702 |
|
NIR_OP_TYPE_ALU, |
|
2703 |
|
1, |
|
2704 |
|
NIR_TYPE_FLOAT, |
|
2705 |
|
1, |
|
2706 |
|
{2}, |
|
2707 |
|
{NIR_TYPE_FLOAT}, |
|
2708 |
|
0 |
|
2709 |
|
}; |
|
2710 |
|
static struct nir_op nir_fsum3 = { |
|
2711 |
|
"fsum3", |
|
2712 |
|
NIR_OP_TYPE_ALU, |
|
2713 |
|
1, |
|
2714 |
|
NIR_TYPE_FLOAT, |
|
2715 |
|
1, |
|
2716 |
|
{3}, |
|
2717 |
|
{NIR_TYPE_FLOAT}, |
|
2718 |
|
0 |
|
2719 |
|
}; |
|
2720 |
|
static struct nir_op nir_fsum4 = { |
|
2721 |
|
"fsum4", |
|
2722 |
|
NIR_OP_TYPE_ALU, |
|
2723 |
|
1, |
|
2724 |
|
NIR_TYPE_FLOAT, |
|
2725 |
|
1, |
|
2726 |
|
{4}, |
|
2727 |
|
{NIR_TYPE_FLOAT}, |
|
2728 |
|
0 |
|
2729 |
|
}; |
|
2730 |
|
/* Sum of vector components */ |
|
2731 |
|
/******************************************************************************/ |
2698 |
2732 |
|
|
2699 |
2733 |
static struct nir_op *nir_ops[] = { |
static struct nir_op *nir_ops[] = { |
2700 |
2734 |
&nir_b2f16, |
&nir_b2f16, |
|
... |
... |
static struct nir_op *nir_ops[] = { |
2965 |
2999 |
/* git 8d74749f812e64968d37266061293e204fea252c..9b116173b6a5e96c54ef3962546aabd505e00cfb */ |
/* git 8d74749f812e64968d37266061293e204fea252c..9b116173b6a5e96c54ef3962546aabd505e00cfb */ |
2966 |
3000 |
&nir_urol, |
&nir_urol, |
2967 |
3001 |
&nir_uror, |
&nir_uror, |
|
3002 |
|
/* git de17922b8a3c382cf89833cf8975cadc00142313..486b33558a5d5fe18fb87e98f75c34ef992428af */ |
|
3003 |
|
&nir_fsum2, |
|
3004 |
|
&nir_fsum3, |
|
3005 |
|
&nir_fsum4 |
2968 |
3006 |
}; |
}; |
File builders/mesa-vulkan-1/contrib/generators/nir/nir_database_intrinsic.c changed (mode: 100644) (index ef4e286..c03a4dc) |
... |
... |
struct nir_intrinsic nir_group_memory_barrier = { |
872 |
872 |
* qualifiers that influence the semantics of the intrinsic. In the second and |
* qualifiers that influence the semantics of the intrinsic. In the second and |
873 |
873 |
* third, the image format and access qualifiers are provided as constant |
* third, the image format and access qualifiers are provided as constant |
874 |
874 |
* indices. |
* indices. |
875 |
|
|
|
|
875 |
|
* |
876 |
876 |
* All image intrinsics take a four-coordinate vector and a sample index as |
* All image intrinsics take a four-coordinate vector and a sample index as |
877 |
877 |
* 2nd and 3rd sources, determining the location within the image that will be |
* 2nd and 3rd sources, determining the location within the image that will be |
|
878 |
|
* accessed by the intrinsic. Components not applicable to the image target |
|
879 |
|
* in use are undefined. Image store takes an additional four-component |
|
880 |
|
* argument with the value to be written, and image atomic operations take |
|
881 |
|
* either one or two additional scalar arguments with the same meaning as in |
|
882 |
|
* the ARB_shader_image_load_store specification. |
878 |
883 |
*/ |
*/ |
879 |
884 |
/*----------------------------------------------------------------------------*/ |
/*----------------------------------------------------------------------------*/ |
880 |
885 |
/* deref version */ |
/* deref version */ |
|
... |
... |
struct nir_intrinsic nir_image_deref_store_raw_intel = { |
1071 |
1076 |
[NIR_INTRINSIC_IDX_ACCESS] = 1 |
[NIR_INTRINSIC_IDX_ACCESS] = 1 |
1072 |
1077 |
} |
} |
1073 |
1078 |
}; |
}; |
|
1079 |
|
struct nir_intrinsic nir_image_deref_atomic_inc_wrap = { |
|
1080 |
|
.name = "image_deref_atomic_inc_wrap", |
|
1081 |
|
.srcs_n = 4, |
|
1082 |
|
.src_components_n = { |
|
1083 |
|
1,4,1,1 |
|
1084 |
|
}, |
|
1085 |
|
.has_dest = true, |
|
1086 |
|
.dest_components_n = 1, |
|
1087 |
|
.idxs_n = 1, |
|
1088 |
|
.idxs_map = { |
|
1089 |
|
[NIR_INTRINSIC_IDX_ACCESS] = 1 |
|
1090 |
|
} |
|
1091 |
|
}; |
|
1092 |
|
struct nir_intrinsic nir_image_deref_atomic_dec_wrap = { |
|
1093 |
|
.name = "image_deref_atomic_dec_wrap", |
|
1094 |
|
.srcs_n = 4, |
|
1095 |
|
.src_components_n = { |
|
1096 |
|
1,4,1,1 |
|
1097 |
|
}, |
|
1098 |
|
.has_dest = true, |
|
1099 |
|
.dest_components_n = 1, |
|
1100 |
|
.idxs_n = 1, |
|
1101 |
|
.idxs_map = { |
|
1102 |
|
[NIR_INTRINSIC_IDX_ACCESS] = 1 |
|
1103 |
|
} |
|
1104 |
|
}; |
1074 |
1105 |
/* deref version */ |
/* deref version */ |
1075 |
1106 |
/*----------------------------------------------------------------------------*/ |
/*----------------------------------------------------------------------------*/ |
1076 |
1107 |
/* plain version */ |
/* plain version */ |
|
... |
... |
struct nir_intrinsic nir_image_store_raw_intel = { |
1311 |
1342 |
[NIR_INTRINSIC_IDX_ACCESS] = 4 |
[NIR_INTRINSIC_IDX_ACCESS] = 4 |
1312 |
1343 |
} |
} |
1313 |
1344 |
}; |
}; |
|
1345 |
|
struct nir_intrinsic nir_image_atomic_inc_wrap = { |
|
1346 |
|
.name = "image_atomic_inc_wrap", |
|
1347 |
|
.srcs_n = 4, |
|
1348 |
|
.src_components_n = { |
|
1349 |
|
1,4,1,1 |
|
1350 |
|
}, |
|
1351 |
|
.has_dest = true, |
|
1352 |
|
.dest_components_n = 1, |
|
1353 |
|
.idxs_n = 4, |
|
1354 |
|
.idxs_map = { |
|
1355 |
|
[NIR_INTRINSIC_IDX_IMAGE_DIM] = 1, |
|
1356 |
|
[NIR_INTRINSIC_IDX_IMAGE_ARRAY] = 2, |
|
1357 |
|
[NIR_INTRINSIC_IDX_FORMAT] = 3, |
|
1358 |
|
[NIR_INTRINSIC_IDX_ACCESS] = 4 |
|
1359 |
|
} |
|
1360 |
|
}; |
|
1361 |
|
struct nir_intrinsic nir_image_atomic_dec_wrap = { |
|
1362 |
|
.name = "image_atomic_dec_wrap", |
|
1363 |
|
.srcs_n = 4, |
|
1364 |
|
.src_components_n = { |
|
1365 |
|
1,4,1,1 |
|
1366 |
|
}, |
|
1367 |
|
.has_dest = true, |
|
1368 |
|
.dest_components_n = 1, |
|
1369 |
|
.idxs_n = 4, |
|
1370 |
|
.idxs_map = { |
|
1371 |
|
[NIR_INTRINSIC_IDX_IMAGE_DIM] = 1, |
|
1372 |
|
[NIR_INTRINSIC_IDX_IMAGE_ARRAY] = 2, |
|
1373 |
|
[NIR_INTRINSIC_IDX_FORMAT] = 3, |
|
1374 |
|
[NIR_INTRINSIC_IDX_ACCESS] = 4 |
|
1375 |
|
} |
|
1376 |
|
}; |
1314 |
1377 |
/* plain version */ |
/* plain version */ |
1315 |
1378 |
/*----------------------------------------------------------------------------*/ |
/*----------------------------------------------------------------------------*/ |
1316 |
1379 |
/* bindless version */ |
/* bindless version */ |
|
... |
... |
struct nir_intrinsic nir_bindless_image_store_raw_intel = { |
1551 |
1614 |
[NIR_INTRINSIC_IDX_ACCESS] = 4 |
[NIR_INTRINSIC_IDX_ACCESS] = 4 |
1552 |
1615 |
} |
} |
1553 |
1616 |
}; |
}; |
|
1617 |
|
struct nir_intrinsic nir_bindless_image_atomic_inc_wrap = { |
|
1618 |
|
.name = "bindless_image_atomic_inc_wrap", |
|
1619 |
|
.srcs_n = 4, |
|
1620 |
|
.src_components_n = { |
|
1621 |
|
1,4,1,1 |
|
1622 |
|
}, |
|
1623 |
|
.has_dest = true, |
|
1624 |
|
.dest_components_n = 1, |
|
1625 |
|
.idxs_n = 4, |
|
1626 |
|
.idxs_map = { |
|
1627 |
|
[NIR_INTRINSIC_IDX_IMAGE_DIM] = 1, |
|
1628 |
|
[NIR_INTRINSIC_IDX_IMAGE_ARRAY] = 2, |
|
1629 |
|
[NIR_INTRINSIC_IDX_FORMAT] = 3, |
|
1630 |
|
[NIR_INTRINSIC_IDX_ACCESS] = 4 |
|
1631 |
|
} |
|
1632 |
|
}; |
|
1633 |
|
struct nir_intrinsic nir_bindless_image_atomic_dec_wrap = { |
|
1634 |
|
.name = "bindless_image_atomic_dec_wrap", |
|
1635 |
|
.srcs_n = 4, |
|
1636 |
|
.src_components_n = { |
|
1637 |
|
1,4,1,1 |
|
1638 |
|
}, |
|
1639 |
|
.has_dest = true, |
|
1640 |
|
.dest_components_n = 1, |
|
1641 |
|
.idxs_n = 4, |
|
1642 |
|
.idxs_map = { |
|
1643 |
|
[NIR_INTRINSIC_IDX_IMAGE_DIM] = 1, |
|
1644 |
|
[NIR_INTRINSIC_IDX_IMAGE_ARRAY] = 2, |
|
1645 |
|
[NIR_INTRINSIC_IDX_FORMAT] = 3, |
|
1646 |
|
[NIR_INTRINSIC_IDX_ACCESS] = 4 |
|
1647 |
|
} |
|
1648 |
|
}; |
1554 |
1649 |
/* bindless version */ |
/* bindless version */ |
1555 |
1650 |
/*----------------------------------------------------------------------------*/ |
/*----------------------------------------------------------------------------*/ |
1556 |
1651 |
/* the following is solo */ |
/* the following is solo */ |
|
... |
... |
struct nir_intrinsic *nir_intrinsics[] = { |
3786 |
3881 |
&nir_load_point_coord, |
&nir_load_point_coord, |
3787 |
3882 |
&nir_store_tlb_sample_color_v3d, |
&nir_store_tlb_sample_color_v3d, |
3788 |
3883 |
/* git f7224014df0d366453739356b9968ca94ad43979..de17922b8a3c382cf89833cf8975cadc00142313 */ |
/* git f7224014df0d366453739356b9968ca94ad43979..de17922b8a3c382cf89833cf8975cadc00142313 */ |
3789 |
|
&nir_demote_if |
|
|
3884 |
|
&nir_demote_if, |
|
3885 |
|
/* git 486b33558a5d5fe18fb87e98f75c34ef992428af..5ed4e31c08dc079473dd2e459c973355d49cd529 */ |
|
3886 |
|
&nir_image_deref_atomic_inc_wrap, |
|
3887 |
|
&nir_image_atomic_inc_wrap, |
|
3888 |
|
&nir_bindless_image_atomic_inc_wrap, |
|
3889 |
|
&nir_image_deref_atomic_dec_wrap, |
|
3890 |
|
&nir_image_atomic_dec_wrap, |
|
3891 |
|
&nir_bindless_image_atomic_dec_wrap |
3790 |
3892 |
}; |
}; |
File builders/mesa-vulkan-1/contrib/x86_64_amdgpu_linux_gnu_vulkan_x11_drm_gcc.sh changed (mode: 100755) (index 03d0cb1..c1c1588) |
... |
... |
linux_glibc_cppflags="\ |
228 |
228 |
-DHAVE_DL_ITERATE_PHDR \ |
-DHAVE_DL_ITERATE_PHDR \ |
229 |
229 |
-DHAVE_LINUX_FUTEX_H \ |
-DHAVE_LINUX_FUTEX_H \ |
230 |
230 |
-DHAVE_ENDIAN_H=1 \ |
-DHAVE_ENDIAN_H=1 \ |
|
231 |
|
-DHAVE_PROGRAM_INVOCATION_NAME=1 \ |
231 |
232 |
" |
" |
232 |
233 |
mesa_cppflags="\ |
mesa_cppflags="\ |
233 |
234 |
-DNDEBUG \ |
-DNDEBUG \ |
|
... |
... |
$src_dir/src/compiler/nir/nir_opt_vectorize.c \ |
1001 |
1002 |
$src_dir/src/compiler/nir/nir_phi_builder.c \ |
$src_dir/src/compiler/nir/nir_phi_builder.c \ |
1002 |
1003 |
$src_dir/src/compiler/nir/nir_print.c \ |
$src_dir/src/compiler/nir/nir_print.c \ |
1003 |
1004 |
$src_dir/src/compiler/nir/nir_propagate_invariant.c \ |
$src_dir/src/compiler/nir/nir_propagate_invariant.c \ |
|
1005 |
|
$src_dir/src/compiler/nir/nir_range_analysis.c \ |
1004 |
1006 |
$src_dir/src/compiler/nir/nir_remove_dead_variables.c \ |
$src_dir/src/compiler/nir/nir_remove_dead_variables.c \ |
1005 |
1007 |
$src_dir/src/compiler/nir/nir_repair_ssa.c \ |
$src_dir/src/compiler/nir/nir_repair_ssa.c \ |
1006 |
1008 |
$src_dir/src/compiler/nir/nir_search.c \ |
$src_dir/src/compiler/nir/nir_search.c \ |
|
... |
... |
$zlib_cppflags \ |
1058 |
1060 |
|
|
1059 |
1061 |
libmesautil_files="\ |
libmesautil_files="\ |
1060 |
1062 |
$build_dir/format_srgb.c \ |
$build_dir/format_srgb.c \ |
|
1063 |
|
$src_dir/src/util/anon_file.c \ |
1061 |
1064 |
$src_dir/src/util/bitscan.c \ |
$src_dir/src/util/bitscan.c \ |
1062 |
1065 |
$src_dir/src/util/build_id.c \ |
$src_dir/src/util/build_id.c \ |
1063 |
1066 |
$src_dir/src/util/crc32.c \ |
$src_dir/src/util/crc32.c \ |