Esempio n. 1
0
void
store_sp_stage_data(enum sh_css_pipe_id id, unsigned stage)
{
	enum sh_css_pipe_id pipe_id = id;
	unsigned int thread_id;
	sh_css_query_sp_thread_id(pipe_id, &thread_id);
	copy_isp_stage_to_sp_stage();
	sh_css_sp_stage.isp_stage_addr =
		sh_css_store_isp_stage_to_ddr(pipe_id, stage);
	sh_css_sp_group.pipe[thread_id].sp_stage_addr[stage] =
		sh_css_store_sp_stage_to_ddr(pipe_id, stage);

	/* Clear for next frame */
	sh_css_sp_stage.program_input_circuit = false;
}
Esempio n. 2
0
void
store_sp_stage_data(enum ia_css_pipe_id id, unsigned int pipe_num, unsigned stage)
{
	unsigned int thread_id;
	sh_css_query_sp_thread_id(pipe_num, &thread_id);
	copy_isp_stage_to_sp_stage();
	if (id != IA_CSS_PIPE_ID_COPY)
		sh_css_sp_stage.isp_stage_addr =
			sh_css_store_isp_stage_to_ddr(pipe_num, stage);
	sh_css_sp_group.pipe[thread_id].sp_stage_addr[stage] =
		sh_css_store_sp_stage_to_ddr(pipe_num, stage);

	/* Clear for next frame */
	sh_css_sp_stage.program_input_circuit = false;
}