Home
last modified time | relevance | path

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

12

/external/mesa3d/src/gallium/auxiliary/util/
Du_draw_quad.c48 uint num_attribs) in util_draw_vertex_buffer() argument
52 assert(num_attribs <= PIPE_MAX_ATTRIBS); in util_draw_vertex_buffer()
57 vbuffer.stride = num_attribs * 4 * sizeof(float); /* vertex size */ in util_draw_vertex_buffer()
78 uint prim_type, uint num_verts, uint num_attribs) in util_draw_user_vertex_buffer() argument
82 assert(num_attribs <= PIPE_MAX_ATTRIBS); in util_draw_user_vertex_buffer()
85 vbuffer.stride = num_attribs * 4 * sizeof(float); /* vertex size */ in util_draw_user_vertex_buffer()
Du_draw_quad.h48 uint num_attribs, uint num_verts, uint prim_type);
52 uint prim_type, uint num_verts, uint num_attribs);
Du_simple_shaders.h48 uint num_attribs,
54 uint num_attribs,
Du_simple_shaders.c60 uint num_attribs, in util_make_vertex_passthrough_shader() argument
64 return util_make_vertex_passthrough_shader_with_so(pipe, num_attribs, in util_make_vertex_passthrough_shader()
71 uint num_attribs, in util_make_vertex_passthrough_shader_with_so() argument
83 for (i = 0; i < num_attribs; i++) { in util_make_vertex_passthrough_shader_with_so()
/external/mesa3d/src/glx/
Dcreate_context.c45 unsigned num_attribs = 0; in glXCreateContextAttribsARB() local
69 for (/* empty */; attrib_list[num_attribs * 2] != 0; num_attribs++) in glXCreateContextAttribsARB()
78 gc = psc->vtable->create_context_attribs(psc, cfg, share, num_attribs, in glXCreateContextAttribsARB()
109 num_attribs, in glXCreateContextAttribsARB()
Dglx_pbuffer.c83 const CARD32 * attribs, size_t num_attribs) in ChangeDrawableAttribute() argument
106 GetReqExtra(GLXChangeDrawableAttributes, 8 * num_attribs, req); in ChangeDrawableAttribute()
112 req->numAttribs = (CARD32) num_attribs; in ChangeDrawableAttribute()
117 GetReqExtra(GLXVendorPrivateWithReply, 8 + (8 * num_attribs), vpreq); in ChangeDrawableAttribute()
125 output[1] = num_attribs; in ChangeDrawableAttribute()
129 (void) memcpy(output, attribs, sizeof(CARD32) * 2 * num_attribs); in ChangeDrawableAttribute()
140 for (i = 0; i < num_attribs; i++) { in ChangeDrawableAttribute()
193 const int *attrib_list, size_t num_attribs) in CreateDRIDrawable() argument
215 pdraw->textureTarget = determineTextureTarget(attrib_list, num_attribs); in CreateDRIDrawable()
216 pdraw->textureFormat = determineTextureFormat(attrib_list, num_attribs); in CreateDRIDrawable()
[all …]
Ddri_common.h73 dri2_convert_glx_attribs(unsigned num_attribs, const uint32_t *attribs,
Ddri_common.c458 dri2_convert_glx_attribs(unsigned num_attribs, const uint32_t *attribs, in dri2_convert_glx_attribs() argument
468 if (num_attribs == 0) { in dri2_convert_glx_attribs()
484 for (i = 0; i < num_attribs; i++) { in dri2_convert_glx_attribs()
/external/mesa3d/src/mesa/state_tracker/
Dst_cb_drawtex.c44 uint num_attribs; member
61 uint num_attribs, in lookup_shader() argument
69 if (CachedShaders[i].num_attribs == num_attribs) { in lookup_shader()
71 for (j = 0; j < num_attribs; j++) { in lookup_shader()
88 CachedShaders[i].num_attribs = num_attribs; in lookup_shader()
89 for (j = 0; j < num_attribs; j++) { in lookup_shader()
96 num_attribs, in lookup_shader()
Dst_draw_feedback.c67 vinfo.num_attribs = 1; in set_feedback_vertex_format()
74 vinfo.num_attribs = st->state.vs->cso->state.num_outputs; in set_feedback_vertex_format()
75 for (i = 0; i < vinfo.num_attribs; i++) { in set_feedback_vertex_format()
/external/mesa3d/src/gallium/auxiliary/draw/
Ddraw_vertex.h80 uint num_attribs; member
97 return offsetof(const struct vertex_info, attrib[a->num_attribs]); in draw_vinfo_size()
130 const uint n = vinfo->num_attribs; in draw_emit_vertex_attr()
135 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.c78 for (i = 0; i < vinfo->num_attribs; i++) { in draw_pt_emit_prepare()
106 hw_key.nr_elements = vinfo->num_attribs; in draw_pt_emit_prepare()
/external/mesa3d/src/glx/tests/
Dfake_glx_screen.h94 unsigned num_attribs, in create_attribs() argument
99 (void) num_attribs; in create_attribs()
138 unsigned num_attribs, in create_attribs() argument
143 (void) num_attribs; in create_attribs()
Dcreate_context_unittest.cpp80 uint32_t num_attribs, in xcb_glx_create_context_attribs_arb_checked() argument
91 req.num_attribs = num_attribs; in xcb_glx_create_context_attribs_arb_checked()
93 if (num_attribs != 0 && attribs != NULL) in xcb_glx_create_context_attribs_arb_checked()
94 memcpy(sent_attribs, attribs, num_attribs * 2 * sizeof(uint32_t)); in xcb_glx_create_context_attribs_arb_checked()
306 EXPECT_EQ(4u, req.num_attribs); in TEST_F()
318 EXPECT_EQ(0u, req.num_attribs); in TEST_F()
326 EXPECT_EQ(0u, req.num_attribs); in TEST_F()
/external/mesa3d/src/gallium/state_trackers/va/
Dva_config.c86 VAConfigAttrib *attrib_list, int num_attribs) in vlVaGetConfigAttributes() argument
96 VAConfigAttrib *attrib_list, int num_attribs, VAConfigID *config_id) in vlVaCreateConfig() argument
115 VAEntrypoint *entrypoint, VAConfigAttrib *attrib_list, int *num_attribs) in vlVaQueryConfigAttributes() argument
Dva_private.h75 …xtP ctx, VAProfile profile, VAEntrypoint entrypoint, VAConfigAttrib *attrib_list, int num_attribs);
76 …ile profile, VAEntrypoint entrypoint, VAConfigAttrib *attrib_list, int num_attribs, VAConfigID *co…
78 …g_id, VAProfile *profile, VAEntrypoint *entrypoint, VAConfigAttrib *attrib_list, int *num_attribs);
/external/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_state_derived.c67 vinfo->num_attribs = 0; in compute_vertex_info()
87 llvmpipe->color_slot[idx] = (int)vinfo->num_attribs; in compute_vertex_info()
103 llvmpipe->bcolor_slot[i] = (int)vinfo->num_attribs; in compute_vertex_info()
115 llvmpipe->psize_slot = vinfo->num_attribs; in compute_vertex_info()
Dlp_bld_interp.c171 for (attrib = 0; attrib < bld->num_attribs; ++attrib) { in coeffs_init_simple()
386 for (attrib = 0; attrib < bld->num_attribs; ++attrib) { in coeffs_init()
740 bld->num_attribs = 1 + num_inputs; in lp_build_interp_soa_init()
743 for (attrib = 0; attrib < bld->num_attribs; ++attrib) { in lp_build_interp_soa_init()
802 attribs_update_simple(bld, gallivm, quad_start_index, NULL, 1, bld->num_attribs); in lp_build_interp_soa_update_inputs()
805 attribs_update(bld, gallivm, quad_start_index, NULL, 1, bld->num_attribs); in lp_build_interp_soa_update_inputs()
830 attribs_update_simple(bld, gallivm, 0, quad_start_index, 1, bld->num_attribs); in lp_build_interp_soa_update_inputs_dyn()
833 attribs_update(bld, gallivm, 0, quad_start_index, 1, bld->num_attribs); in lp_build_interp_soa_update_inputs_dyn()
/external/mesa3d/src/gallium/drivers/nv50/
Dnv50_program.c263 so->num_attribs[b] = 0; in nv50_program_create_strmout_state()
268 so->num_attribs[b] = MAX2(so->num_attribs[b], end); in nv50_program_create_strmout_state()
276 assert(!so->num_attribs[b] || so->num_attribs[b] == pso->stride[b]); in nv50_program_create_strmout_state()
277 so->stride[b] = so->num_attribs[b] * 4; in nv50_program_create_strmout_state()
278 if (so->num_attribs[b]) in nv50_program_create_strmout_state()
280 base[b] = align(base[b - 1] + so->num_attribs[b - 1], 4); in nv50_program_create_strmout_state()
287 so->map_size = base[3] + so->num_attribs[3]; in nv50_program_create_strmout_state()
/external/mesa3d/src/gallium/drivers/softpipe/
Dsp_state_derived.c50 softpipe->vertex_info.num_attribs = 0; in invalidate_vertex_layout()
67 if (vinfo->num_attribs == 0) { in softpipe_get_vertex_info()
78 vinfo_vbuf->num_attribs = 0; in softpipe_get_vertex_info()
88 vinfo->num_attribs = 0; in softpipe_get_vertex_info()
/external/mesa3d/src/mesa/drivers/dri/common/
Ddrisw_util.c100 unsigned num_attribs, in driCreateContextAttribs() argument
116 assert((num_attribs == 0) == (attribs == NULL)); in driCreateContextAttribs()
133 for (unsigned i = 0; i < num_attribs; i++) { in driCreateContextAttribs()
Ddri_util.c164 unsigned num_attribs, in dri2CreateContextAttribs() argument
177 assert((num_attribs == 0) || (attribs != NULL)); in dri2CreateContextAttribs()
202 for (unsigned i = 0; i < num_attribs; i++) { in dri2CreateContextAttribs()
/external/mesa3d/src/egl/drivers/dri2/
Degl_dri2.c787 unsigned num_attribs = 0; in dri2_create_context() local
790 ctx_attribs[num_attribs++] = __DRI_CTX_ATTRIB_MAJOR_VERSION; in dri2_create_context()
791 ctx_attribs[num_attribs++] = dri2_ctx->base.ClientMajorVersion; in dri2_create_context()
792 ctx_attribs[num_attribs++] = __DRI_CTX_ATTRIB_MINOR_VERSION; in dri2_create_context()
793 ctx_attribs[num_attribs++] = dri2_ctx->base.ClientMinorVersion; in dri2_create_context()
806 ctx_attribs[num_attribs++] = __DRI_CTX_ATTRIB_FLAGS; in dri2_create_context()
807 ctx_attribs[num_attribs++] = dri2_ctx->base.Flags; in dri2_create_context()
820 ctx_attribs[num_attribs++] = __DRI_CTX_ATTRIB_RESET_STRATEGY; in dri2_create_context()
821 ctx_attribs[num_attribs++] = __DRI_CTX_RESET_LOSE_CONTEXT; in dri2_create_context()
824 assert(num_attribs <= ARRAY_SIZE(ctx_attribs)); in dri2_create_context()
[all …]
/external/mesa3d/src/gallium/drivers/nv30/
Dnv30_draw.c125 BEGIN_NV04(push, NV30_3D(VTXBUF(0)), r->vertex_info.num_attribs); in nv30_render_draw_elements()
126 for (i = 0; i < r->vertex_info.num_attribs; i++) { in nv30_render_draw_elements()
170 BEGIN_NV04(push, NV30_3D(VTXBUF(0)), r->vertex_info.num_attribs); in nv30_render_draw_arrays()
171 for (i = 0; i < r->vertex_info.num_attribs; i++) { in nv30_render_draw_arrays()
295 vinfo->num_attribs = 0; in nv30_render_validate()

12