Home
last modified time | relevance | path

Searched refs:so_info (Results 1 – 20 of 20) sorted by relevance

/external/mesa3d/src/gallium/drivers/zink/
Dzink_compiler.c212 for (unsigned i = 0; i < sh->streamout.so_info.num_outputs; i++) { in update_so_info()
213 struct pipe_stream_output *output = &sh->streamout.so_info.output[i]; in update_so_info()
258 const struct pipe_stream_output_info *so_info) in zink_shader_create() argument
351 if (so_info) { in zink_shader_create()
352 memcpy(&ret->streamout.so_info, so_info, sizeof(struct pipe_stream_output_info)); in zink_shader_create()
353 ret->streamout.so_info_slots = malloc(so_info->num_outputs * sizeof(unsigned int)); in zink_shader_create()
Dzink_compiler.h47 struct pipe_stream_output_info so_info; member
82 const struct pipe_stream_output_info *so_info);
Dzink_draw.c310 t->stride = shader->streamout.so_info.stride[i] * sizeof(uint32_t); in zink_draw_vbo()
/external/virglrenderer/src/
Dvrend_decode.c67 struct pipe_stream_output_info so_info; in vrend_decode_create_shader() local
96 so_info.num_outputs = num_so_outputs; in vrend_decode_create_shader()
97 if (so_info.num_outputs) { in vrend_decode_create_shader()
99 so_info.stride[i] = get_buf_entry(buf, VIRGL_OBJ_SHADER_SO_STRIDE(i)); in vrend_decode_create_shader()
100 for (i = 0; i < so_info.num_outputs; i++) { in vrend_decode_create_shader()
103 so_info.output[i].register_index = tmp & 0xff; in vrend_decode_create_shader()
104 so_info.output[i].start_component = (tmp >> 8) & 0x3; in vrend_decode_create_shader()
105 so_info.output[i].num_components = (tmp >> 10) & 0x7; in vrend_decode_create_shader()
106 so_info.output[i].output_buffer = (tmp >> 13) & 0x7; in vrend_decode_create_shader()
107 so_info.output[i].dst_offset = (tmp >> 16) & 0xffff; in vrend_decode_create_shader()
[all …]
Dvrend_shader.h113 struct pipe_stream_output_info so_info; member
Dvrend_renderer.c1103 for (i = 0; i < sel->sinfo.so_info.num_outputs; i++) in vrend_destroy_shader_selector()
1322 struct pipe_stream_output_info *so = &sinfo->so_info; in set_stream_out_varyings()
3514 static void *vrend_create_shader_state(const struct pipe_stream_output_info *so_info, in vrend_create_shader_state() argument
3525 sel->sinfo.so_info = *so_info; in vrend_create_shader_state()
3548 const struct pipe_stream_output_info *so_info, in vrend_create_shader() argument
3592 sel = vrend_create_shader_state(so_info, req_local_mem, type); in vrend_create_shader()
4448 struct pipe_stream_output_info so_info; in vrend_inject_tcs() local
4450 memset(&so_info, 0, sizeof(so_info)); in vrend_inject_tcs()
4451 struct vrend_shader_selector *sel = vrend_create_shader_state(&so_info, in vrend_inject_tcs()
Dvrend_shader.c6871 for (unsigned i = 0; i < sinfo->so_info.num_outputs; ++i) in fill_sinfo()
6996 if (sinfo->so_info.num_outputs) { in vrend_convert_shader()
6997 ctx.so = &sinfo->so_info; in vrend_convert_shader()
6998 ctx.so_names = calloc(sinfo->so_info.num_outputs, sizeof(char *)); in vrend_convert_shader()
/external/mesa3d/src/gallium/drivers/zink/nir_to_spirv/
Dnir_to_spirv.c42 const struct zink_so_info *so_info; member
882 emit_so_info(struct ntv_context *ctx, const struct zink_so_info *so_info) in emit_so_info() argument
884 for (unsigned i = 0; i < so_info->so_info.num_outputs; i++) { in emit_so_info()
885 struct pipe_stream_output so_output = so_info->so_info.output[i]; in emit_so_info()
886 unsigned slot = so_info->so_info_slots[i]; in emit_so_info()
899 …spirv_builder_emit_xfb_stride(&ctx->builder, var_id, so_info->so_info.stride[so_output.output_buff… in emit_so_info()
926 const struct zink_so_info *so_info) in emit_so_outputs() argument
929 for (unsigned i = 0; i < so_info->so_info.num_outputs; i++) { in emit_so_outputs()
931 unsigned slot = so_info->so_info_slots[i]; in emit_so_outputs()
932 struct pipe_stream_output so_output = so_info->so_info.output[i]; in emit_so_outputs()
[all …]
Dnir_to_spirv.h46 nir_to_spirv(struct nir_shader *s, const struct zink_so_info *so_info,
/external/virglrenderer/tests/
Dtestvirgl_encode.c205 const struct pipe_stream_output_info *so_info) in virgl_emit_shader_streamout() argument
211 if (so_info) in virgl_emit_shader_streamout()
212 num_outputs = so_info->num_outputs; in virgl_emit_shader_streamout()
217 virgl_encoder_write_dword(ctx->cbuf, so_info->stride[i]); in virgl_emit_shader_streamout()
219 for (i = 0; i < so_info->num_outputs; i++) { in virgl_emit_shader_streamout()
221 VIRGL_OBJ_SHADER_SO_OUTPUT_REGISTER_INDEX(so_info->output[i].register_index) | in virgl_emit_shader_streamout()
222 VIRGL_OBJ_SHADER_SO_OUTPUT_START_COMPONENT(so_info->output[i].start_component) | in virgl_emit_shader_streamout()
223 VIRGL_OBJ_SHADER_SO_OUTPUT_NUM_COMPONENTS(so_info->output[i].num_components) | in virgl_emit_shader_streamout()
224 VIRGL_OBJ_SHADER_SO_OUTPUT_BUFFER(so_info->output[i].output_buffer) | in virgl_emit_shader_streamout()
225 VIRGL_OBJ_SHADER_SO_OUTPUT_DST_OFFSET(so_info->output[i].dst_offset); in virgl_emit_shader_streamout()
/external/mesa3d/src/gallium/drivers/virgl/
Dvirgl_encode.c457 const struct pipe_stream_output_info *so_info) in virgl_emit_shader_streamout() argument
463 if (so_info) in virgl_emit_shader_streamout()
464 num_outputs = so_info->num_outputs; in virgl_emit_shader_streamout()
469 virgl_encoder_write_dword(ctx->cbuf, so_info->stride[i]); in virgl_emit_shader_streamout()
471 for (i = 0; i < so_info->num_outputs; i++) { in virgl_emit_shader_streamout()
473 VIRGL_OBJ_SHADER_SO_OUTPUT_REGISTER_INDEX(so_info->output[i].register_index) | in virgl_emit_shader_streamout()
474 VIRGL_OBJ_SHADER_SO_OUTPUT_START_COMPONENT(so_info->output[i].start_component) | in virgl_emit_shader_streamout()
475 VIRGL_OBJ_SHADER_SO_OUTPUT_NUM_COMPONENTS(so_info->output[i].num_components) | in virgl_emit_shader_streamout()
476 VIRGL_OBJ_SHADER_SO_OUTPUT_BUFFER(so_info->output[i].output_buffer) | in virgl_emit_shader_streamout()
477 VIRGL_OBJ_SHADER_SO_OUTPUT_DST_OFFSET(so_info->output[i].dst_offset); in virgl_emit_shader_streamout()
[all …]
Dvirgl_encode.h94 const struct pipe_stream_output_info *so_info,
Dvirgl_context.c1304 struct pipe_stream_output_info so_info = {}; in virgl_create_compute_state() local
1309 &so_info, in virgl_create_compute_state()
/external/mesa3d/src/gallium/drivers/r600/sfn/
Dsfn_vertexstageexport.h36 const pipe_stream_output_info *so_info,
Dsfn_vertexstageexport.cpp23 const pipe_stream_output_info *so_info, in VertexStageExportForFS() argument
30 m_so_info(so_info), in VertexStageExportForFS()
/external/mesa3d/src/mesa/state_tracker/
Dst_program.c464 struct pipe_stream_output_info *so_info = in st_translate_stream_output_info() local
468 so_info->output[i].register_index = in st_translate_stream_output_info()
470 so_info->output[i].start_component = info->Outputs[i].ComponentOffset; in st_translate_stream_output_info()
471 so_info->output[i].num_components = info->Outputs[i].NumComponents; in st_translate_stream_output_info()
472 so_info->output[i].output_buffer = info->Outputs[i].OutputBuffer; in st_translate_stream_output_info()
473 so_info->output[i].dst_offset = info->Outputs[i].DstOffset; in st_translate_stream_output_info()
474 so_info->output[i].stream = info->Outputs[i].StreamId; in st_translate_stream_output_info()
478 so_info->stride[i] = info->Buffers[i].Stride; in st_translate_stream_output_info()
480 so_info->num_outputs = info->NumOutputs; in st_translate_stream_output_info()
/external/mesa3d/src/freedreno/vulkan/
Dtu_shader.c751 struct ir3_stream_output_info so_info = {}; in tu_shader_create() local
755 tu_gather_xfb_info(nir, &so_info); in tu_shader_create()
803 &so_info); in tu_shader_create()
/external/mesa3d/src/gallium/drivers/iris/
Diris_program.c319 update_so_info(struct pipe_stream_output_info *so_info, in update_so_info() argument
328 for (unsigned i = 0; i < so_info->num_outputs; i++) { in update_so_info()
329 struct pipe_stream_output *output = &so_info->output[i]; in update_so_info()
2170 const struct pipe_stream_output_info *so_info) in iris_create_uncompiled_shader() argument
2192 if (so_info) { in iris_create_uncompiled_shader()
2193 memcpy(&ish->stream_output, so_info, sizeof(*so_info)); in iris_create_uncompiled_shader()
/external/mesa3d/src/gallium/drivers/panfrost/
Dpan_context.c746 update_so_info(struct pipe_stream_output_info *so_info, in update_so_info() argument
756 for (unsigned i = 0; i < so_info->num_outputs; i++) { in update_so_info()
757 struct pipe_stream_output *output = &so_info->output[i]; in update_so_info()
/external/mesa3d/src/amd/vulkan/
Dradv_pipeline.c2012 struct radv_streamout_info *so_info = nir[MESA_SHADER_TESS_CTRL] in gfx10_get_ngg_info() local
2016 if (so_info->num_outputs) in gfx10_get_ngg_info()
2017 esvert_lds_size = 4 * so_info->num_outputs + 1; in gfx10_get_ngg_info()