Home
last modified time | relevance | path

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

12345678

/external/mesa3d/src/gallium/drivers/svga/
Dsvga_pipe_rasterizer.c109 unsigned fill_mode = translate_fill_mode(rast->templ.fill_front); in define_rasterizer_object()
110 const unsigned cull_mode = translate_cull_mode(rast->templ.cull_face); in define_rasterizer_object()
111 const int depth_bias = rast->templ.offset_units; in define_rasterizer_object()
112 const float slope_scaled_depth_bias = rast->templ.offset_scale; in define_rasterizer_object()
115 const float line_width = rast->templ.line_width > 0.0f ? in define_rasterizer_object()
116 rast->templ.line_width : 1.0f; in define_rasterizer_object()
117 const uint8 line_factor = rast->templ.line_stipple_enable ? in define_rasterizer_object()
118 rast->templ.line_stipple_factor : 0; in define_rasterizer_object()
119 const uint16 line_pattern = rast->templ.line_stipple_enable ? in define_rasterizer_object()
120 rast->templ.line_stipple_pattern : 0; in define_rasterizer_object()
[all …]
Dsvga_pipe_depthstencil.c132 const struct pipe_depth_stencil_alpha_state *templ) in svga_create_depth_stencil_state() argument
144 ds->stencil[0].enabled = templ->stencil[0].enabled; in svga_create_depth_stencil_state()
146 ds->stencil[0].func = svga_translate_compare_func(templ->stencil[0].func); in svga_create_depth_stencil_state()
147 ds->stencil[0].fail = svga_translate_stencil_op(templ->stencil[0].fail_op); in svga_create_depth_stencil_state()
148 ds->stencil[0].zfail = svga_translate_stencil_op(templ->stencil[0].zfail_op); in svga_create_depth_stencil_state()
149 ds->stencil[0].pass = svga_translate_stencil_op(templ->stencil[0].zpass_op); in svga_create_depth_stencil_state()
154 ds->stencil_mask = templ->stencil[0].valuemask & 0xff; in svga_create_depth_stencil_state()
155 ds->stencil_writemask = templ->stencil[0].writemask & 0xff; in svga_create_depth_stencil_state()
164 ds->stencil[1].enabled = templ->stencil[1].enabled; in svga_create_depth_stencil_state()
165 if (templ->stencil[1].enabled) { in svga_create_depth_stencil_state()
[all …]
Dsvga_pipe_blend.c142 const struct pipe_blend_state *templ) in svga_create_blend_state() argument
158 if (templ->logicop_enable) { in svga_create_blend_state()
159 switch (templ->logicop_func) { in svga_create_blend_state()
253 if (templ->logicop_func == PIPE_LOGICOP_XOR) { in svga_create_blend_state()
257 else if (templ->logicop_func != PIPE_LOGICOP_COPY) { in svga_create_blend_state()
267 if (templ->independent_blend_enable || templ->rt[0].blend_enable) { in svga_create_blend_state()
270 svga_translate_blend_factor(svga, templ->rt[0].rgb_src_factor); in svga_create_blend_state()
272 svga_translate_blend_factor(svga, templ->rt[0].rgb_dst_factor); in svga_create_blend_state()
274 svga_translate_blend_func(templ->rt[0].rgb_func); in svga_create_blend_state()
276 svga_translate_blend_factor(svga, templ->rt[0].alpha_src_factor); in svga_create_blend_state()
[all …]
/external/mesa3d/src/gallium/drivers/nouveau/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
28 if (templ->target == PIPE_BUFFER) in nv50_resource_from_handle()
31 return nv50_miptree_from_handle(screen, templ, whandle); in nv50_resource_from_handle()
37 const struct pipe_surface *templ) in nv50_surface_from_buffer() argument
46 sf->base.format = templ->format; in nv50_surface_from_buffer()
47 sf->base.writable = templ->writable; in nv50_surface_from_buffer()
[all …]
Dnv98_video.c86 const struct pipe_video_codec *templ) in nv98_create_decoder() argument
99 return vl_create_decoder(context, templ); in nv98_create_decoder()
101 if (templ->entrypoint != PIPE_VIDEO_ENTRYPOINT_BITSTREAM) { in nv98_create_decoder()
102 debug_printf("%x\n", templ->entrypoint); in nv98_create_decoder()
110 dec->base = *templ; in nv98_create_decoder()
196 switch (u_reduce_video_profile(templ->profile)) { in nv98_create_decoder()
199 assert(templ->max_references <= 2); in nv98_create_decoder()
204 tmp_size = mb(templ->height)*16 * mb(templ->width)*16; in nv98_create_decoder()
205 assert(templ->max_references <= 2); in nv98_create_decoder()
210 tmp_size = mb(templ->height)*16 * mb(templ->width)*16; in nv98_create_decoder()
[all …]
Dnv84_video.c265 const struct pipe_video_codec *templ) in nv84_create_decoder() argument
276 int is_h264 = u_reduce_video_profile(templ->profile) == PIPE_VIDEO_FORMAT_MPEG4_AVC; in nv84_create_decoder()
277 int is_mpeg12 = u_reduce_video_profile(templ->profile) == PIPE_VIDEO_FORMAT_MPEG12; in nv84_create_decoder()
280 return vl_create_decoder(context, templ); in nv84_create_decoder()
282 if ((is_h264 && templ->entrypoint != PIPE_VIDEO_ENTRYPOINT_BITSTREAM) || in nv84_create_decoder()
283 (is_mpeg12 && templ->entrypoint > PIPE_VIDEO_ENTRYPOINT_IDCT)) { in nv84_create_decoder()
284 debug_printf("%x\n", templ->entrypoint); in nv84_create_decoder()
289 debug_printf("invalid profile: %x\n", templ->profile); in nv84_create_decoder()
297 dec->base = *templ; in nv84_create_decoder()
316 if (templ->entrypoint == PIPE_VIDEO_ENTRYPOINT_BITSTREAM) { in nv84_create_decoder()
[all …]
/external/mesa3d/src/gallium/auxiliary/util/
Du_suballoc.c105 struct pipe_resource templ; in u_suballocator_alloc() local
106 memset(&templ, 0, sizeof(templ)); in u_suballocator_alloc()
107 templ.target = PIPE_BUFFER; in u_suballocator_alloc()
108 templ.format = PIPE_FORMAT_R8_UNORM; in u_suballocator_alloc()
109 templ.bind = allocator->bind; in u_suballocator_alloc()
110 templ.usage = allocator->usage; in u_suballocator_alloc()
111 templ.flags = allocator->flags; in u_suballocator_alloc()
112 templ.width0 = allocator->size; in u_suballocator_alloc()
113 templ.height0 = 1; in u_suballocator_alloc()
114 templ.depth0 = 1; in u_suballocator_alloc()
[all …]
/external/mesa3d/src/gallium/drivers/nouveau/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
25 if (templ->target == PIPE_BUFFER) { in nvc0_resource_from_handle()
29 templ, whandle); in nvc0_resource_from_handle()
39 const struct pipe_surface *templ) in nvc0_surface_create() argument
42 return nv50_surface_from_buffer(pipe, pres, templ); in nvc0_surface_create()
43 return nvc0_miptree_surface_new(pipe, pres, templ); in nvc0_surface_create()
Dnvc0_video.c92 const struct pipe_video_codec *templ) in nvc0_create_decoder() argument
109 return vl_create_decoder(context, templ); in nvc0_create_decoder()
111 if (templ->entrypoint != PIPE_VIDEO_ENTRYPOINT_BITSTREAM) { in nvc0_create_decoder()
112 debug_printf("%x\n", templ->entrypoint); in nvc0_create_decoder()
120 dec->base = *templ; in nvc0_create_decoder()
207 unsigned inter_size = align(templ->width * templ->height * 2, 4 << 20); in nvc0_create_decoder()
218 switch (u_reduce_video_profile(templ->profile)) { in nvc0_create_decoder()
221 assert(templ->max_references <= 2); in nvc0_create_decoder()
226 tmp_size = mb(templ->height)*16 * mb(templ->width)*16; in nvc0_create_decoder()
227 assert(templ->max_references <= 2); in nvc0_create_decoder()
[all …]
/external/boringssl/src/tool/
Dargs.cc33 const struct argument *templ = nullptr; in ParseKeyValueArguments() local
36 templ = &templates[j]; in ParseKeyValueArguments()
41 if (templ == nullptr) { in ParseKeyValueArguments()
51 if (templ->type == kBooleanArgument) { in ParseKeyValueArguments()
63 const struct argument *templ = &templates[j]; in ParseKeyValueArguments() local
64 if (templ->type == kRequiredArgument && in ParseKeyValueArguments()
65 out_args->find(templ->name) == out_args->end()) { in ParseKeyValueArguments()
66 fprintf(stderr, "Missing value for required argument: %s\n", templ->name); in ParseKeyValueArguments()
76 const struct argument *templ = &templates[i]; in PrintUsage() local
77 fprintf(stderr, "%s\t%s\n", templ->name, templ->description); in PrintUsage()
/external/mesa3d/src/mesa/state_tracker/
Dst_sampler_view.c488 struct pipe_sampler_view templ; in st_create_texture_sampler_view_from_stobj() local
491 templ.format = format; in st_create_texture_sampler_view_from_stobj()
494 templ.u.tex.first_level = templ.u.tex.last_level = stObj->level_override; in st_create_texture_sampler_view_from_stobj()
496 templ.u.tex.first_level = stObj->base.MinLevel + stObj->base.BaseLevel; in st_create_texture_sampler_view_from_stobj()
497 templ.u.tex.last_level = last_level(stObj); in st_create_texture_sampler_view_from_stobj()
500 templ.u.tex.first_layer = templ.u.tex.last_layer = stObj->layer_override; in st_create_texture_sampler_view_from_stobj()
502 templ.u.tex.first_layer = stObj->base.MinLayer; in st_create_texture_sampler_view_from_stobj()
503 templ.u.tex.last_layer = last_layer(stObj); in st_create_texture_sampler_view_from_stobj()
505 assert(templ.u.tex.first_layer <= templ.u.tex.last_layer); in st_create_texture_sampler_view_from_stobj()
506 assert(templ.u.tex.first_level <= templ.u.tex.last_level); in st_create_texture_sampler_view_from_stobj()
[all …]
Dst_vdpau.c112 struct pipe_resource templ, *res; in st_vdpau_resource_from_description() local
118 memset(&templ, 0, sizeof(templ)); in st_vdpau_resource_from_description()
119 templ.target = PIPE_TEXTURE_2D; in st_vdpau_resource_from_description()
120 templ.last_level = 0; in st_vdpau_resource_from_description()
121 templ.depth0 = 1; in st_vdpau_resource_from_description()
122 templ.array_size = 1; in st_vdpau_resource_from_description()
123 templ.width0 = desc->width; in st_vdpau_resource_from_description()
124 templ.height0 = desc->height; in st_vdpau_resource_from_description()
125 templ.format = VdpFormatRGBAToPipe(desc->format); in st_vdpau_resource_from_description()
126 templ.bind = PIPE_BIND_SAMPLER_VIEW | PIPE_BIND_RENDER_TARGET; in st_vdpau_resource_from_description()
[all …]
/external/mesa3d/src/gallium/state_trackers/dri/
Ddri2.c524 struct pipe_resource templ; in dri2_allocate_buffer() local
568 memset(&templ, 0, sizeof(templ)); in dri2_allocate_buffer()
569 templ.bind = bind; in dri2_allocate_buffer()
570 templ.format = pf; in dri2_allocate_buffer()
571 templ.target = PIPE_TEXTURE_2D; in dri2_allocate_buffer()
572 templ.last_level = 0; in dri2_allocate_buffer()
573 templ.width0 = width; in dri2_allocate_buffer()
574 templ.height0 = height; in dri2_allocate_buffer()
575 templ.depth0 = 1; in dri2_allocate_buffer()
576 templ.array_size = 1; in dri2_allocate_buffer()
[all …]
/external/capstone/bindings/
Dconst_generator.py70 templ = template[lang]
72 prefix = templ[target]
73 … outfile = open(templ['out_file'] %(prefix), 'wb') # open as binary prevents windows newlines
74 outfile.write((templ['header'] % (prefix)).encode("utf-8"))
83 outfile.write(("\n%s%s%s\n" %(templ['comment_open'], \
85 templ['comment_close']) ).encode("utf-8"))
123 outfile.write((templ['line_format'] %(f[0].strip(), rhs)).encode("utf-8"))
125 outfile.write((templ['footer']).encode("utf-8"))
/external/mesa3d/src/gallium/state_trackers/nine/
Dbasetexture9.c422 struct pipe_resource templ; in NineBaseTexture9_CreatePipeResource() local
432 templ = This->base.info; in NineBaseTexture9_CreatePipeResource()
435 templ.width0 = u_minify(templ.width0, This->managed.lod); in NineBaseTexture9_CreatePipeResource()
436 templ.height0 = u_minify(templ.height0, This->managed.lod); in NineBaseTexture9_CreatePipeResource()
437 templ.depth0 = u_minify(templ.depth0, This->managed.lod); in NineBaseTexture9_CreatePipeResource()
439 templ.last_level = This->base.info.last_level - This->managed.lod; in NineBaseTexture9_CreatePipeResource()
443 if (old->width0 == templ.width0 && in NineBaseTexture9_CreatePipeResource()
444 old->height0 == templ.height0 && in NineBaseTexture9_CreatePipeResource()
445 old->depth0 == templ.depth0) in NineBaseTexture9_CreatePipeResource()
449 res = screen->resource_create(screen, &templ); in NineBaseTexture9_CreatePipeResource()
[all …]
/external/mesa3d/src/gallium/drivers/radeonsi/
Dsi_uvd.c47 struct pipe_resource templ; in si_video_buffer_create() local
66 vl_video_buffer_template(&templ, &vidtemplate, in si_video_buffer_create()
72 templ.bind = PIPE_BIND_LINEAR | PIPE_BIND_SHARED; in si_video_buffer_create()
74 pipe->screen->resource_create(pipe->screen, &templ); in si_video_buffer_create()
144 const struct pipe_video_codec *templ) in si_uvd_create_decoder() argument
149 if (templ->entrypoint == PIPE_VIDEO_ENTRYPOINT_ENCODE) in si_uvd_create_decoder()
150 return (vcn) ? radeon_create_encoder(context, templ, ctx->b.ws, si_vce_get_buffer) : in si_uvd_create_decoder()
151 si_vce_create_encoder(context, templ, ctx->b.ws, si_vce_get_buffer); in si_uvd_create_decoder()
153 return (vcn) ? radeon_create_decoder(context, templ) : in si_uvd_create_decoder()
154 si_common_uvd_create_decoder(context, templ, si_uvd_set_dtb); in si_uvd_create_decoder()
/external/mesa3d/src/gallium/drivers/softpipe/
Dsp_state_shader.c120 const struct pipe_shader_state *templ) in softpipe_create_fs_state() argument
127 tgsi_dump(templ->tokens, 0); in softpipe_create_fs_state()
130 state->shader.tokens = tgsi_dup_tokens(templ->tokens); in softpipe_create_fs_state()
205 const struct pipe_shader_state *templ) in softpipe_create_vs_state() argument
216 state->shader.tokens = tgsi_dup_tokens(templ->tokens); in softpipe_create_vs_state()
220 state->draw_data = draw_create_vertex_shader(softpipe->draw, templ); in softpipe_create_vs_state()
267 const struct pipe_shader_state *templ) in softpipe_create_gs_state() argument
276 state->shader = *templ; in softpipe_create_gs_state()
278 if (templ->tokens) { in softpipe_create_gs_state()
281 tgsi_dump(templ->tokens, 0); in softpipe_create_gs_state()
[all …]
/external/mesa3d/src/gallium/winsys/sw/wrapper/
Dwrapper_sw_winsys.c155 struct pipe_resource templ; in wsw_dt_create() local
161 memset(&templ, 0, sizeof(templ)); in wsw_dt_create()
162 templ.target = wsw->target; in wsw_dt_create()
163 templ.width0 = width; in wsw_dt_create()
164 templ.height0 = height; in wsw_dt_create()
165 templ.depth0 = 1; in wsw_dt_create()
166 templ.array_size = 1; in wsw_dt_create()
167 templ.format = format; in wsw_dt_create()
168 templ.bind = bind; in wsw_dt_create()
172 tex = wsw->screen->resource_create(wsw->screen, &templ); in wsw_dt_create()
[all …]
/external/mesa3d/src/gallium/state_trackers/wgl/
Dstw_st.c81 struct pipe_resource templ; in stw_st_framebuffer_validate_locked() local
90 memset(&templ, 0, sizeof(templ)); in stw_st_framebuffer_validate_locked()
91 templ.target = PIPE_TEXTURE_2D; in stw_st_framebuffer_validate_locked()
92 templ.width0 = width; in stw_st_framebuffer_validate_locked()
93 templ.height0 = height; in stw_st_framebuffer_validate_locked()
94 templ.depth0 = 1; in stw_st_framebuffer_validate_locked()
95 templ.array_size = 1; in stw_st_framebuffer_validate_locked()
96 templ.last_level = 0; in stw_st_framebuffer_validate_locked()
97 templ.nr_samples = stwfb->stvis.samples; in stw_st_framebuffer_validate_locked()
129 templ.format = format; in stw_st_framebuffer_validate_locked()
[all …]
/external/mesa3d/src/gallium/drivers/r600/
Dr600_uvd.c67 struct pipe_resource templ; in r600_video_buffer_create() local
82 …vl_video_buffer_template(&templ, &template, resource_formats[0], 1, array_size, PIPE_USAGE_DEFAULT… in r600_video_buffer_create()
84 templ.bind = PIPE_BIND_LINEAR; in r600_video_buffer_create()
86 pipe->screen->resource_create(pipe->screen, &templ); in r600_video_buffer_create()
91 …vl_video_buffer_template(&templ, &template, resource_formats[1], 1, array_size, PIPE_USAGE_DEFAULT… in r600_video_buffer_create()
93 templ.bind = PIPE_BIND_LINEAR; in r600_video_buffer_create()
95 pipe->screen->resource_create(pipe->screen, &templ); in r600_video_buffer_create()
101 …vl_video_buffer_template(&templ, &template, resource_formats[2], 1, array_size, PIPE_USAGE_DEFAULT… in r600_video_buffer_create()
103 templ.bind = PIPE_BIND_LINEAR; in r600_video_buffer_create()
105 pipe->screen->resource_create(pipe->screen, &templ); in r600_video_buffer_create()
/external/mesa3d/src/gallium/drivers/nouveau/
Dnouveau_vp3_video.c83 struct pipe_resource templ; in nouveau_vp3_video_buffer_create() local
109 memset(&templ, 0, sizeof(templ)); in nouveau_vp3_video_buffer_create()
110 templ.target = PIPE_TEXTURE_2D_ARRAY; in nouveau_vp3_video_buffer_create()
111 templ.depth0 = 1; in nouveau_vp3_video_buffer_create()
112 templ.bind = PIPE_BIND_SAMPLER_VIEW | PIPE_BIND_RENDER_TARGET; in nouveau_vp3_video_buffer_create()
113 templ.format = PIPE_FORMAT_R8_UNORM; in nouveau_vp3_video_buffer_create()
114 templ.width0 = buffer->base.width; in nouveau_vp3_video_buffer_create()
115 templ.height0 = (buffer->base.height + 1)/2; in nouveau_vp3_video_buffer_create()
116 templ.flags = flags; in nouveau_vp3_video_buffer_create()
117 templ.array_size = 2; in nouveau_vp3_video_buffer_create()
[all …]
/external/mesa3d/src/gallium/drivers/virgl/
Dvirgl_resource.c56 const struct pipe_resource *templ) in virgl_resource_create() argument
59 if (templ->target == PIPE_BUFFER) in virgl_resource_create()
60 return virgl_buffer_create(vs, templ); in virgl_resource_create()
62 return virgl_texture_create(vs, templ); in virgl_resource_create()
66 const struct pipe_resource *templ, in virgl_resource_from_handle() argument
71 if (templ->target == PIPE_BUFFER) in virgl_resource_from_handle()
74 return virgl_texture_from_handle(vs, templ, whandle); in virgl_resource_from_handle()
/external/mesa3d/src/gallium/auxiliary/vl/
Dvl_winsys_dri3.c223 struct pipe_resource templ, *pixmap_buffer_texture; in dri3_alloc_back_buffer() local
239 memset(&templ, 0, sizeof(templ)); in dri3_alloc_back_buffer()
240 templ.bind = PIPE_BIND_RENDER_TARGET | PIPE_BIND_SAMPLER_VIEW; in dri3_alloc_back_buffer()
241 templ.format = PIPE_FORMAT_B8G8R8X8_UNORM; in dri3_alloc_back_buffer()
242 templ.target = PIPE_TEXTURE_2D; in dri3_alloc_back_buffer()
243 templ.last_level = 0; in dri3_alloc_back_buffer()
244 templ.width0 = (scrn->output_texture) ? in dri3_alloc_back_buffer()
246 templ.height0 = (scrn->output_texture) ? in dri3_alloc_back_buffer()
248 templ.depth0 = 1; in dri3_alloc_back_buffer()
249 templ.array_size = 1; in dri3_alloc_back_buffer()
[all …]
/external/mesa3d/src/gallium/state_trackers/glx/xlib/
Dxm_st.c121 struct pipe_resource templ; in xmesa_st_framebuffer_validate_textures() local
130 memset(&templ, 0, sizeof(templ)); in xmesa_st_framebuffer_validate_textures()
131 templ.target = xstfb->target; in xmesa_st_framebuffer_validate_textures()
132 templ.width0 = width; in xmesa_st_framebuffer_validate_textures()
133 templ.height0 = height; in xmesa_st_framebuffer_validate_textures()
134 templ.depth0 = 1; in xmesa_st_framebuffer_validate_textures()
135 templ.array_size = 1; in xmesa_st_framebuffer_validate_textures()
136 templ.last_level = 0; in xmesa_st_framebuffer_validate_textures()
137 templ.nr_samples = xstfb->stvis.samples; in xmesa_st_framebuffer_validate_textures()
170 templ.format = format; in xmesa_st_framebuffer_validate_textures()
[all …]
/external/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_state_gs.c44 const struct pipe_shader_state *templ) in llvmpipe_create_gs_state() argument
56 tgsi_dump(templ->tokens, 0); in llvmpipe_create_gs_state()
60 state->no_tokens = !templ->tokens; in llvmpipe_create_gs_state()
61 memcpy(&state->stream_output, &templ->stream_output, sizeof state->stream_output); in llvmpipe_create_gs_state()
63 if (templ->tokens) { in llvmpipe_create_gs_state()
64 state->dgs = draw_create_geometry_shader(llvmpipe->draw, templ); in llvmpipe_create_gs_state()

12345678