Lines Matching refs:rshader
3319 struct r600_shader *rshader = &shader->shader; in evergreen_update_ps_state() local
3343 for (i = 0; i < rshader->ninput; i++) { in evergreen_update_ps_state()
3346 if (rshader->input[i].name == TGSI_SEMANTIC_POSITION) in evergreen_update_ps_state()
3348 else if (rshader->input[i].name == TGSI_SEMANTIC_FACE) { in evergreen_update_ps_state()
3352 else if (rshader->input[i].name == TGSI_SEMANTIC_SAMPLEMASK) { in evergreen_update_ps_state()
3356 else if (rshader->input[i].name == TGSI_SEMANTIC_SAMPLEID) { in evergreen_update_ps_state()
3362 rshader->input[i].interpolate, in evergreen_update_ps_state()
3363 rshader->input[i].interpolate_location); in evergreen_update_ps_state()
3368 if (rshader->input[i].uses_interpolate_at_centroid) { in evergreen_update_ps_state()
3370 rshader->input[i].interpolate, in evergreen_update_ps_state()
3377 sid = rshader->input[i].spi_sid; in evergreen_update_ps_state()
3383 if (rshader->input[i].name == TGSI_SEMANTIC_COLOR && rshader->input[i].sid == 0) in evergreen_update_ps_state()
3386 if (rshader->input[i].name == TGSI_SEMANTIC_POSITION || in evergreen_update_ps_state()
3387 rshader->input[i].interpolate == TGSI_INTERPOLATE_CONSTANT || in evergreen_update_ps_state()
3388 (rshader->input[i].interpolate == TGSI_INTERPOLATE_COLOR && in evergreen_update_ps_state()
3393 if (rshader->input[i].name == TGSI_SEMANTIC_PCOORD || in evergreen_update_ps_state()
3394 (rshader->input[i].name == TGSI_SEMANTIC_TEXCOORD && in evergreen_update_ps_state()
3395 (sprite_coord_enable & (1 << rshader->input[i].sid)))) { in evergreen_update_ps_state()
3406 for (i = 0; i < rshader->noutput; i++) { in evergreen_update_ps_state()
3407 if (rshader->output[i].name == TGSI_SEMANTIC_POSITION) in evergreen_update_ps_state()
3409 if (rshader->output[i].name == TGSI_SEMANTIC_STENCIL) in evergreen_update_ps_state()
3411 if (rshader->output[i].name == TGSI_SEMANTIC_SAMPLEMASK && in evergreen_update_ps_state()
3415 if (rshader->uses_kill) in evergreen_update_ps_state()
3429 switch (rshader->ps_conservative_z) { in evergreen_update_ps_state()
3443 for (i = 0; i < rshader->noutput; i++) { in evergreen_update_ps_state()
3444 if (rshader->output[i].name == TGSI_SEMANTIC_POSITION || in evergreen_update_ps_state()
3445 rshader->output[i].name == TGSI_SEMANTIC_STENCIL || in evergreen_update_ps_state()
3446 rshader->output[i].name == TGSI_SEMANTIC_SAMPLEMASK) in evergreen_update_ps_state()
3450 num_cout = rshader->ps_export_highest + 1; in evergreen_update_ps_state()
3458 shader->ps_color_export_mask = rshader->ps_color_export_mask; in evergreen_update_ps_state()
3475 …S_0286CC_POSITION_CENTROID(rshader->input[pos_index].interpolate_location == TGSI_INTERPOLATE_LOC_… in evergreen_update_ps_state()
3476 S_0286CC_POSITION_ADDR(rshader->input[pos_index].gpr); in evergreen_update_ps_state()
3483 S_0286D0_FRONT_FACE_ADDR(rshader->input[face_index].gpr); in evergreen_update_ps_state()
3487 S_0286D0_FIXED_PT_POSITION_ADDR(rshader->input[fixed_pt_position_index].gpr); in evergreen_update_ps_state()
3501 S_028844_NUM_GPRS(rshader->bc.ngpr) | in evergreen_update_ps_state()
3504 S_028844_STACK_SIZE(rshader->bc.nstack)); in evergreen_update_ps_state()
3518 struct r600_shader *rshader = &shader->shader; in evergreen_update_es_state() local
3523 S_028890_NUM_GPRS(rshader->bc.ngpr) | in evergreen_update_es_state()
3525 S_028890_STACK_SIZE(rshader->bc.nstack)); in evergreen_update_es_state()
3535 struct r600_shader *rshader = &shader->shader; in evergreen_update_gs_state() local
3566 (rshader->ring_item_sizes[0]) >> 2); in evergreen_update_gs_state()
3586 S_028878_NUM_GPRS(rshader->bc.ngpr) | in evergreen_update_gs_state()
3588 S_028878_STACK_SIZE(rshader->bc.nstack)); in evergreen_update_gs_state()
3598 struct r600_shader *rshader = &shader->shader; in evergreen_update_vs_state() local
3602 for (i = 0; i < rshader->noutput; i++) { in evergreen_update_vs_state()
3603 if (rshader->output[i].spi_sid) { in evergreen_update_vs_state()
3604 tmp = rshader->output[i].spi_sid << ((nparams & 3) * 8); in evergreen_update_vs_state()
3627 S_028860_NUM_GPRS(rshader->bc.ngpr) | in evergreen_update_vs_state()
3629 S_028860_STACK_SIZE(rshader->bc.nstack)); in evergreen_update_vs_state()
3630 if (rshader->vs_position_window_space) { in evergreen_update_vs_state()
3646 S_02881C_VS_OUT_CCDIST0_VEC_ENA((rshader->cc_dist_mask & 0x0F) != 0) | in evergreen_update_vs_state()
3647 S_02881C_VS_OUT_CCDIST1_VEC_ENA((rshader->cc_dist_mask & 0xF0) != 0) | in evergreen_update_vs_state()
3648 S_02881C_VS_OUT_MISC_VEC_ENA(rshader->vs_out_misc_write) | in evergreen_update_vs_state()
3649 S_02881C_USE_VTX_POINT_SIZE(rshader->vs_out_point_size) | in evergreen_update_vs_state()
3650 S_02881C_USE_VTX_EDGE_FLAG(rshader->vs_out_edgeflag) | in evergreen_update_vs_state()
3651 S_02881C_USE_VTX_VIEWPORT_INDX(rshader->vs_out_viewport) | in evergreen_update_vs_state()
3652 S_02881C_USE_VTX_RENDER_TARGET_INDX(rshader->vs_out_layer); in evergreen_update_vs_state()
3658 struct r600_shader *rshader = &shader->shader; in evergreen_update_hs_state() local
3662 S_0288BC_NUM_GPRS(rshader->bc.ngpr) | in evergreen_update_hs_state()
3664 S_0288BC_STACK_SIZE(rshader->bc.nstack)); in evergreen_update_hs_state()
3672 struct r600_shader *rshader = &shader->shader; in evergreen_update_ls_state() local
3676 S_0288D4_NUM_GPRS(rshader->bc.ngpr) | in evergreen_update_ls_state()
3678 S_0288D4_STACK_SIZE(rshader->bc.nstack)); in evergreen_update_ls_state()