Home
last modified time | relevance | path

Searched refs:num_attribs (Results 1 – 25 of 52) sorted by relevance

123

/third_party/mesa3d/src/gallium/auxiliary/util/
Du_draw_quad.c49 uint num_attribs) in util_draw_vertex_buffer() argument
53 assert(num_attribs <= PIPE_MAX_ATTRIBS); in util_draw_vertex_buffer()
58 vbuffer.stride = num_attribs * 4 * sizeof(float); /* vertex size */ in util_draw_vertex_buffer()
79 uint prim_type, uint num_verts, uint num_attribs) in util_draw_user_vertex_buffer() argument
83 assert(num_attribs <= PIPE_MAX_ATTRIBS); in util_draw_user_vertex_buffer()
87 vbuffer.stride = num_attribs * 4 * sizeof(float); /* vertex size */ in util_draw_user_vertex_buffer()
Du_simple_shaders.h49 uint num_attribs,
56 uint num_attribs,
156 uint num_attribs,
Du_draw_quad.h47 uint offset, uint prim_type, uint num_attribs,
52 uint prim_type, uint num_verts, uint num_attribs);
Du_simple_shaders.c61 uint num_attribs, in util_make_vertex_passthrough_shader() argument
66 return util_make_vertex_passthrough_shader_with_so(pipe, num_attribs, in util_make_vertex_passthrough_shader()
74 uint num_attribs, in util_make_vertex_passthrough_shader_with_so() argument
90 for (i = 0; i < num_attribs; i++) { in util_make_vertex_passthrough_shader_with_so()
867 uint num_attribs, in util_make_geometry_passthrough_shader() argument
894 for (i = 0; i < num_attribs; i++) { in util_make_geometry_passthrough_shader()
902 for (i = 0; i < num_attribs; i++) { in util_make_geometry_passthrough_shader()
/third_party/mesa3d/src/glx/
Dcreate_context.c53 unsigned num_attribs = 0; in glXCreateContextAttribsARB() local
68 for (/* empty */; attrib_list[num_attribs * 2] != 0; num_attribs++) in glXCreateContextAttribsARB()
75 for (unsigned int i = 0; i < num_attribs; i++) { in glXCreateContextAttribsARB()
109 gc = psc->vtable->create_context_attribs(psc, cfg, share, num_attribs, in glXCreateContextAttribsARB()
118 gc = indirect_create_context_attribs(psc, cfg, share, num_attribs, in glXCreateContextAttribsARB()
142 num_attribs, in glXCreateContextAttribsARB()
Dglx_pbuffer.c64 const CARD32 * attribs, size_t num_attribs) in ChangeDrawableAttribute() argument
87 GetReqExtra(GLXChangeDrawableAttributes, 8 * num_attribs, req); in ChangeDrawableAttribute()
93 req->numAttribs = (CARD32) num_attribs; in ChangeDrawableAttribute()
98 GetReqExtra(GLXVendorPrivateWithReply, 8 + (8 * num_attribs), vpreq); in ChangeDrawableAttribute()
106 output[1] = num_attribs; in ChangeDrawableAttribute()
110 (void) memcpy(output, attribs, sizeof(CARD32) * 2 * num_attribs); in ChangeDrawableAttribute()
121 for (i = 0; i < num_attribs; i++) { in ChangeDrawableAttribute()
175 const int *attrib_list, size_t num_attribs) in CreateDRIDrawable() argument
203 pdraw->textureTarget = determineTextureTarget(attrib_list, num_attribs); in CreateDRIDrawable()
204 pdraw->textureFormat = determineTextureFormat(attrib_list, num_attribs); in CreateDRIDrawable()
Ddri_common.h81 dri_convert_glx_attribs(unsigned num_attribs, const uint32_t *attribs,
Dindirect_glx.c278 unsigned num_attribs, in indirect_create_context_attribs() argument
296 for (i = 0; i < num_attribs; i++) { in indirect_create_context_attribs()
/third_party/mesa3d/src/mesa/state_tracker/
Dst_cb_drawtex.c45 uint num_attribs; member
94 uint num_attribs, in lookup_shader() argument
104 if (CachedShaders[i].num_attribs == num_attribs) { in lookup_shader()
106 for (j = 0; j < num_attribs; j++) { in lookup_shader()
123 CachedShaders[i].num_attribs = num_attribs; in lookup_shader()
124 for (j = 0; j < num_attribs; j++) { in lookup_shader()
137 for (int j = 0; j < num_attribs; j++) { in lookup_shader()
145 num_attribs, inputs, in lookup_shader()
150 num_attribs, in lookup_shader()
/third_party/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_state_derived.c78 vinfo->num_attribs = 0; in compute_vertex_info()
96 llvmpipe->color_slot[idx] = (int)vinfo->num_attribs; in compute_vertex_info()
100 llvmpipe->face_slot = (int)vinfo->num_attribs; in compute_vertex_info()
110 llvmpipe->viewport_index_slot = (int)vinfo->num_attribs; in compute_vertex_info()
113 llvmpipe->layer_slot = (int)vinfo->num_attribs; in compute_vertex_info()
134 llvmpipe->bcolor_slot[i] = (int)vinfo->num_attribs; in compute_vertex_info()
145 llvmpipe->psize_slot = (int)vinfo->num_attribs; in compute_vertex_info()
155 llvmpipe->viewport_index_slot =(int)vinfo->num_attribs; in compute_vertex_info()
166 llvmpipe->layer_slot = (int)vinfo->num_attribs; in compute_vertex_info()
/third_party/mesa3d/src/gallium/auxiliary/draw/
Ddraw_vertex.h69 uint num_attribs; member
85 return offsetof(const struct vertex_info, attrib[a->num_attribs]); in draw_vinfo_size()
117 const uint n = vinfo->num_attribs; in draw_emit_vertex_attr()
128 vinfo->num_attribs++; in draw_emit_vertex_attr()
Ddraw_vertex.c51 for (i = 0; i < vinfo->num_attribs; i++) in draw_compute_vertex_size()
65 for (i = 0; i < vinfo->num_attribs; i++) { in draw_dump_emitted_vertex()
Ddraw_pt_emit.c84 for (i = 0; i < vinfo->num_attribs; i++) { in draw_pt_emit_prepare()
117 hw_key.nr_elements = vinfo->num_attribs; in draw_pt_emit_prepare()
/third_party/mesa3d/src/glx/tests/
Dcreate_context_unittest.cpp82 uint32_t num_attribs, in xcb_glx_create_context_attribs_arb_checked() argument
93 req.num_attribs = num_attribs; in xcb_glx_create_context_attribs_arb_checked()
95 if (num_attribs != 0 && attribs != NULL) in xcb_glx_create_context_attribs_arb_checked()
96 memcpy(sent_attribs, attribs, num_attribs * 2 * sizeof(uint32_t)); in xcb_glx_create_context_attribs_arb_checked()
324 EXPECT_EQ(4u, req.num_attribs); in TEST_F()
336 EXPECT_EQ(0u, req.num_attribs); in TEST_F()
344 EXPECT_EQ(0u, req.num_attribs); in TEST_F()
Dfake_glx_screen.cpp65 unsigned num_attribs, in indirect_create_context_attribs() argument
69 (void) num_attribs; in indirect_create_context_attribs()
Dfake_glx_screen.h123 unsigned num_attribs, in create_attribs() argument
128 (void) num_attribs; in create_attribs()
/third_party/mesa3d/src/gallium/frontends/va/
Dconfig.c114 VAConfigAttrib *attrib_list, int num_attribs) in vlVaGetConfigAttributes() argument
124 for (i = 0; i < num_attribs; ++i) { in vlVaGetConfigAttributes()
236 VAConfigAttrib *attrib_list, int num_attribs, VAConfigID *config_id) in vlVaCreateConfig() argument
267 for (int i = 0; i < num_attribs; i++) { in vlVaCreateConfig()
335 for (int i = 0; i <num_attribs ; i++) { in vlVaCreateConfig()
415 VAEntrypoint *entrypoint, VAConfigAttrib *attrib_list, int *num_attribs) in vlVaQueryConfigAttributes() argument
451 *num_attribs = 1; in vlVaQueryConfigAttributes()
Dva_private.h354 VAConfigAttrib *attrib_list, int num_attribs);
356 VAConfigAttrib *attrib_list, int num_attribs, VAConfigID *config_id);
359 … VAEntrypoint *entrypoint, VAConfigAttrib *attrib_list, int *num_attribs);
423 unsigned int num_attribs);
425 unsigned int *num_attribs);
Dsurface.c418 VASurfaceAttrib *attrib_list, unsigned int *num_attribs) in vlVaQuerySurfaceAttributes() argument
431 if (!attrib_list && !num_attribs) in vlVaQuerySurfaceAttributes()
435 *num_attribs = VL_VA_MAX_IMAGE_FORMATS + VASurfaceAttribCount; in vlVaQuerySurfaceAttributes()
563 if (i > *num_attribs) { in vlVaQuerySurfaceAttributes()
564 *num_attribs = i; in vlVaQuerySurfaceAttributes()
569 *num_attribs = i; in vlVaQuerySurfaceAttributes()
830 VASurfaceAttrib *attrib_list, unsigned int num_attribs) in vlVaCreateSurfaces2() argument
873 for (i = 0; i < num_attribs && attrib_list; i++) { in vlVaCreateSurfaces2()
/third_party/mesa3d/src/gallium/drivers/softpipe/
Dsp_state_derived.c91 vinfo->num_attribs = 0; in softpipe_compute_vertex_info()
170 softpipe->viewport_index_slot = (int)vinfo->num_attribs; in softpipe_compute_vertex_info()
173 softpipe->layer_slot = (int)vinfo->num_attribs; in softpipe_compute_vertex_info()
198 softpipe->psize_slot = (int)vinfo->num_attribs; in softpipe_compute_vertex_info()
208 softpipe->viewport_index_slot =(int)vinfo->num_attribs; in softpipe_compute_vertex_info()
219 softpipe->layer_slot = (int)vinfo->num_attribs; in softpipe_compute_vertex_info()
/third_party/mesa3d/src/gallium/drivers/nouveau/nv50/
Dnv50_program.c285 so->num_attribs[b] = 0; in nv50_program_create_strmout_state()
290 so->num_attribs[b] = MAX2(so->num_attribs[b], end); in nv50_program_create_strmout_state()
298 assert(!so->num_attribs[b] || so->num_attribs[b] == pso->stride[b]); in nv50_program_create_strmout_state()
299 so->stride[b] = so->num_attribs[b] * 4; in nv50_program_create_strmout_state()
300 if (so->num_attribs[b]) in nv50_program_create_strmout_state()
302 base[b] = align(base[b - 1] + so->num_attribs[b - 1], 4); in nv50_program_create_strmout_state()
309 so->map_size = base[3] + so->num_attribs[3]; in nv50_program_create_strmout_state()
/third_party/mesa3d/src/egl/main/
Degldisplay.c262 size_t num_attribs; in _eglFindDisplay() local
285 num_attribs = _eglNumAttribs(attrib_list); in _eglFindDisplay()
286 if (num_attribs) { in _eglFindDisplay()
287 disp->Options.Attribs = calloc(num_attribs, sizeof(EGLAttrib)); in _eglFindDisplay()
294 num_attribs * sizeof(EGLAttrib)); in _eglFindDisplay()
/third_party/mesa3d/src/gallium/drivers/nouveau/nv30/
Dnv30_draw.c130 BEGIN_NV04(push, NV30_3D(VTXBUF(0)), r->vertex_info.num_attribs); in nv30_render_draw_elements()
131 for (i = 0; i < r->vertex_info.num_attribs; i++) { in nv30_render_draw_elements()
175 BEGIN_NV04(push, NV30_3D(VTXBUF(0)), r->vertex_info.num_attribs); in nv30_render_draw_arrays()
176 for (i = 0; i < r->vertex_info.num_attribs; i++) { in nv30_render_draw_arrays()
306 vinfo->num_attribs = 0; in nv30_render_validate()
/third_party/mesa3d/src/gallium/drivers/zink/
Dzink_pipeline.c57 …if (!screen->info.have_EXT_vertex_input_dynamic_state || !state->element_state->num_attribs || !st… in zink_create_gfx_pipeline()
63 vertex_input_state.vertexAttributeDescriptionCount = state->element_state->num_attribs; in zink_create_gfx_pipeline()
247 if (state->element_state->num_attribs) { in zink_create_gfx_pipeline()
339 …if (!screen->info.have_EXT_vertex_input_dynamic_state || !state->element_state->num_attribs || !st… in zink_create_gfx_pipeline()
/third_party/mesa3d/src/mesa/program/
Dprog_statevars.c1613 unsigned num_attribs, base_attrib, attrib_incr; in _mesa_optimize_state_parameters() local
1616 num_attribs = 3; in _mesa_optimize_state_parameters()
1620 num_attribs = 3; in _mesa_optimize_state_parameters()
1624 num_attribs = 6; in _mesa_optimize_state_parameters()
1630 while (first_param + (num_lights + 1) * num_attribs <= in _mesa_optimize_state_parameters()
1633 unsigned i = 0, base = first_param + num_lights * num_attribs; in _mesa_optimize_state_parameters()
1638 for (i = 0; i < num_attribs; i++) { in _mesa_optimize_state_parameters()
1652 if (i == num_attribs) { in _mesa_optimize_state_parameters()
1655 last_param = base + num_attribs - 1; in _mesa_optimize_state_parameters()

123