Lines Matching defs:mode

155 nir_assign_var_locations(nir_shader *shader, nir_variable_mode mode,
161 nir_foreach_variable_with_modes(var, shader, mode) {
163 bool bindless_type_size = var->data.mode == nir_var_shader_in ||
164 var->data.mode == nir_var_shader_out ||
192 if (var->data.mode == nir_var_shader_in)
197 if (var->data.mode == nir_var_shader_out)
300 nir_variable_mode mode = var->data.mode;
304 switch (mode) {
343 unreachable("Unknown variable mode");
351 if (mode == nir_var_shader_in || mode == nir_var_shader_out)
449 assert(var->data.mode == nir_var_shader_out);
568 assert(var->data.mode == nir_var_shader_in);
685 bool bindless_type_size = var->data.mode == nir_var_shader_in ||
686 var->data.mode == nir_var_shader_out ||
927 assert(var->data.mode & (nir_var_uniform | nir_var_mem_shared |
941 switch (var->data.mode) {
963 unreachable("Unsupported variable mode");
966 return build_addr_iadd_imm(b, base_addr, addr_format, var->data.mode,
979 switch (var->data.mode) {
994 unreachable("Unsupported variable mode");
1005 nir_variable_mode mode)
1013 switch (mode) {
1026 unreachable("Invalid mode check intrinsic");
1031 unreachable("Unsupported address mode");
1118 nir_variable_mode mode)
1121 return mode == nir_var_mem_global;
1132 nir_variable_mode mode)
1135 return mode != nir_var_mem_global;
1383 const nir_variable_mode mode = modes;
1388 switch (mode) {
1394 else if (addr_format_is_global(addr_format, mode))
1400 if (addr_format_is_global(addr_format, mode))
1406 assert(addr_format_is_global(addr_format, mode));
1410 assert(addr_format_is_offset(addr_format, mode));
1415 assert(addr_format_is_offset(addr_format, mode));
1419 assert(addr_format_is_offset(addr_format, mode));
1424 if (addr_format_is_offset(addr_format, mode)) {
1427 assert(addr_format_is_global(addr_format, mode));
1436 if (addr_format_is_offset(addr_format, mode)) {
1439 assert(addr_format_is_global(addr_format, mode));
1444 unreachable("Unsupported explicit IO variable mode");
1449 switch (mode) {
1451 if (addr_format_is_global(addr_format, mode))
1463 unreachable("Unsupported explicit IO variable mode");
1484 } else if (addr_format_is_global(addr_format, mode)) {
1486 } else if (addr_format_is_offset(addr_format, mode)) {
1500 } else if (mode == nir_var_mem_push_const) {
1563 if (mode == nir_var_mem_shared ||
1564 mode == nir_var_shader_temp ||
1565 mode == nir_var_function_temp)
1622 const nir_variable_mode mode = modes;
1629 switch (mode) {
1631 if (addr_format_is_global(addr_format, mode))
1637 assert(addr_format_is_global(addr_format, mode));
1641 assert(addr_format_is_offset(addr_format, mode));
1645 assert(addr_format_is_offset(addr_format, mode));
1650 if (addr_format_is_offset(addr_format, mode)) {
1653 assert(addr_format_is_global(addr_format, mode));
1658 unreachable("Unsupported explicit IO variable mode");
1665 switch (mode) {
1667 if (addr_format_is_global(addr_format, mode))
1679 unreachable("Unsupported explicit IO variable mode");
1696 if (mode == nir_var_mem_shared ||
1697 mode == nir_var_shader_temp ||
1698 mode == nir_var_function_temp)
1705 if (addr_format_is_global(addr_format, mode)) {
1707 } else if (addr_format_is_offset(addr_format, mode)) {
1782 const nir_variable_mode mode = modes;
1788 switch (mode) {
1790 if (addr_format_is_global(addr_format, mode))
1796 assert(addr_format_is_global(addr_format, mode));
1800 assert(addr_format_is_offset(addr_format, mode));
1804 assert(addr_format_is_offset(addr_format, mode));
1808 unreachable("Unsupported explicit IO variable mode");
1814 if (addr_format_is_global(addr_format, mode)) {
1816 } else if (addr_format_is_offset(addr_format, mode)) {
2024 * given variable mode). We have to pick something so we choose 256B
2185 * global addresses regardless of the mode. In that case, don't create
2324 * address mode is global, it will lower any ambiguous (more than one mode)
2397 struct exec_list *vars, nir_variable_mode mode,
2402 switch (mode) {
2428 unreachable("Unsupported mode");
2431 if (var->data.mode != mode)
2451 switch (mode) {
2476 unreachable("Unsupported mode");
2594 nir_variable_mode mode)
2597 * mode at a time. If this ever becomes well-defined, we can drop the
2600 assert(util_bitcount(mode) == 1);
2602 nir_foreach_variable_with_modes(var, shader, mode) {