Lines Matching refs:vtx
1436 struct r600_bytecode_vtx vtx;
1441 memset(&vtx, 0, sizeof(struct r600_bytecode_vtx));
1442 vtx.op = FETCH_OP_VFETCH;
1443 vtx.buffer_id = R600_BUFFER_INFO_CONST_BUFFER;
1444 vtx.fetch_type = SQ_VTX_FETCH_NO_INDEX_OFFSET;
1448 vtx.src_gpr = ctx->fixed_pt_position_gpr; // SAMPLEID is in .w;
1449 vtx.src_sel_x = 3;
1464 vtx.src_gpr = t1;
1465 vtx.src_sel_x = 0;
1467 vtx.mega_fetch_count = 16;
1468 vtx.dst_gpr = t1;
1469 vtx.dst_sel_x = 0;
1470 vtx.dst_sel_y = 1;
1471 vtx.dst_sel_z = 2;
1472 vtx.dst_sel_w = 3;
1473 vtx.data_format = FMT_32_32_32_32_FLOAT;
1474 vtx.num_format_all = 2;
1475 vtx.format_comp_all = 1;
1476 vtx.use_const_fields = 0;
1477 vtx.offset = 0;
1478 vtx.endian = r600_endian_swap(32);
1479 vtx.srf_mode_all = 1; /* SRF_MODE_NO_ZERO */
1481 r = r600_bytecode_add_vtx(ctx->bc, &vtx);
1493 /* do a vtx fetch with wqm set on the vtx fetch */
1506 /* do a vtx fetch in VPM mode */
1507 struct r600_bytecode_vtx vtx;
1508 memset(&vtx, 0, sizeof(vtx));
1509 vtx.op = FETCH_OP_GET_BUFFER_RESINFO;
1510 vtx.buffer_id = R600_BUFFER_INFO_CONST_BUFFER;
1511 vtx.fetch_type = SQ_VTX_FETCH_NO_INDEX_OFFSET;
1512 vtx.src_gpr = 0;
1513 vtx.mega_fetch_count = 16; /* no idea here really... */
1514 vtx.dst_gpr = ctx->helper_invoc_reg;
1515 vtx.dst_sel_x = 4;
1516 vtx.dst_sel_y = 7; /* SEL_Y */
1517 vtx.dst_sel_z = 7; /* SEL_Z */
1518 vtx.dst_sel_w = 7; /* SEL_W */
1519 vtx.data_format = FMT_32;
1520 if ((r = r600_bytecode_add_vtx_tc(ctx->bc, &vtx)))
1559 struct r600_bytecode_vtx vtx;
1579 memset(&vtx, 0, sizeof(struct r600_bytecode_vtx));
1580 vtx.op = FETCH_OP_VFETCH;
1581 vtx.buffer_id = R600_BUFFER_INFO_CONST_BUFFER;
1582 vtx.fetch_type = SQ_VTX_FETCH_NO_INDEX_OFFSET;
1583 vtx.src_gpr = t1;
1584 vtx.src_sel_x = 0;
1586 vtx.mega_fetch_count = 16;
1587 vtx.dst_gpr = t1;
1588 vtx.dst_sel_x = 0;
1589 vtx.dst_sel_y = 1;
1590 vtx.dst_sel_z = 2;
1591 vtx.dst_sel_w = 7;
1592 vtx.data_format = FMT_32_32_32_32;
1593 vtx.num_format_all = 1;
1594 vtx.format_comp_all = 0;
1595 vtx.use_const_fields = 0;
1596 vtx.offset = load_block ? 0 : 16; // first element is size of buffer
1597 vtx.endian = r600_endian_swap(32);
1598 vtx.srf_mode_all = 1; /* SRF_MODE_NO_ZERO */
1600 r = r600_bytecode_add_vtx(ctx->bc, &vtx);
1665 struct r600_bytecode_vtx vtx;
1669 memset(&vtx, 0, sizeof(struct r600_bytecode_vtx));
1670 vtx.op = FETCH_OP_READ_SCRATCH;
1671 vtx.dst_gpr = reg;
1672 vtx.uncached = 1; // Must bypass cache since prior spill written in same invocation
1673 vtx.elem_size = 3;
1674 vtx.data_format = FMT_32_32_32_32;
1675 vtx.num_format_all = V_038010_SQ_NUM_FORMAT_INT;
1676 vtx.dst_sel_x = tgsi_src->Register.SwizzleX;
1677 vtx.dst_sel_y = tgsi_src->Register.SwizzleY;
1678 vtx.dst_sel_z = tgsi_src->Register.SwizzleZ;
1679 vtx.dst_sel_w = tgsi_src->Register.SwizzleW;
1682 &vtx.array_base, &vtx.array_size);
1685 vtx.indexed = 1;
1686 vtx.src_gpr = ctx->bc->ar_reg;
1689 vtx.array_base += idx;
1690 vtx.array_size = 0;
1693 r = r600_bytecode_add_vtx(ctx->bc, &vtx);
1825 struct r600_bytecode_vtx vtx;
1854 memset(&vtx, 0, sizeof(vtx));
1855 vtx.buffer_id = cb_idx;
1856 vtx.fetch_type = SQ_VTX_FETCH_NO_INDEX_OFFSET;
1857 vtx.src_gpr = ar_reg;
1858 vtx.src_sel_x = ar_chan;
1859 vtx.mega_fetch_count = 16;
1860 vtx.dst_gpr = dst_reg;
1861 vtx.dst_sel_x = 0; /* SEL_X */
1862 vtx.dst_sel_y = 1; /* SEL_Y */
1863 vtx.dst_sel_z = 2; /* SEL_Z */
1864 vtx.dst_sel_w = 3; /* SEL_W */
1865 vtx.data_format = FMT_32_32_32_32_FLOAT;
1866 vtx.num_format_all = 2; /* NUM_FORMAT_SCALED */
1867 vtx.format_comp_all = 1; /* FORMAT_COMP_SIGNED */
1868 vtx.endian = r600_endian_swap(32);
1869 vtx.buffer_index_mode = cb_rel; // cb_rel ? V_SQ_CF_INDEX_0 : V_SQ_CF_INDEX_NONE;
1871 if ((r = r600_bytecode_add_vtx(ctx->bc, &vtx)))
1879 struct r600_bytecode_vtx vtx;
1970 memset(&vtx, 0, sizeof(vtx));
1971 vtx.buffer_id = R600_GS_RING_CONST_BUFFER;
1972 vtx.fetch_type = SQ_VTX_FETCH_NO_INDEX_OFFSET;
1973 vtx.src_gpr = offset_reg;
1974 vtx.src_sel_x = offset_chan;
1975 vtx.offset = index * 16; /*bytes*/
1976 vtx.mega_fetch_count = 16;
1977 vtx.dst_gpr = dst_reg;
1978 vtx.dst_sel_x = 0; /* SEL_X */
1979 vtx.dst_sel_y = 1; /* SEL_Y */
1980 vtx.dst_sel_z = 2; /* SEL_Z */
1981 vtx.dst_sel_w = 3; /* SEL_W */
1983 vtx.use_const_fields = 1;
1985 vtx.data_format = FMT_32_32_32_32_FLOAT;
1988 if ((r = r600_bytecode_add_vtx(ctx->bc, &vtx)))
2580 struct r600_bytecode_vtx vtx;
2634 memset(&vtx, 0, sizeof(vtx));
2635 vtx.op = FETCH_OP_VFETCH;
2636 vtx.buffer_id = R600_GS_RING_CONST_BUFFER;
2637 vtx.fetch_type = SQ_VTX_FETCH_NO_INDEX_OFFSET;
2638 vtx.mega_fetch_count = 16;
2639 vtx.offset = out->ring_offset;
2640 vtx.dst_gpr = out->gpr;
2641 vtx.src_gpr = 0;
2642 vtx.dst_sel_x = 0;
2643 vtx.dst_sel_y = 1;
2644 vtx.dst_sel_z = 2;
2645 vtx.dst_sel_w = 3;
2647 vtx.use_const_fields = 1;
2649 vtx.data_format = FMT_32_32_32_32_FLOAT;
2652 r600_bytecode_add_vtx(ctx.bc, &vtx);
2978 struct r600_bytecode_vtx vtx;
2991 memset(&vtx, 0, sizeof(struct r600_bytecode_vtx));
2992 vtx.op = FETCH_OP_VFETCH;
2993 vtx.buffer_id = R600_LDS_INFO_CONST_BUFFER;
2994 vtx.fetch_type = SQ_VTX_FETCH_NO_INDEX_OFFSET;
2995 vtx.mega_fetch_count = 16;
2996 vtx.data_format = FMT_32_32_32_32;
2997 vtx.num_format_all = 2;
2998 vtx.format_comp_all = 1;
2999 vtx.use_const_fields = 0;
3000 vtx.endian = r600_endian_swap(32);
3001 vtx.srf_mode_all = 1;
3002 vtx.offset = 0;
3003 vtx.dst_gpr = ctx->tess_input_info;
3004 vtx.dst_sel_x = 0;
3005 vtx.dst_sel_y = 1;
3006 vtx.dst_sel_z = 2;
3007 vtx.dst_sel_w = 3;
3008 vtx.src_gpr = temp_val;
3009 vtx.src_sel_x = 0;
3011 r = r600_bytecode_add_vtx(ctx->bc, &vtx);
3019 memset(&vtx, 0, sizeof(struct r600_bytecode_vtx));
3020 vtx.op = FETCH_OP_VFETCH;
3021 vtx.buffer_id = R600_LDS_INFO_CONST_BUFFER;
3022 vtx.fetch_type = SQ_VTX_FETCH_NO_INDEX_OFFSET;
3023 vtx.mega_fetch_count = 16;
3024 vtx.data_format = FMT_32_32_32_32;
3025 vtx.num_format_all = 2;
3026 vtx.format_comp_all = 1;
3027 vtx.use_const_fields = 0;
3028 vtx.endian = r600_endian_swap(32);
3029 vtx.srf_mode_all = 1;
3030 vtx.offset = 16;
3031 vtx.dst_gpr = ctx->tess_output_info;
3032 vtx.dst_sel_x = 0;
3033 vtx.dst_sel_y = 1;
3034 vtx.dst_sel_z = 2;
3035 vtx.dst_sel_w = 3;
3036 vtx.src_gpr = temp_val;
3037 vtx.src_sel_x = 0;
3039 r = r600_bytecode_add_vtx(ctx->bc, &vtx);
7412 struct r600_bytecode_vtx vtx;
7437 memset(&vtx, 0, sizeof(vtx));
7438 vtx.op = FETCH_OP_VFETCH;
7439 vtx.buffer_id = id + R600_MAX_CONST_BUFFERS;
7440 vtx.fetch_type = SQ_VTX_FETCH_NO_INDEX_OFFSET;
7441 vtx.src_gpr = src_gpr;
7442 vtx.mega_fetch_count = 16;
7443 vtx.dst_gpr = ctx->file_offset[inst->Dst[0].Register.File] + inst->Dst[0].Register.Index;
7444 vtx.dst_sel_x = (inst->Dst[0].Register.WriteMask & 1) ? 0 : 7; /* SEL_X */
7445 vtx.dst_sel_y = (inst->Dst[0].Register.WriteMask & 2) ? 1 : 7; /* SEL_Y */
7446 vtx.dst_sel_z = (inst->Dst[0].Register.WriteMask & 4) ? 2 : 7; /* SEL_Z */
7447 vtx.dst_sel_w = (inst->Dst[0].Register.WriteMask & 8) ? 3 : 7; /* SEL_W */
7448 vtx.use_const_fields = 1;
7449 vtx.buffer_index_mode = sampler_index_mode;
7451 if ((r = r600_bytecode_add_vtx(ctx->bc, &vtx)))
7466 alu.dst.sel = vtx.dst_gpr;
7469 alu.src[0].sel = vtx.dst_gpr;
7489 alu.dst.sel = vtx.dst_gpr;
7492 alu.src[0].sel = vtx.dst_gpr;
7530 struct r600_bytecode_vtx vtx;
7531 memset(&vtx, 0, sizeof(vtx));
7532 vtx.op = FETCH_OP_GET_BUFFER_RESINFO;
7533 vtx.buffer_id = id + eg_buffer_base;
7534 vtx.fetch_type = SQ_VTX_FETCH_NO_INDEX_OFFSET;
7535 vtx.src_gpr = 0;
7536 vtx.mega_fetch_count = 16; /* no idea here really... */
7537 vtx.dst_gpr = ctx->file_offset[inst->Dst[0].Register.File] + inst->Dst[0].Register.Index;
7538 vtx.dst_sel_x = (inst->Dst[0].Register.WriteMask & 1) ? 0 : 7; /* SEL_X */
7539 vtx.dst_sel_y = (inst->Dst[0].Register.WriteMask & 2) ? 4 : 7; /* SEL_Y */
7540 vtx.dst_sel_z = (inst->Dst[0].Register.WriteMask & 4) ? 4 : 7; /* SEL_Z */
7541 vtx.dst_sel_w = (inst->Dst[0].Register.WriteMask & 8) ? 4 : 7; /* SEL_W */
7542 vtx.data_format = FMT_32_32_32_32;
7543 vtx.buffer_index_mode = sampler_index_mode;
7545 if ((r = r600_bytecode_add_vtx_tc(ctx->bc, &vtx)))
8864 struct r600_bytecode_vtx vtx;
8877 memset(&vtx, 0, sizeof(struct r600_bytecode_vtx));
8878 vtx.op = FETCH_OP_VFETCH;
8879 vtx.buffer_id = inst->Src[0].Register.Index + base;
8880 vtx.buffer_index_mode = rat_index_mode;
8881 vtx.fetch_type = SQ_VTX_FETCH_NO_INDEX_OFFSET;
8882 vtx.src_gpr = temp_reg;
8883 vtx.src_sel_x = 0;
8884 vtx.dst_gpr = ctx->file_offset[inst->Dst[0].Register.File] + inst->Dst[0].Register.Index;
8885 vtx.dst_sel_x = (inst->Dst[0].Register.WriteMask & 1) ? 0 : 7; /* SEL_X */
8886 vtx.dst_sel_y = (inst->Dst[0].Register.WriteMask & 2) ? 1 : 7; /* SEL_Y */
8887 vtx.dst_sel_z = (inst->Dst[0].Register.WriteMask & 4) ? 2 : 7; /* SEL_Z */
8888 vtx.dst_sel_w = (inst->Dst[0].Register.WriteMask & 8) ? 3 : 7; /* SEL_W */
8889 vtx.num_format_all = 1;
8890 vtx.format_comp_all = 1;
8891 vtx.srf_mode_all = 0;
8894 vtx.data_format = FMT_32_32_32_32;
8895 vtx.use_const_fields = 0;
8897 vtx.data_format = FMT_32_32_32;
8898 vtx.use_const_fields = 0;
8900 vtx.data_format = FMT_32_32;
8901 vtx.use_const_fields = 0;
8903 vtx.data_format = FMT_32;
8904 vtx.use_const_fields = 0;
8907 r = r600_bytecode_add_vtx_tc(ctx->bc, &vtx);
8919 struct r600_bytecode_vtx vtx;
8958 memset(&vtx, 0, sizeof(struct r600_bytecode_vtx));
8959 vtx.op = FETCH_OP_VFETCH;
8960 vtx.buffer_id = immed_base + inst->Src[0].Register.Index;
8961 vtx.buffer_index_mode = rat_index_mode;
8962 vtx.fetch_type = SQ_VTX_FETCH_NO_INDEX_OFFSET;
8963 vtx.src_gpr = ctx->thread_id_gpr;
8964 vtx.src_sel_x = 1;
8965 vtx.dst_gpr = ctx->file_offset[inst->Dst[0].Register.File] + inst->Dst[0].Register.Index;
8966 vtx.dst_sel_x = desc->swizzle[0];
8967 vtx.dst_sel_y = desc->swizzle[1];
8968 vtx.dst_sel_z = desc->swizzle[2];
8969 vtx.dst_sel_w = desc->swizzle[3];
8970 vtx.srf_mode_all = 1;
8971 vtx.data_format = format;
8972 vtx.num_format_all = num_format;
8973 vtx.format_comp_all = format_comp;
8974 vtx.endian = endian;
8975 vtx.offset = 0;
8976 vtx.mega_fetch_count = 3;
8977 r = r600_bytecode_add_vtx_tc(ctx->bc, &vtx);
9249 struct r600_bytecode_vtx vtx;
9335 memset(&vtx, 0, sizeof(struct r600_bytecode_vtx));
9340 vtx.dst_sel_x = desc->swizzle[0];
9346 vtx.dst_sel_x = 0;
9348 vtx.op = FETCH_OP_VFETCH;
9349 vtx.buffer_id = immed_base + inst->Src[0].Register.Index;
9350 vtx.buffer_index_mode = rat_index_mode;
9351 vtx.fetch_type = SQ_VTX_FETCH_NO_INDEX_OFFSET;
9352 vtx.src_gpr = ctx->thread_id_gpr;
9353 vtx.src_sel_x = 1;
9354 vtx.dst_gpr = ctx->file_offset[inst->Dst[0].Register.File] + inst->Dst[0].Register.Index;
9355 vtx.dst_sel_y = 7;
9356 vtx.dst_sel_z = 7;
9357 vtx.dst_sel_w = 7;
9358 vtx.use_const_fields = 0;
9359 vtx.srf_mode_all = 1;
9360 vtx.data_format = format;
9361 vtx.num_format_all = num_format;
9362 vtx.format_comp_all = format_comp;
9363 vtx.endian = endian;
9364 vtx.offset = 0;
9365 vtx.mega_fetch_count = 0xf;
9366 r = r600_bytecode_add_vtx_tc(ctx->bc, &vtx);