Home
last modified time | relevance | path

Searched refs:vertex_size (Results 1 – 25 of 118) sorted by relevance

12345

/external/mesa3d/src/mesa/drivers/dri/nouveau/
Dnv04_render.c142 swtnl_restart(struct gl_context *ctx, int multi, unsigned vertex_size) in swtnl_restart() argument
153 if (nouveau_pushbuf_space(push, 32 + (4 * vertex_size), 4, 0) || in swtnl_restart()
171 unsigned vertex_size; in swtnl_start() local
178 vertex_size = TNL_CONTEXT(ctx)->clipspace.vertex_size / 4; in swtnl_start()
180 swtnl_restart(ctx, 1, vertex_size); in swtnl_start()
182 swtnl_restart(ctx, 0, vertex_size); in swtnl_start()
208 int vertex_size = TNL_CONTEXT(ctx)->clipspace.vertex_size / 4; \
211 if (PUSH_AVAIL(push) < 32 + (n * vertex_size)) { \
212 if (!swtnl_restart(ctx, multi, vertex_size)) \
216 BEGIN_NV04(push, NV04_TTRI(TLVERTEX_SX(0)), n * vertex_size);
[all …]
/external/chromium_org/third_party/mesa/src/src/mesa/drivers/dri/nouveau/
Dnv04_render.c142 swtnl_restart(struct gl_context *ctx, int multi, unsigned vertex_size) in swtnl_restart() argument
153 if (nouveau_pushbuf_space(push, 32 + (4 * vertex_size), 4, 0) || in swtnl_restart()
171 unsigned vertex_size; in swtnl_start() local
178 vertex_size = TNL_CONTEXT(ctx)->clipspace.vertex_size / 4; in swtnl_start()
180 swtnl_restart(ctx, 1, vertex_size); in swtnl_start()
182 swtnl_restart(ctx, 0, vertex_size); in swtnl_start()
208 int vertex_size = TNL_CONTEXT(ctx)->clipspace.vertex_size / 4; \
211 if (PUSH_AVAIL(push) < 32 + (n * vertex_size)) { \
212 if (!swtnl_restart(ctx, multi, vertex_size)) \
216 BEGIN_NV04(push, NV04_TTRI(TLVERTEX_SX(0)), n * vertex_size);
[all …]
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/draw/
Ddraw_pt_fetch_shade_pipeline.c49 unsigned vertex_size; member
91 fpme->vertex_size = sizeof(struct vertex_header) + nr * 4 * sizeof(float); in fetch_pipeline_prepare()
97 fpme->vertex_size, in fetch_pipeline_prepare()
183 output_verts->vertex_size = input_verts->vertex_size; in draw_vertex_shader_run()
184 output_verts->stride = input_verts->vertex_size; in draw_vertex_shader_run()
187 (struct vertex_header *)MALLOC(output_verts->vertex_size * in draw_vertex_shader_run()
196 input_verts->vertex_size, in draw_vertex_shader_run()
197 input_verts->vertex_size); in draw_vertex_shader_run()
216 fetched_vert_info.vertex_size = fpme->vertex_size; in fetch_pipeline_generic()
217 fetched_vert_info.stride = fpme->vertex_size; in fetch_pipeline_generic()
[all …]
Ddraw_pt_fetch.c43 unsigned vertex_size; member
62 unsigned vertex_size, in draw_pt_fetch_prepare() argument
72 fetch->vertex_size = vertex_size; in draw_pt_fetch_prepare()
135 assert(dst_offset <= vertex_size); in draw_pt_fetch_prepare()
138 key.output_stride = vertex_size; in draw_pt_fetch_prepare()
Ddraw_gs.c202 output = (float (*)[4])((char *)output + shader->vertex_size); in draw_geometry_fetch_outputs()
399 unsigned input_stride = input_verts->vertex_size; in draw_geometry_shader_run()
400 unsigned vertex_size = input_verts->vertex_size; in draw_geometry_shader_run() local
412 output_verts->vertex_size = input_verts->vertex_size; in draw_geometry_shader_run()
413 output_verts->stride = input_verts->vertex_size; in draw_geometry_shader_run()
415 (struct vertex_header *)MALLOC(input_verts->vertex_size * in draw_geometry_shader_run()
433 shader->vertex_size = vertex_size; in draw_geometry_shader_run()
Ddraw_pt_fetch_shade_pipeline_llvm.c51 unsigned vertex_size; member
91 fpme->vertex_size = sizeof(struct vertex_header) + nr * 4 * sizeof(float); in llvm_middle_end_prepare()
229 llvm_vert_info.vertex_size = fpme->vertex_size; in llvm_pipeline_generic()
230 llvm_vert_info.stride = fpme->vertex_size; in llvm_pipeline_generic()
232 (struct vertex_header *)MALLOC(fpme->vertex_size * in llvm_pipeline_generic()
245 fpme->vertex_size, in llvm_pipeline_generic()
254 fpme->vertex_size, in llvm_pipeline_generic()
/external/mesa3d/src/gallium/auxiliary/draw/
Ddraw_pt_fetch_shade_pipeline.c49 unsigned vertex_size; member
91 fpme->vertex_size = sizeof(struct vertex_header) + nr * 4 * sizeof(float); in fetch_pipeline_prepare()
97 fpme->vertex_size, in fetch_pipeline_prepare()
183 output_verts->vertex_size = input_verts->vertex_size; in draw_vertex_shader_run()
184 output_verts->stride = input_verts->vertex_size; in draw_vertex_shader_run()
187 (struct vertex_header *)MALLOC(output_verts->vertex_size * in draw_vertex_shader_run()
196 input_verts->vertex_size, in draw_vertex_shader_run()
197 input_verts->vertex_size); in draw_vertex_shader_run()
216 fetched_vert_info.vertex_size = fpme->vertex_size; in fetch_pipeline_generic()
217 fetched_vert_info.stride = fpme->vertex_size; in fetch_pipeline_generic()
[all …]
Ddraw_pt_fetch.c43 unsigned vertex_size; member
62 unsigned vertex_size, in draw_pt_fetch_prepare() argument
72 fetch->vertex_size = vertex_size; in draw_pt_fetch_prepare()
135 assert(dst_offset <= vertex_size); in draw_pt_fetch_prepare()
138 key.output_stride = vertex_size; in draw_pt_fetch_prepare()
Ddraw_gs.c202 output = (float (*)[4])((char *)output + shader->vertex_size); in draw_geometry_fetch_outputs()
399 unsigned input_stride = input_verts->vertex_size; in draw_geometry_shader_run()
400 unsigned vertex_size = input_verts->vertex_size; in draw_geometry_shader_run() local
412 output_verts->vertex_size = input_verts->vertex_size; in draw_geometry_shader_run()
413 output_verts->stride = input_verts->vertex_size; in draw_geometry_shader_run()
415 (struct vertex_header *)MALLOC(input_verts->vertex_size * in draw_geometry_shader_run()
433 shader->vertex_size = vertex_size; in draw_geometry_shader_run()
Ddraw_pt_fetch_shade_pipeline_llvm.c51 unsigned vertex_size; member
91 fpme->vertex_size = sizeof(struct vertex_header) + nr * 4 * sizeof(float); in llvm_middle_end_prepare()
229 llvm_vert_info.vertex_size = fpme->vertex_size; in llvm_pipeline_generic()
230 llvm_vert_info.stride = fpme->vertex_size; in llvm_pipeline_generic()
232 (struct vertex_header *)MALLOC(fpme->vertex_size * in llvm_pipeline_generic()
245 fpme->vertex_size, in llvm_pipeline_generic()
254 fpme->vertex_size, in llvm_pipeline_generic()
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/svga/
Dsvga_swtnl_backend.c60 ushort vertex_size, in svga_vbuf_render_allocate_vertices() argument
66 size_t size = (size_t)nr_vertices * (size_t)vertex_size; in svga_vbuf_render_allocate_vertices()
70 if (svga_render->vertex_size != vertex_size) in svga_vbuf_render_allocate_vertices()
72 svga_render->vertex_size = (size_t)vertex_size; in svga_vbuf_render_allocate_vertices()
151 size_t used = svga_render->vertex_size * ((size_t)max_index + 1); in svga_vbuf_render_unmap_vertices()
153 offset = svga_render->vbuf_offset + svga_render->vertex_size * min_index; in svga_vbuf_render_unmap_vertices()
154 length = svga_render->vertex_size * (max_index + 1 - min_index); in svga_vbuf_render_unmap_vertices()
233 … unsigned bias = (svga_render->vbuf_offset - svga_render->vdecl_offset) / svga_render->vertex_size; in svga_vbuf_render_draw_arrays()
263 int bias = (svga_render->vbuf_offset - svga_render->vdecl_offset) / svga_render->vertex_size; in svga_vbuf_render_draw_elements()
267 assert(( svga_render->vbuf_offset - svga_render->vdecl_offset) % svga_render->vertex_size == 0); in svga_vbuf_render_draw_elements()
/external/mesa3d/src/gallium/drivers/svga/
Dsvga_swtnl_backend.c60 ushort vertex_size, in svga_vbuf_render_allocate_vertices() argument
66 size_t size = (size_t)nr_vertices * (size_t)vertex_size; in svga_vbuf_render_allocate_vertices()
70 if (svga_render->vertex_size != vertex_size) in svga_vbuf_render_allocate_vertices()
72 svga_render->vertex_size = (size_t)vertex_size; in svga_vbuf_render_allocate_vertices()
151 size_t used = svga_render->vertex_size * ((size_t)max_index + 1); in svga_vbuf_render_unmap_vertices()
153 offset = svga_render->vbuf_offset + svga_render->vertex_size * min_index; in svga_vbuf_render_unmap_vertices()
154 length = svga_render->vertex_size * (max_index + 1 - min_index); in svga_vbuf_render_unmap_vertices()
233 … unsigned bias = (svga_render->vbuf_offset - svga_render->vdecl_offset) / svga_render->vertex_size; in svga_vbuf_render_draw_arrays()
263 int bias = (svga_render->vbuf_offset - svga_render->vdecl_offset) / svga_render->vertex_size; in svga_vbuf_render_draw_elements()
267 assert(( svga_render->vbuf_offset - svga_render->vdecl_offset) % svga_render->vertex_size == 0); in svga_vbuf_render_draw_elements()
/external/mesa3d/src/gallium/drivers/i915/
Di915_prim_emit.c134 unsigned vertex_size; in emit_prim() local
144 vertex_size = i915->current.vertex_info.size * 4; /* in bytes */ in emit_prim()
145 assert(vertex_size >= 12); /* never smaller than 12 bytes */ in emit_prim()
147 if (!BEGIN_BATCH( 1 + nr * vertex_size / 4)) { in emit_prim()
154 if (!BEGIN_BATCH( 1 + nr * vertex_size / 4)) { in emit_prim()
165 ((4 + vertex_size * nr)/4 - 2)); in emit_prim()
Di915_prim_vbuf.c66 size_t vertex_size; member
225 ushort vertex_size, in i915_vbuf_render_allocate_vertices() argument
229 size_t size = (size_t)vertex_size * (size_t)nr_vertices; in i915_vbuf_render_allocate_vertices()
240 offset = util_align_npot(offset, vertex_size); in i915_vbuf_render_allocate_vertices()
242 i915_render->vbo_index = offset / vertex_size; in i915_vbuf_render_allocate_vertices()
253 i915_render->vertex_size = vertex_size; in i915_vbuf_render_allocate_vertices()
288 …i915_render->vbo_max_used = MAX2(i915_render->vbo_max_used, i915_render->vertex_size * (max_index … in i915_vbuf_render_unmap_vertices()
292 i915_render->map_used_start = i915_render->vertex_size * min_index; in i915_vbuf_render_unmap_vertices()
293 i915_render->map_used_end = i915_render->vertex_size * (max_index + 1); in i915_vbuf_render_unmap_vertices()
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/i915/
Di915_prim_emit.c134 unsigned vertex_size; in emit_prim() local
144 vertex_size = i915->current.vertex_info.size * 4; /* in bytes */ in emit_prim()
145 assert(vertex_size >= 12); /* never smaller than 12 bytes */ in emit_prim()
147 if (!BEGIN_BATCH( 1 + nr * vertex_size / 4)) { in emit_prim()
154 if (!BEGIN_BATCH( 1 + nr * vertex_size / 4)) { in emit_prim()
165 ((4 + vertex_size * nr)/4 - 2)); in emit_prim()
Di915_prim_vbuf.c66 size_t vertex_size; member
225 ushort vertex_size, in i915_vbuf_render_allocate_vertices() argument
229 size_t size = (size_t)vertex_size * (size_t)nr_vertices; in i915_vbuf_render_allocate_vertices()
240 offset = util_align_npot(offset, vertex_size); in i915_vbuf_render_allocate_vertices()
242 i915_render->vbo_index = offset / vertex_size; in i915_vbuf_render_allocate_vertices()
253 i915_render->vertex_size = vertex_size; in i915_vbuf_render_allocate_vertices()
288 …i915_render->vbo_max_used = MAX2(i915_render->vbo_max_used, i915_render->vertex_size * (max_index … in i915_vbuf_render_unmap_vertices()
292 i915_render->map_used_start = i915_render->vertex_size * min_index; in i915_vbuf_render_unmap_vertices()
293 i915_render->map_used_end = i915_render->vertex_size * (max_index + 1); in i915_vbuf_render_unmap_vertices()
Di915_state_immediate.c76 unsigned vertex_size = i915->current.vertex_info.size; in upload_S0S1() local
78 LIS1 = ((vertex_size << 24) | in upload_S0S1()
79 (vertex_size << 16)); in upload_S0S1()
/external/chromium_org/third_party/mesa/src/src/mesa/tnl/
Dt_vertex.c55 if (vtx->vertex_size != fp->vertex_size) in match_fastpath()
86 fastpath->vertex_size = vtx->vertex_size; in _tnl_register_fastpath()
267 return vtx->vertex_buf + nr * vtx->vertex_size; in _tnl_get_vertex()
354 vtx->vertex_size = unpacked_size; in _tnl_install_attrs()
356 vtx->vertex_size = offset; in _tnl_install_attrs()
358 assert(vtx->vertex_size <= vtx->max_vertex_size); in _tnl_install_attrs()
359 return vtx->vertex_size; in _tnl_install_attrs()
437 start * vtx->vertex_size)); in _tnl_build_vertices()
454 return (void *)((GLubyte *)dest + vtx->vertex_size * (end - start)); in _tnl_emit_vertices_to_buffer()
473 cdest += vtx->vertex_size; in _tnl_emit_indexed_vertices_to_buffer()
[all …]
/external/mesa3d/src/mesa/tnl/
Dt_vertex.c55 if (vtx->vertex_size != fp->vertex_size) in match_fastpath()
86 fastpath->vertex_size = vtx->vertex_size; in _tnl_register_fastpath()
267 return vtx->vertex_buf + nr * vtx->vertex_size; in _tnl_get_vertex()
354 vtx->vertex_size = unpacked_size; in _tnl_install_attrs()
356 vtx->vertex_size = offset; in _tnl_install_attrs()
358 assert(vtx->vertex_size <= vtx->max_vertex_size); in _tnl_install_attrs()
359 return vtx->vertex_size; in _tnl_install_attrs()
437 start * vtx->vertex_size)); in _tnl_build_vertices()
454 return (void *)((GLubyte *)dest + vtx->vertex_size * (end - start)); in _tnl_emit_vertices_to_buffer()
473 cdest += vtx->vertex_size; in _tnl_emit_indexed_vertices_to_buffer()
[all …]
/external/chromium_org/third_party/mesa/src/src/mesa/vbo/
Dvbo_save_loopback.c91 GLuint vertex_size, in loopback_prim() argument
116 data = buffer + start * vertex_size; in loopback_prim()
165 GLuint vertex_size) in vbo_loopback_vertex_list() argument
190 loopback_prim( ctx, buffer, &prim[i], wrap_count, vertex_size, la, nr ); in vbo_loopback_vertex_list()
Dvbo_split_copy.c86 GLuint vertex_size; member
289 copy->dstptr += copy->vertex_size; in elt()
293 copy->dstbuf_nr * copy->vertex_size)); in elt()
439 copy->vertex_size = 0; in replay_init()
452 copy->vertex_size += attr_size(copy->array[i]); in replay_init()
501 if (copy->vertex_size * copy->limits->max_verts <= copy->limits->max_vb_size) { in replay_init()
505 copy->dstbuf_size = copy->limits->max_vb_size / copy->vertex_size; in replay_init()
512 copy->dstbuf = malloc(copy->dstbuf_size * copy->vertex_size); in replay_init()
524 dst->Stride = copy->vertex_size; in replay_init()
525 dst->StrideB = copy->vertex_size; in replay_init()
/external/mesa3d/src/mesa/vbo/
Dvbo_save_loopback.c91 GLuint vertex_size, in loopback_prim() argument
116 data = buffer + start * vertex_size; in loopback_prim()
165 GLuint vertex_size) in vbo_loopback_vertex_list() argument
190 loopback_prim( ctx, buffer, &prim[i], wrap_count, vertex_size, la, nr ); in vbo_loopback_vertex_list()
Dvbo_split_copy.c86 GLuint vertex_size; member
289 copy->dstptr += copy->vertex_size; in elt()
293 copy->dstbuf_nr * copy->vertex_size)); in elt()
439 copy->vertex_size = 0; in replay_init()
452 copy->vertex_size += attr_size(copy->array[i]); in replay_init()
501 if (copy->vertex_size * copy->limits->max_verts <= copy->limits->max_vb_size) { in replay_init()
505 copy->dstbuf_size = copy->limits->max_vb_size / copy->vertex_size; in replay_init()
512 copy->dstbuf = malloc(copy->dstbuf_size * copy->vertex_size); in replay_init()
524 dst->Stride = copy->vertex_size; in replay_init()
525 dst->StrideB = copy->vertex_size; in replay_init()
/external/mesa3d/src/mesa/drivers/dri/i915/
Dintel_tris.c165 return intel_extend_inline(intel, count * intel->vertex_size); in intel_get_prim_space()
171 count * intel->vertex_size * 4) > INTEL_VB_SIZE || in intel_get_prim_space()
190 intel->prim.current_offset += intel->vertex_size * 4 * count; in intel_get_prim_space()
245 intel->vertex_size * 4); in intel_flush_prim()
257 if (intel->vertex_size != i915->current_vertex_size) { in intel_flush_prim()
271 if (intel->vertex_size != i915->current_vertex_size) { in intel_flush_prim()
272 OUT_BATCH((intel->vertex_size << S1_VERTEX_WIDTH_SHIFT) | in intel_flush_prim()
273 (intel->vertex_size << S1_VERTEX_PITCH_SHIFT)); in intel_flush_prim()
274 i915->current_vertex_size = intel->vertex_size; in intel_flush_prim()
281 OUT_BATCH(offset / (intel->vertex_size * 4)); in intel_flush_prim()
[all …]
/external/chromium_org/third_party/mesa/src/src/mesa/drivers/dri/i915/
Dintel_tris.c165 return intel_extend_inline(intel, count * intel->vertex_size); in intel_get_prim_space()
171 count * intel->vertex_size * 4) > INTEL_VB_SIZE || in intel_get_prim_space()
190 intel->prim.current_offset += intel->vertex_size * 4 * count; in intel_get_prim_space()
245 intel->vertex_size * 4); in intel_flush_prim()
257 if (intel->vertex_size != i915->current_vertex_size) { in intel_flush_prim()
271 if (intel->vertex_size != i915->current_vertex_size) { in intel_flush_prim()
272 OUT_BATCH((intel->vertex_size << S1_VERTEX_WIDTH_SHIFT) | in intel_flush_prim()
273 (intel->vertex_size << S1_VERTEX_PITCH_SHIFT)); in intel_flush_prim()
274 i915->current_vertex_size = intel->vertex_size; in intel_flush_prim()
281 OUT_BATCH(offset / (intel->vertex_size * 4)); in intel_flush_prim()
[all …]

12345