Home
last modified time | relevance | path

Searched refs:templ (Results 1 – 25 of 151) sorted by relevance

1234567

/external/mesa3d/src/gallium/drivers/svga/
Dsvga_pipe_rasterizer.c65 const struct pipe_rasterizer_state *templ) in svga_create_rasterizer_state() argument
71 rast->templ = *templ; in svga_create_rasterizer_state()
85 rast->shademode = svga_translate_flatshade( templ->flatshade ); in svga_create_rasterizer_state()
86 rast->cullmode = svga_translate_cullmode( templ->cull_face, in svga_create_rasterizer_state()
87 templ->front_ccw ); in svga_create_rasterizer_state()
88 rast->scissortestenable = templ->scissor; in svga_create_rasterizer_state()
89 rast->multisampleantialias = templ->multisample; in svga_create_rasterizer_state()
90 rast->antialiasedlineenable = templ->line_smooth; in svga_create_rasterizer_state()
91 rast->lastpixel = templ->line_last_pixel; in svga_create_rasterizer_state()
92 rast->pointsprite = templ->sprite_coord_enable != 0x0; in svga_create_rasterizer_state()
[all …]
Dsvga_pipe_depthstencil.c74 const struct pipe_depth_stencil_alpha_state *templ) in svga_create_depth_stencil_state() argument
82 ds->stencil[0].enabled = templ->stencil[0].enabled; in svga_create_depth_stencil_state()
84 ds->stencil[0].func = svga_translate_compare_func(templ->stencil[0].func); in svga_create_depth_stencil_state()
85 ds->stencil[0].fail = svga_translate_stencil_op(templ->stencil[0].fail_op); in svga_create_depth_stencil_state()
86 ds->stencil[0].zfail = svga_translate_stencil_op(templ->stencil[0].zfail_op); in svga_create_depth_stencil_state()
87 ds->stencil[0].pass = svga_translate_stencil_op(templ->stencil[0].zpass_op); in svga_create_depth_stencil_state()
92 ds->stencil_mask = templ->stencil[0].valuemask & 0xff; in svga_create_depth_stencil_state()
93 ds->stencil_writemask = templ->stencil[0].writemask & 0xff; in svga_create_depth_stencil_state()
97 ds->stencil[1].enabled = templ->stencil[1].enabled; in svga_create_depth_stencil_state()
98 if (templ->stencil[1].enabled) { in svga_create_depth_stencil_state()
[all …]
Dsvga_pipe_blend.c79 const struct pipe_blend_state *templ) in svga_create_blend_state() argument
92 if (templ->logicop_enable) { in svga_create_blend_state()
93 switch (templ->logicop_func) { in svga_create_blend_state()
179 blend->rt[i].blend_enable = templ->rt[0].blend_enable; in svga_create_blend_state()
181 if (templ->rt[0].blend_enable) { in svga_create_blend_state()
182 blend->rt[i].srcblend = svga_translate_blend_factor(templ->rt[0].rgb_src_factor); in svga_create_blend_state()
183 blend->rt[i].dstblend = svga_translate_blend_factor(templ->rt[0].rgb_dst_factor); in svga_create_blend_state()
184 blend->rt[i].blendeq = svga_translate_blend_func(templ->rt[0].rgb_func); in svga_create_blend_state()
185 … blend->rt[i].srcblend_alpha = svga_translate_blend_factor(templ->rt[0].alpha_src_factor); in svga_create_blend_state()
186 … blend->rt[i].dstblend_alpha = svga_translate_blend_factor(templ->rt[0].alpha_dst_factor); in svga_create_blend_state()
[all …]
/external/opencv/cv/src/
Dcvtemplmatch.cpp59 CvMat tstub, *templ = (CvMat*)_templ; in icvCrossCorr() local
67 CV_CALL( templ = cvGetMat( templ, &tstub )); in icvCrossCorr()
76 if( !CV_ARE_DEPTHS_EQ( img, templ ) && CV_MAT_DEPTH( templ->type ) != CV_32F ) in icvCrossCorr()
85 if( (!CV_ARE_CNS_EQ( img, corr ) || CV_MAT_CN(templ->type) > 1) && in icvCrossCorr()
86 (CV_MAT_CN( corr->type ) > 1 || !CV_ARE_CNS_EQ( img, templ)) ) in icvCrossCorr()
93 templ_depth = CV_MAT_DEPTH(templ->type); in icvCrossCorr()
94 templ_cn = CV_MAT_CN(templ->type); in icvCrossCorr()
103 if( img->cols < templ->cols || img->rows < templ->rows ) in icvCrossCorr()
107 if( corr->rows > img->rows + templ->rows - 1 || in icvCrossCorr()
108 corr->cols > img->cols + templ->cols - 1 ) in icvCrossCorr()
[all …]
/external/mesa3d/src/gallium/drivers/nv50/
Dnv50_resource.c12 const struct pipe_resource *templ) in nv50_resource_create() argument
14 switch (templ->target) { in nv50_resource_create()
16 return nouveau_buffer_create(screen, templ); in nv50_resource_create()
18 return nv50_miptree_create(screen, templ); in nv50_resource_create()
24 const struct pipe_resource *templ, in nv50_resource_from_handle() argument
27 if (templ->target == PIPE_BUFFER) in nv50_resource_from_handle()
30 return nv50_miptree_from_handle(screen, templ, whandle); in nv50_resource_from_handle()
36 const struct pipe_surface *templ) in nv50_surface_from_buffer() argument
45 sf->base.format = templ->format; in nv50_surface_from_buffer()
46 sf->base.usage = templ->usage; in nv50_surface_from_buffer()
[all …]
Dnv50_miptree.c255 const struct pipe_resource *templ) in nv50_miptree_create() argument
268 *pt = *templ; in nv50_miptree_create()
306 const struct pipe_resource *templ, in nv50_miptree_from_handle() argument
313 if ((templ->target != PIPE_TEXTURE_2D && in nv50_miptree_from_handle()
314 templ->target != PIPE_TEXTURE_RECT) || in nv50_miptree_from_handle()
315 templ->last_level != 0 || in nv50_miptree_from_handle()
316 templ->depth0 != 1 || in nv50_miptree_from_handle()
317 templ->array_size > 1) in nv50_miptree_from_handle()
332 mt->base.base = *templ; in nv50_miptree_from_handle()
371 const struct pipe_surface *templ) in nv50_surface_from_miptree() argument
[all …]
/external/mesa3d/src/gallium/state_trackers/dri/drm/
Ddri2.c211 struct pipe_resource templ; in dri2_drawable_process_buffers() local
225 memset(&templ, 0, sizeof(templ)); in dri2_drawable_process_buffers()
226 templ.target = screen->target; in dri2_drawable_process_buffers()
227 templ.last_level = 0; in dri2_drawable_process_buffers()
228 templ.width0 = dri_drawable->w; in dri2_drawable_process_buffers()
229 templ.height0 = dri_drawable->h; in dri2_drawable_process_buffers()
230 templ.depth0 = 1; in dri2_drawable_process_buffers()
231 templ.array_size = 1; in dri2_drawable_process_buffers()
274 templ.format = format; in dri2_drawable_process_buffers()
275 templ.bind = bind; in dri2_drawable_process_buffers()
[all …]
/external/mesa3d/src/gallium/state_trackers/egl/android/
Dnative_android.cpp176 import_buffer(struct android_display *adpy, const struct pipe_resource *templ, in import_buffer() argument
182 if (templ->bind & PIPE_BIND_RENDER_TARGET) { in import_buffer()
183 if (!screen->is_format_supported(screen, templ->format, in import_buffer()
184 templ->target, 0, PIPE_BIND_RENDER_TARGET)) in import_buffer()
187 if (templ->bind & PIPE_BIND_SAMPLER_VIEW) { in import_buffer()
188 if (!screen->is_format_supported(screen, templ->format, in import_buffer()
189 templ->target, 0, PIPE_BIND_SAMPLER_VIEW)) in import_buffer()
206 abuf->stride * util_format_get_blocksize(templ->format); in import_buffer()
208 res = screen->resource_from_handle(screen, templ, &handle); in import_buffer()
216 abuf->stride * util_format_get_blocksize(templ->format); in import_buffer()
[all …]
/external/boringssl/src/tool/
Dargs.cc31 const struct argument *templ = nullptr; in ParseKeyValueArguments() local
34 templ = &templates[j]; in ParseKeyValueArguments()
39 if (templ == nullptr) { in ParseKeyValueArguments()
49 if (templ->type == kBooleanArgument) { in ParseKeyValueArguments()
61 const struct argument *templ = &templates[j]; in ParseKeyValueArguments() local
62 if (templ->type == kRequiredArgument && in ParseKeyValueArguments()
63 out_args->find(templ->name) == out_args->end()) { in ParseKeyValueArguments()
64 fprintf(stderr, "Missing value for required argument: %s\n", templ->name); in ParseKeyValueArguments()
74 const struct argument *templ = &templates[i]; in PrintUsage() local
75 fprintf(stderr, "%s\t%s\n", templ->name, templ->description); in PrintUsage()
/external/mesa3d/src/gallium/drivers/nvc0/
Dnvc0_resource.c9 const struct pipe_resource *templ) in nvc0_resource_create() argument
11 switch (templ->target) { in nvc0_resource_create()
13 return nouveau_buffer_create(screen, templ); in nvc0_resource_create()
15 return nvc0_miptree_create(screen, templ); in nvc0_resource_create()
21 const struct pipe_resource *templ, in nvc0_resource_from_handle() argument
24 if (templ->target == PIPE_BUFFER) { in nvc0_resource_from_handle()
28 templ, whandle); in nvc0_resource_from_handle()
37 const struct pipe_surface *templ) in nvc0_surface_create() argument
40 return nv50_surface_from_buffer(pipe, pres, templ); in nvc0_surface_create()
41 return nvc0_miptree_surface_new(pipe, pres, templ); in nvc0_surface_create()
/external/mesa3d/src/gallium/state_trackers/egl/common/
Dnative_wayland_drm_bufmgr_helper.c20 struct pipe_resource templ; in egl_g3d_wl_drm_helper_reference_buffer() local
39 memset(&templ, 0, sizeof(templ)); in egl_g3d_wl_drm_helper_reference_buffer()
40 templ.target = PIPE_TEXTURE_2D; in egl_g3d_wl_drm_helper_reference_buffer()
41 templ.format = pf; in egl_g3d_wl_drm_helper_reference_buffer()
42 templ.bind = PIPE_BIND_RENDER_TARGET | PIPE_BIND_SAMPLER_VIEW; in egl_g3d_wl_drm_helper_reference_buffer()
43 templ.width0 = buffer->buffer.width; in egl_g3d_wl_drm_helper_reference_buffer()
44 templ.height0 = buffer->buffer.height; in egl_g3d_wl_drm_helper_reference_buffer()
45 templ.depth0 = 1; in egl_g3d_wl_drm_helper_reference_buffer()
46 templ.array_size = 1; in egl_g3d_wl_drm_helper_reference_buffer()
53 ndpy->screen->resource_from_handle(ndpy->screen, &templ, &wsh); in egl_g3d_wl_drm_helper_reference_buffer()
Degl_g3d_image.c72 struct pipe_resource templ; in egl_g3d_create_drm_buffer() local
105 memset(&templ, 0, sizeof(templ)); in egl_g3d_create_drm_buffer()
106 templ.target = PIPE_TEXTURE_2D; in egl_g3d_create_drm_buffer()
107 templ.format = format; in egl_g3d_create_drm_buffer()
108 templ.bind = PIPE_BIND_RENDER_TARGET | PIPE_BIND_SAMPLER_VIEW; in egl_g3d_create_drm_buffer()
109 templ.width0 = attrs.Width; in egl_g3d_create_drm_buffer()
110 templ.height0 = attrs.Height; in egl_g3d_create_drm_buffer()
111 templ.depth0 = 1; in egl_g3d_create_drm_buffer()
112 templ.array_size = 1; in egl_g3d_create_drm_buffer()
120 templ.bind |= PIPE_BIND_SCANOUT; in egl_g3d_create_drm_buffer()
[all …]
Degl_g3d_st.c134 struct pipe_resource templ, *ptex; in pbuffer_allocate_pbuffer_texture() local
136 memset(&templ, 0, sizeof(templ)); in pbuffer_allocate_pbuffer_texture()
137 templ.target = PIPE_TEXTURE_2D; in pbuffer_allocate_pbuffer_texture()
138 templ.last_level = 0; in pbuffer_allocate_pbuffer_texture()
139 templ.width0 = gsurf->base.Width; in pbuffer_allocate_pbuffer_texture()
140 templ.height0 = gsurf->base.Height; in pbuffer_allocate_pbuffer_texture()
141 templ.depth0 = 1; in pbuffer_allocate_pbuffer_texture()
142 templ.array_size = 1; in pbuffer_allocate_pbuffer_texture()
143 templ.format = gsurf->stvis.color_format; in pbuffer_allocate_pbuffer_texture()
145 templ.bind = PIPE_BIND_RENDER_TARGET | PIPE_BIND_SAMPLER_VIEW; in pbuffer_allocate_pbuffer_texture()
[all …]
Dnative_helper.c137 struct pipe_resource templ; in resource_surface_add_resources() local
147 memset(&templ, 0, sizeof(templ)); in resource_surface_add_resources()
148 templ.target = PIPE_TEXTURE_2D; in resource_surface_add_resources()
149 templ.format = rsurf->format; in resource_surface_add_resources()
150 templ.bind = rsurf->bind; in resource_surface_add_resources()
151 templ.width0 = rsurf->width; in resource_surface_add_resources()
152 templ.height0 = rsurf->height; in resource_surface_add_resources()
153 templ.depth0 = 1; in resource_surface_add_resources()
154 templ.array_size = 1; in resource_surface_add_resources()
161 rsurf->screen->resource_create(rsurf->screen, &templ); in resource_surface_add_resources()
[all …]
/external/mesa3d/src/gallium/drivers/r600/
Dr600_resource.c27 const struct pipe_resource *templ) in r600_resource_create() argument
29 if (templ->target == PIPE_BUFFER) { in r600_resource_create()
30 if (templ->bind & PIPE_BIND_GLOBAL) { in r600_resource_create()
31 return r600_compute_global_buffer_create(screen, templ); in r600_resource_create()
34 return r600_buffer_create(screen, templ, 4096); in r600_resource_create()
37 return r600_texture_create(screen, templ); in r600_resource_create()
42 const struct pipe_resource *templ, in r600_resource_from_handle() argument
45 if (templ->target == PIPE_BUFFER) { in r600_resource_from_handle()
48 return r600_texture_from_handle(screen, templ, whandle); in r600_resource_from_handle()
Dcompute_memory_pool.c48 struct pipe_resource templ; in create_pool_texture() local
54 memset(&templ, 0, sizeof(templ)); in create_pool_texture()
55 templ.target = PIPE_TEXTURE_1D; in create_pool_texture()
56 templ.format = PIPE_FORMAT_R32_UINT; in create_pool_texture()
57 templ.bind = PIPE_BIND_CUSTOM; in create_pool_texture()
58 templ.usage = PIPE_USAGE_IMMUTABLE; in create_pool_texture()
59 templ.flags = 0; in create_pool_texture()
60 templ.width0 = size_in_dw; in create_pool_texture()
61 templ.height0 = 1; in create_pool_texture()
62 templ.depth0 = 1; in create_pool_texture()
[all …]
/external/mesa3d/src/gallium/drivers/radeonsi/
Dr600_resource.c27 const struct pipe_resource *templ) in r600_resource_create() argument
29 if (templ->target == PIPE_BUFFER) { in r600_resource_create()
30 return si_buffer_create(screen, templ); in r600_resource_create()
32 return si_texture_create(screen, templ); in r600_resource_create()
37 const struct pipe_resource *templ, in r600_resource_from_handle() argument
40 if (templ->target == PIPE_BUFFER) { in r600_resource_from_handle()
43 return si_texture_from_handle(screen, templ, whandle); in r600_resource_from_handle()
/external/mesa3d/src/gallium/state_trackers/wgl/
Dstw_st.c64 struct pipe_resource templ; in stw_st_framebuffer_validate_locked() local
73 memset(&templ, 0, sizeof(templ)); in stw_st_framebuffer_validate_locked()
74 templ.target = PIPE_TEXTURE_2D; in stw_st_framebuffer_validate_locked()
75 templ.width0 = width; in stw_st_framebuffer_validate_locked()
76 templ.height0 = height; in stw_st_framebuffer_validate_locked()
77 templ.depth0 = 1; in stw_st_framebuffer_validate_locked()
78 templ.array_size = 1; in stw_st_framebuffer_validate_locked()
79 templ.last_level = 0; in stw_st_framebuffer_validate_locked()
110 templ.format = format; in stw_st_framebuffer_validate_locked()
111 templ.bind = bind; in stw_st_framebuffer_validate_locked()
[all …]
/external/mesa3d/src/gallium/state_trackers/gbm/
Dgbm_drm.c178 struct pipe_resource templ; in gbm_gallium_drm_bo_create() local
195 memset(&templ, 0, sizeof(templ)); in gbm_gallium_drm_bo_create()
196 templ.bind = gbm_usage_to_gallium(usage); in gbm_gallium_drm_bo_create()
197 templ.format = pf; in gbm_gallium_drm_bo_create()
198 templ.target = PIPE_TEXTURE_2D; in gbm_gallium_drm_bo_create()
199 templ.last_level = 0; in gbm_gallium_drm_bo_create()
200 templ.width0 = width; in gbm_gallium_drm_bo_create()
201 templ.height0 = height; in gbm_gallium_drm_bo_create()
202 templ.depth0 = 1; in gbm_gallium_drm_bo_create()
203 templ.array_size = 1; in gbm_gallium_drm_bo_create()
[all …]
/external/mesa3d/src/gallium/winsys/sw/wrapper/
Dwrapper_sw_winsys.c140 struct pipe_resource templ; in wsw_dt_create() local
146 memset(&templ, 0, sizeof(templ)); in wsw_dt_create()
147 templ.target = wsw->target; in wsw_dt_create()
148 templ.width0 = width; in wsw_dt_create()
149 templ.height0 = height; in wsw_dt_create()
150 templ.depth0 = 1; in wsw_dt_create()
151 templ.array_size = 1; in wsw_dt_create()
152 templ.format = format; in wsw_dt_create()
153 templ.bind = bind; in wsw_dt_create()
157 tex = wsw->screen->resource_create(wsw->screen, &templ); in wsw_dt_create()
[all …]
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_common.cc298 bool TemplateMatch(const char *templ, const char *str) { in TemplateMatch() argument
302 if (templ && templ[0] == '^') { in TemplateMatch()
304 templ++; in TemplateMatch()
307 while (templ && templ[0]) { in TemplateMatch()
308 if (templ[0] == '*') { in TemplateMatch()
309 templ++; in TemplateMatch()
314 if (templ[0] == '$') in TemplateMatch()
318 char *tpos = (char*)internal_strchr(templ, '*'); in TemplateMatch()
319 char *tpos1 = (char*)internal_strchr(templ, '$'); in TemplateMatch()
325 const char *spos = internal_strstr(str, templ); in TemplateMatch()
[all …]
/external/drm_gralloc/
Dgralloc_drm_pipe.c114 struct pipe_resource templ; in get_pipe_buffer_locked() local
116 memset(&templ, 0, sizeof(templ)); in get_pipe_buffer_locked()
117 templ.format = get_pipe_format(handle->format); in get_pipe_buffer_locked()
118 templ.bind = get_pipe_bind(handle->usage); in get_pipe_buffer_locked()
119 templ.target = PIPE_TEXTURE_2D; in get_pipe_buffer_locked()
121 if (templ.format == PIPE_FORMAT_NONE || in get_pipe_buffer_locked()
122 !pm->screen->is_format_supported(pm->screen, templ.format, in get_pipe_buffer_locked()
123 templ.target, 0, templ.bind)) { in get_pipe_buffer_locked()
134 templ.width0 = handle->width; in get_pipe_buffer_locked()
135 templ.height0 = handle->height; in get_pipe_buffer_locked()
[all …]
/external/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_state_so.c38 const struct pipe_stream_output_info *templ) in llvmpipe_create_stream_output_state() argument
44 so->base.num_outputs = templ->num_outputs; in llvmpipe_create_stream_output_state()
45 memcpy(so->base.stride, templ->stride, sizeof(templ->stride)); in llvmpipe_create_stream_output_state()
46 memcpy(so->base.output, templ->output, in llvmpipe_create_stream_output_state()
47 templ->num_outputs * sizeof(templ->output[0])); in llvmpipe_create_stream_output_state()
/external/mesa3d/src/gallium/state_trackers/dri/sw/
Ddrisw.c190 struct pipe_resource templ; in drisw_allocate_textures() local
207 memset(&templ, 0, sizeof(templ)); in drisw_allocate_textures()
208 templ.target = screen->target; in drisw_allocate_textures()
209 templ.width0 = width; in drisw_allocate_textures()
210 templ.height0 = height; in drisw_allocate_textures()
211 templ.depth0 = 1; in drisw_allocate_textures()
212 templ.array_size = 1; in drisw_allocate_textures()
213 templ.last_level = 0; in drisw_allocate_textures()
232 templ.format = format; in drisw_allocate_textures()
233 templ.bind = bind; in drisw_allocate_textures()
[all …]
/external/mesa3d/src/gallium/state_trackers/glx/xlib/
Dxm_st.c119 struct pipe_resource templ; in xmesa_st_framebuffer_validate_textures() local
128 memset(&templ, 0, sizeof(templ)); in xmesa_st_framebuffer_validate_textures()
129 templ.target = xstfb->target; in xmesa_st_framebuffer_validate_textures()
130 templ.width0 = width; in xmesa_st_framebuffer_validate_textures()
131 templ.height0 = height; in xmesa_st_framebuffer_validate_textures()
132 templ.depth0 = 1; in xmesa_st_framebuffer_validate_textures()
133 templ.array_size = 1; in xmesa_st_framebuffer_validate_textures()
134 templ.last_level = 0; in xmesa_st_framebuffer_validate_textures()
167 templ.format = format; in xmesa_st_framebuffer_validate_textures()
168 templ.bind = bind; in xmesa_st_framebuffer_validate_textures()
[all …]

1234567