Lines Matching refs:graphics
429 struct radv_blend_state *blend = &pipeline->graphics.blend; in radv_pipeline_compute_spi_color_formats()
519 struct radv_blend_state *blend = &pipeline->graphics.blend; in radv_pipeline_init_blend_state()
698 struct radv_depth_stencil_state *ds = &pipeline->graphics.ds; in radv_pipeline_init_depth_stencil_state()
764 struct radv_raster_state *raster = &pipeline->graphics.raster; in radv_pipeline_init_raster_state()
818 struct radv_multisample_state *ms = &pipeline->graphics.ms; in radv_pipeline_init_multisample_state()
865 pipeline->graphics.spi_baryc_cntl |= S_0286E0_POS_FLOAT_LOCATION(2); in radv_pipeline_init_multisample_state()
1179 pipeline->graphics.pa_sc_cliprect_rule = mask; in radv_pipeline_init_dynamic_state()
1184 pipeline->graphics.pa_sc_cliprect_rule = 0xffff; in radv_pipeline_init_dynamic_state()
1292 pipeline->graphics.gs.lds_size = align(esgs_lds_size, 128) / 128; in calculate_gfx9_gs_info()
1293 pipeline->graphics.gs.vgt_gs_onchip_cntl = in calculate_gfx9_gs_info()
1297 pipeline->graphics.gs.vgt_gs_max_prims_per_subgroup = in calculate_gfx9_gs_info()
1299 pipeline->graphics.gs.vgt_esgs_ring_itemsize = esgs_itemsize; in calculate_gfx9_gs_info()
1337 pipeline->graphics.esgs_ring_size = CLAMP(esgs_ring_size, min_esgs_ring_size, max_size); in calculate_gs_ring_sizes()
1339 pipeline->graphics.gs.vgt_esgs_ring_itemsize = es_info->esgs_itemsize / 4; in calculate_gs_ring_sizes()
1340 pipeline->graphics.gsvs_ring_size = MIN2(gsvs_ring_size, max_size); in calculate_gs_ring_sizes()
1386 struct radv_tessellation_state *tess = &pipeline->graphics.tess; in calculate_tess_state()
1559 pipeline->graphics.vgt_primitiveid_en = false; in calculate_vgt_gs_mode()
1560 pipeline->graphics.vgt_gs_mode = 0; in calculate_vgt_gs_mode()
1566 pipeline->graphics.vgt_gs_mode = in calculate_vgt_gs_mode()
1570 pipeline->graphics.vgt_gs_mode = S_028A40_MODE(V_028A40_GS_SCENARIO_A); in calculate_vgt_gs_mode()
1571 pipeline->graphics.vgt_primitiveid_en = true; in calculate_vgt_gs_mode()
1587 pipeline->graphics.vs.pa_cl_vs_out_cntl = in calculate_vs_outinfo()
1598 pipeline->graphics.vs.spi_shader_pos_format = in calculate_vs_outinfo()
1610 …pipeline->graphics.vs.spi_vs_out_config = S_0286C4_VS_EXPORT_COUNT(MAX2(1, outinfo->param_exports)… in calculate_vs_outinfo()
1612 pipeline->graphics.vs.vgt_reuse_off = S_028AB4_REUSE_OFF(outinfo->writes_viewport_index); in calculate_vs_outinfo()
1645 pipeline->graphics.ps_input_cntl[ps_offset] = offset_to_ps_input(vs_offset, true); in calculate_ps_inputs()
1653 pipeline->graphics.ps_input_cntl[ps_offset] = offset_to_ps_input(vs_offset, true); in calculate_ps_inputs()
1655 …pipeline->graphics.ps_input_cntl[ps_offset] = offset_to_ps_input(AC_EXP_PARAM_DEFAULT_VAL_0000, tr… in calculate_ps_inputs()
1662 pipeline->graphics.ps_input_cntl[ps_offset] = val; in calculate_ps_inputs()
1674 pipeline->graphics.ps_input_cntl[ps_offset] = S_028644_OFFSET(0x20); in calculate_ps_inputs()
1681 pipeline->graphics.ps_input_cntl[ps_offset] = offset_to_ps_input(vs_offset, flat_shade); in calculate_ps_inputs()
1685 pipeline->graphics.ps_input_cntl_num = ps_offset; in calculate_ps_inputs()
1777 key.col_format = pipeline->graphics.blend.spi_shader_col_format; in radv_generate_graphics_pipeline_key()
2329 unsigned total_samples = 1u << G_028BE0_MSAA_NUM_SAMPLES(pipeline->graphics.ms.pa_sc_mode_cntl_1); in radv_compute_bin_size()
2330 unsigned ps_iter_samples = 1u << G_028804_PS_ITER_SAMPLES(pipeline->graphics.ms.db_eqaa); in radv_compute_bin_size()
2332 unsigned cb_target_mask = pipeline->graphics.blend.cb_target_mask; in radv_compute_bin_size()
2379 pipeline->graphics.bin.pa_sc_binner_cntl_0 = in radv_compute_binning_state()
2382 pipeline->graphics.bin.db_dfsm_control = S_028060_PUNCHOUT_MODE(V_028060_FORCE_OFF); in radv_compute_binning_state()
2410 pipeline->graphics.bin.pa_sc_binner_cntl_0 = in radv_compute_binning_state()
2461 pipeline->graphics.spi_baryc_cntl = S_0286E0_FRONT_FACE_ALL_BITS(1); in radv_pipeline_init()
2465 pipeline->graphics.prim = si_translate_prim(pCreateInfo->pInputAssemblyState->topology); in radv_pipeline_init()
2466 …pipeline->graphics.can_use_guardband = radv_prim_can_use_guardband(pCreateInfo->pInputAssemblyStat… in radv_pipeline_init()
2469 …pipeline->graphics.gs_out = si_conv_gl_prim_to_gs_out(pipeline->shaders[MESA_SHADER_GEOMETRY]->inf… in radv_pipeline_init()
2470 …pipeline->graphics.can_use_guardband = pipeline->graphics.gs_out == V_028A6C_OUTPRIM_TYPE_TRISTRIP; in radv_pipeline_init()
2472 pipeline->graphics.gs_out = si_conv_prim_to_gs_out(pCreateInfo->pInputAssemblyState->topology); in radv_pipeline_init()
2475 pipeline->graphics.prim = V_008958_DI_PT_RECTLIST; in radv_pipeline_init()
2476 pipeline->graphics.gs_out = V_028A6C_OUTPRIM_TYPE_TRISTRIP; in radv_pipeline_init()
2477 pipeline->graphics.can_use_guardband = true; in radv_pipeline_init()
2479 …pipeline->graphics.prim_restart_enable = !!pCreateInfo->pInputAssemblyState->primitiveRestartEnabl… in radv_pipeline_init()
2481 pipeline->graphics.prim_vertex_count = prim_size_table[pipeline->graphics.prim]; in radv_pipeline_init()
2495 if (!pipeline->graphics.blend.spi_shader_col_format) { in radv_pipeline_init()
2499 pipeline->graphics.blend.spi_shader_col_format = V_028714_SPI_SHADER_32_R; in radv_pipeline_init()
2503 pipeline->graphics.db_shader_control = 0; in radv_pipeline_init()
2509 pipeline->graphics.db_shader_control = in radv_pipeline_init()
2520 pipeline->graphics.db_shader_control |= S_02880C_DUAL_QUAD_DISABLE(1); in radv_pipeline_init()
2526 pipeline->graphics.shader_z_format = shader_z_format; in radv_pipeline_init()
2558 pipeline->graphics.vgt_shader_stages_en = stages; in radv_pipeline_init()
2567 if (pipeline->graphics.prim == V_008958_DI_PT_PATCH) { in radv_pipeline_init()
2568 pipeline->graphics.prim_vertex_count.min = pCreateInfo->pTessellationState->patchControlPoints; in radv_pipeline_init()
2569 pipeline->graphics.prim_vertex_count.incr = 1; in radv_pipeline_init()
2575 pipeline->graphics.primgroup_size = pipeline->graphics.tess.num_patches; in radv_pipeline_init()
2577 pipeline->graphics.primgroup_size = 64; in radv_pipeline_init()
2579 pipeline->graphics.primgroup_size = 128; /* recommended without a GS */ in radv_pipeline_init()
2581 pipeline->graphics.partial_es_wave = false; in radv_pipeline_init()
2585 pipeline->graphics.partial_es_wave = true; in radv_pipeline_init()
2589 if (SI_GS_PER_ES / pipeline->graphics.primgroup_size >= pipeline->device->gs_table_depth - 3) in radv_pipeline_init()
2590 pipeline->graphics.partial_es_wave = true; in radv_pipeline_init()
2592 pipeline->graphics.wd_switch_on_eop = false; in radv_pipeline_init()
2594 unsigned prim = pipeline->graphics.prim; in radv_pipeline_init()
2603 (pipeline->graphics.prim_restart_enable && in radv_pipeline_init()
2608 pipeline->graphics.wd_switch_on_eop = true; in radv_pipeline_init()
2611 pipeline->graphics.ia_switch_on_eoi = false; in radv_pipeline_init()
2613 pipeline->graphics.ia_switch_on_eoi = true; in radv_pipeline_init()
2616 pipeline->graphics.ia_switch_on_eoi = true; in radv_pipeline_init()
2621 pipeline->graphics.ia_switch_on_eoi = true; in radv_pipeline_init()
2624 pipeline->graphics.partial_vs_wave = false; in radv_pipeline_init()
2631 pipeline->graphics.partial_vs_wave = true; in radv_pipeline_init()
2640 pipeline->graphics.partial_vs_wave = true; in radv_pipeline_init()
2642 pipeline->graphics.partial_vs_wave = true; in radv_pipeline_init()
2647 pipeline->graphics.base_ia_multi_vgt_param = in radv_pipeline_init()
2648 S_028AA8_PRIMGROUP_SIZE(pipeline->graphics.primgroup_size - 1) | in radv_pipeline_init()
2696 pipeline->graphics.vtx_base_sgpr = pipeline->user_data_0[MESA_SHADER_VERTEX]; in radv_pipeline_init()
2697 pipeline->graphics.vtx_base_sgpr += loc->sgpr_idx * 4; in radv_pipeline_init()
2699 pipeline->graphics.vtx_emit_num = 3; in radv_pipeline_init()
2701 pipeline->graphics.vtx_emit_num = 2; in radv_pipeline_init()
2704 pipeline->graphics.vtx_reuse_depth = 30; in radv_pipeline_init()
2707 pipeline->graphics.vtx_reuse_depth = 14; in radv_pipeline_init()