Lines Matching refs:rshader
2435 struct r600_shader *rshader = &shader->shader; in r600_update_ps_state() local
2449 r600_store_context_reg_seq(cb, R_028644_SPI_PS_INPUT_CNTL_0, rshader->ninput); in r600_update_ps_state()
2450 for (i = 0; i < rshader->ninput; i++) { in r600_update_ps_state()
2451 if (rshader->input[i].name == TGSI_SEMANTIC_POSITION) in r600_update_ps_state()
2453 if (rshader->input[i].name == TGSI_SEMANTIC_FACE && face_index == -1) in r600_update_ps_state()
2455 if (rshader->input[i].name == TGSI_SEMANTIC_SAMPLEID) in r600_update_ps_state()
2458 sid = rshader->input[i].spi_sid; in r600_update_ps_state()
2463 if (rshader->input[i].name == TGSI_SEMANTIC_COLOR && rshader->input[i].sid == 0) in r600_update_ps_state()
2466 if (rshader->input[i].name == TGSI_SEMANTIC_POSITION || in r600_update_ps_state()
2467 rshader->input[i].interpolate == TGSI_INTERPOLATE_CONSTANT || in r600_update_ps_state()
2468 (rshader->input[i].interpolate == TGSI_INTERPOLATE_COLOR && in r600_update_ps_state()
2472 if (rshader->input[i].name == TGSI_SEMANTIC_GENERIC && in r600_update_ps_state()
2473 sprite_coord_enable & (1 << rshader->input[i].sid)) { in r600_update_ps_state()
2477 if (rshader->input[i].interpolate_location == TGSI_INTERPOLATE_LOC_CENTROID) in r600_update_ps_state()
2480 if (rshader->input[i].interpolate_location == TGSI_INTERPOLATE_LOC_SAMPLE) in r600_update_ps_state()
2483 if (rshader->input[i].interpolate == TGSI_INTERPOLATE_LINEAR) { in r600_update_ps_state()
2492 for (i = 0; i < rshader->noutput; i++) { in r600_update_ps_state()
2493 if (rshader->output[i].name == TGSI_SEMANTIC_POSITION) in r600_update_ps_state()
2495 if (rshader->output[i].name == TGSI_SEMANTIC_STENCIL) in r600_update_ps_state()
2497 if (rshader->output[i].name == TGSI_SEMANTIC_SAMPLEMASK && in r600_update_ps_state()
2504 if (rshader->uses_kill) in r600_update_ps_state()
2508 for (i = 0; i < rshader->noutput; i++) { in r600_update_ps_state()
2509 if (rshader->output[i].name == TGSI_SEMANTIC_POSITION || in r600_update_ps_state()
2510 rshader->output[i].name == TGSI_SEMANTIC_STENCIL || in r600_update_ps_state()
2511 rshader->output[i].name == TGSI_SEMANTIC_SAMPLEMASK) { in r600_update_ps_state()
2515 num_cout = rshader->nr_ps_color_exports; in r600_update_ps_state()
2524 spi_ps_in_control_0 = S_0286CC_NUM_INTERP(rshader->ninput) | in r600_update_ps_state()
2530 …S_0286CC_POSITION_CENTROID(rshader->input[pos_index].interpolate_location == TGSI_INTERPOLATE_LOC_… in r600_update_ps_state()
2531 S_0286CC_POSITION_ADDR(rshader->input[pos_index].gpr) | in r600_update_ps_state()
2533 …S_0286CC_POSITION_SAMPLE(rshader->input[pos_index].interpolate_location == TGSI_INTERPOLATE_LOC_SA… in r600_update_ps_state()
2540 S_0286D0_FRONT_FACE_ADDR(rshader->input[face_index].gpr); in r600_update_ps_state()
2544 S_0286D0_FIXED_PT_POSITION_ADDR(rshader->input[fixed_pt_position_index].gpr); in r600_update_ps_state()
2559 S_028850_NUM_GPRS(rshader->bc.ngpr) | in r600_update_ps_state()
2566 S_028850_STACK_SIZE(rshader->bc.nstack) | in r600_update_ps_state()
2585 struct r600_shader *rshader = &shader->shader; in r600_update_vs_state() local
2589 for (i = 0; i < rshader->noutput; i++) { in r600_update_vs_state()
2590 if (rshader->output[i].spi_sid) { in r600_update_vs_state()
2591 tmp = rshader->output[i].spi_sid << ((nparams & 3) * 8); in r600_update_vs_state()
2614 S_028868_NUM_GPRS(rshader->bc.ngpr) | in r600_update_vs_state()
2616 S_028868_STACK_SIZE(rshader->bc.nstack)); in r600_update_vs_state()
2617 if (rshader->vs_position_window_space) { in r600_update_vs_state()
2632 S_02881C_VS_OUT_CCDIST0_VEC_ENA((rshader->clip_dist_write & 0x0F) != 0) | in r600_update_vs_state()
2633 S_02881C_VS_OUT_CCDIST1_VEC_ENA((rshader->clip_dist_write & 0xF0) != 0) | in r600_update_vs_state()
2634 S_02881C_VS_OUT_MISC_VEC_ENA(rshader->vs_out_misc_write) | in r600_update_vs_state()
2635 S_02881C_USE_VTX_POINT_SIZE(rshader->vs_out_point_size) | in r600_update_vs_state()
2636 S_02881C_USE_VTX_EDGE_FLAG(rshader->vs_out_edgeflag) | in r600_update_vs_state()
2637 S_02881C_USE_VTX_RENDER_TARGET_INDX(rshader->vs_out_layer) | in r600_update_vs_state()
2638 S_02881C_USE_VTX_VIEWPORT_INDX(rshader->vs_out_viewport); in r600_update_vs_state()
2648 struct r600_shader *rshader = &shader->shader; in r600_update_gs_state() local
2686 (rshader->ring_item_sizes[0]) >> 2); in r600_update_gs_state()
2699 S_02887C_NUM_GPRS(rshader->bc.ngpr) | in r600_update_gs_state()
2701 S_02887C_STACK_SIZE(rshader->bc.nstack)); in r600_update_gs_state()
2709 struct r600_shader *rshader = &shader->shader; in r600_update_es_state() local
2714 S_028890_NUM_GPRS(rshader->bc.ngpr) | in r600_update_es_state()
2716 S_028890_STACK_SIZE(rshader->bc.nstack)); in r600_update_es_state()