• Home
  • Raw
  • Download

Lines Matching refs:rshader

2438 	struct r600_shader *rshader = &shader->shader;  in r600_update_ps_state()  local
2452 r600_store_context_reg_seq(cb, R_028644_SPI_PS_INPUT_CNTL_0, rshader->ninput); in r600_update_ps_state()
2453 for (i = 0; i < rshader->ninput; i++) { in r600_update_ps_state()
2454 if (rshader->input[i].name == TGSI_SEMANTIC_POSITION) in r600_update_ps_state()
2456 if (rshader->input[i].name == TGSI_SEMANTIC_FACE && face_index == -1) in r600_update_ps_state()
2458 if (rshader->input[i].name == TGSI_SEMANTIC_SAMPLEID) in r600_update_ps_state()
2461 sid = rshader->input[i].spi_sid; in r600_update_ps_state()
2466 if (rshader->input[i].name == TGSI_SEMANTIC_COLOR && rshader->input[i].sid == 0) in r600_update_ps_state()
2469 if (rshader->input[i].name == TGSI_SEMANTIC_POSITION || in r600_update_ps_state()
2470 rshader->input[i].interpolate == TGSI_INTERPOLATE_CONSTANT || in r600_update_ps_state()
2471 (rshader->input[i].interpolate == TGSI_INTERPOLATE_COLOR && in r600_update_ps_state()
2475 if (rshader->input[i].name == TGSI_SEMANTIC_PCOORD || in r600_update_ps_state()
2476 (rshader->input[i].name == TGSI_SEMANTIC_TEXCOORD && in r600_update_ps_state()
2477 sprite_coord_enable & (1 << rshader->input[i].sid))) { in r600_update_ps_state()
2481 if (rshader->input[i].interpolate_location == TGSI_INTERPOLATE_LOC_CENTROID) in r600_update_ps_state()
2484 if (rshader->input[i].interpolate_location == TGSI_INTERPOLATE_LOC_SAMPLE) in r600_update_ps_state()
2487 if (rshader->input[i].interpolate == TGSI_INTERPOLATE_LINEAR) { in r600_update_ps_state()
2496 for (i = 0; i < rshader->noutput; i++) { in r600_update_ps_state()
2497 if (rshader->output[i].name == TGSI_SEMANTIC_POSITION) in r600_update_ps_state()
2499 if (rshader->output[i].name == TGSI_SEMANTIC_STENCIL) in r600_update_ps_state()
2501 if (rshader->output[i].name == TGSI_SEMANTIC_SAMPLEMASK && in r600_update_ps_state()
2508 if (rshader->uses_kill) in r600_update_ps_state()
2512 for (i = 0; i < rshader->noutput; i++) { in r600_update_ps_state()
2513 if (rshader->output[i].name == TGSI_SEMANTIC_POSITION || in r600_update_ps_state()
2514 rshader->output[i].name == TGSI_SEMANTIC_STENCIL || in r600_update_ps_state()
2515 rshader->output[i].name == TGSI_SEMANTIC_SAMPLEMASK) { in r600_update_ps_state()
2519 num_cout = rshader->nr_ps_color_exports; in r600_update_ps_state()
2527 shader->ps_color_export_mask = rshader->ps_color_export_mask; in r600_update_ps_state()
2529 spi_ps_in_control_0 = S_0286CC_NUM_INTERP(rshader->ninput) | in r600_update_ps_state()
2535 …S_0286CC_POSITION_CENTROID(rshader->input[pos_index].interpolate_location == TGSI_INTERPOLATE_LOC_… in r600_update_ps_state()
2536 S_0286CC_POSITION_ADDR(rshader->input[pos_index].gpr) | in r600_update_ps_state()
2538 …S_0286CC_POSITION_SAMPLE(rshader->input[pos_index].interpolate_location == TGSI_INTERPOLATE_LOC_SA… in r600_update_ps_state()
2545 S_0286D0_FRONT_FACE_ADDR(rshader->input[face_index].gpr); in r600_update_ps_state()
2549 S_0286D0_FIXED_PT_POSITION_ADDR(rshader->input[fixed_pt_position_index].gpr); in r600_update_ps_state()
2564 S_028850_NUM_GPRS(rshader->bc.ngpr) | in r600_update_ps_state()
2571 S_028850_STACK_SIZE(rshader->bc.nstack) | in r600_update_ps_state()
2590 struct r600_shader *rshader = &shader->shader; in r600_update_vs_state() local
2594 for (i = 0; i < rshader->noutput; i++) { in r600_update_vs_state()
2595 if (rshader->output[i].spi_sid) { in r600_update_vs_state()
2596 tmp = rshader->output[i].spi_sid << ((nparams & 3) * 8); in r600_update_vs_state()
2619 S_028868_NUM_GPRS(rshader->bc.ngpr) | in r600_update_vs_state()
2621 S_028868_STACK_SIZE(rshader->bc.nstack)); in r600_update_vs_state()
2622 if (rshader->vs_position_window_space) { in r600_update_vs_state()
2637 S_02881C_VS_OUT_CCDIST0_VEC_ENA((rshader->clip_dist_write & 0x0F) != 0) | in r600_update_vs_state()
2638 S_02881C_VS_OUT_CCDIST1_VEC_ENA((rshader->clip_dist_write & 0xF0) != 0) | in r600_update_vs_state()
2639 S_02881C_VS_OUT_MISC_VEC_ENA(rshader->vs_out_misc_write) | in r600_update_vs_state()
2640 S_02881C_USE_VTX_POINT_SIZE(rshader->vs_out_point_size) | in r600_update_vs_state()
2641 S_02881C_USE_VTX_EDGE_FLAG(rshader->vs_out_edgeflag) | in r600_update_vs_state()
2642 S_02881C_USE_VTX_RENDER_TARGET_INDX(rshader->vs_out_layer) | in r600_update_vs_state()
2643 S_02881C_USE_VTX_VIEWPORT_INDX(rshader->vs_out_viewport); in r600_update_vs_state()
2653 struct r600_shader *rshader = &shader->shader; in r600_update_gs_state() local
2691 (rshader->ring_item_sizes[0]) >> 2); in r600_update_gs_state()
2704 S_02887C_NUM_GPRS(rshader->bc.ngpr) | in r600_update_gs_state()
2706 S_02887C_STACK_SIZE(rshader->bc.nstack)); in r600_update_gs_state()
2714 struct r600_shader *rshader = &shader->shader; in r600_update_es_state() local
2719 S_028890_NUM_GPRS(rshader->bc.ngpr) | in r600_update_es_state()
2721 S_028890_STACK_SIZE(rshader->bc.nstack)); in r600_update_es_state()