Searched refs:templ (Results 1 - 25 of 324) sorted by relevance

1234567891011>>

/xsrc/external/mit/MesaLib/dist/src/gallium/drivers/svga/
H A Dsvga_pipe_rasterizer.c109 unsigned fill_mode = translate_fill_mode(rast->templ.fill_front);
110 const unsigned cull_mode = translate_cull_mode(rast->templ.cull_face);
111 const int depth_bias = rast->templ.offset_units;
112 const float slope_scaled_depth_bias = rast->templ.offset_scale;
115 const float line_width = rast->templ.line_width > 0.0f ?
116 rast->templ.line_width : 1.0f;
117 const uint8 line_factor = rast->templ.line_stipple_enable ?
118 rast->templ.line_stipple_factor : 0;
119 const uint16 line_pattern = rast->templ.line_stipple_enable ?
120 rast->templ
156 svga_create_rasterizer_state(struct pipe_context * pipe,const struct pipe_rasterizer_state * templ) argument
[all...]
H A Dsvga_pipe_depthstencil.c123 const struct pipe_depth_stencil_alpha_state *templ)
135 ds->stencil[0].enabled = templ->stencil[0].enabled;
137 ds->stencil[0].func = svga_translate_compare_func(templ->stencil[0].func);
138 ds->stencil[0].fail = svga_translate_stencil_op(templ->stencil[0].fail_op);
139 ds->stencil[0].zfail = svga_translate_stencil_op(templ->stencil[0].zfail_op);
140 ds->stencil[0].pass = svga_translate_stencil_op(templ->stencil[0].zpass_op);
145 ds->stencil_mask = templ->stencil[0].valuemask & 0xff;
146 ds->stencil_writemask = templ->stencil[0].writemask & 0xff;
155 ds->stencil[1].enabled = templ->stencil[1].enabled;
156 if (templ
122 svga_create_depth_stencil_state(struct pipe_context * pipe,const struct pipe_depth_stencil_alpha_state * templ) argument
[all...]
/xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/svga/
H A Dsvga_pipe_rasterizer.c109 unsigned fill_mode = translate_fill_mode(rast->templ.fill_front);
110 const unsigned cull_mode = translate_cull_mode(rast->templ.cull_face);
111 const int depth_bias = rast->templ.offset_units;
112 const float slope_scaled_depth_bias = rast->templ.offset_scale;
115 const float line_width = rast->templ.line_width > 0.0f ?
116 rast->templ.line_width : 1.0f;
117 const uint8 line_factor = rast->templ.line_stipple_enable ?
118 rast->templ.line_stipple_factor : 0;
119 const uint16 line_pattern = rast->templ.line_stipple_enable ?
120 rast->templ
162 svga_create_rasterizer_state(struct pipe_context * pipe,const struct pipe_rasterizer_state * templ) argument
[all...]
H A Dsvga_pipe_depthstencil.c132 const struct pipe_depth_stencil_alpha_state *templ)
144 ds->stencil[0].enabled = templ->stencil[0].enabled;
146 ds->stencil[0].func = svga_translate_compare_func(templ->stencil[0].func);
147 ds->stencil[0].fail = svga_translate_stencil_op(templ->stencil[0].fail_op);
148 ds->stencil[0].zfail = svga_translate_stencil_op(templ->stencil[0].zfail_op);
149 ds->stencil[0].pass = svga_translate_stencil_op(templ->stencil[0].zpass_op);
154 ds->stencil_mask = templ->stencil[0].valuemask & 0xff;
155 ds->stencil_writemask = templ->stencil[0].writemask & 0xff;
164 ds->stencil[1].enabled = templ->stencil[1].enabled;
165 if (templ
131 svga_create_depth_stencil_state(struct pipe_context * pipe,const struct pipe_depth_stencil_alpha_state * templ) argument
[all...]
H A Dsvga_pipe_blend.c141 const struct pipe_blend_state *templ)
155 if (templ->rt[i].blend_enable) {
168 if (templ->logicop_enable) {
169 switch (templ->logicop_func) {
263 if (templ->logicop_func == PIPE_LOGICOP_XOR) {
267 else if (templ->logicop_func != PIPE_LOGICOP_COPY) {
278 svga_have_sm4_1(svga) && templ->independent_blend_enable
280 if (templ->independent_blend_enable || templ->rt[j].blend_enable) {
282 svga_translate_blend_factor(svga, templ
140 svga_create_blend_state(struct pipe_context * pipe,const struct pipe_blend_state * templ) argument
[all...]
/xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/nouveau/nv50/
H A Dnv50_resource.c12 const struct pipe_resource *templ)
14 switch (templ->target) {
16 return nouveau_buffer_create(screen, templ);
18 return nv50_miptree_create(screen, templ);
24 const struct pipe_resource *templ,
28 if (templ->target == PIPE_BUFFER)
31 return nv50_miptree_from_handle(screen, templ, whandle);
37 const struct pipe_surface *templ)
46 sf->base.format = templ->format;
47 sf->base.writable = templ
11 nv50_resource_create(struct pipe_screen * screen,const struct pipe_resource * templ) argument
23 nv50_resource_from_handle(struct pipe_screen * screen,const struct pipe_resource * templ,struct winsys_handle * whandle,unsigned usage) argument
35 nv50_surface_from_buffer(struct pipe_context * pipe,struct pipe_resource * pbuf,const struct pipe_surface * templ) argument
68 nv50_surface_create(struct pipe_context * pipe,struct pipe_resource * pres,const struct pipe_surface * templ) argument
[all...]
/xsrc/external/mit/MesaLib/dist/src/gallium/drivers/llvmpipe/
H A Dlp_state_gs.c44 const struct pipe_shader_state *templ)
54 if (LP_DEBUG & DEBUG_TGSI && templ->type == PIPE_SHADER_IR_TGSI) {
56 tgsi_dump(templ->tokens, 0);
60 if (templ->type == PIPE_SHADER_IR_TGSI)
61 state->no_tokens = !templ->tokens;
64 memcpy(&state->stream_output, &templ->stream_output, sizeof state->stream_output);
66 if (templ->tokens || templ->type == PIPE_SHADER_IR_NIR) {
67 state->dgs = draw_create_geometry_shader(llvmpipe->draw, templ);
43 llvmpipe_create_gs_state(struct pipe_context * pipe,const struct pipe_shader_state * templ) argument
H A Dlp_state_tess.c42 const struct pipe_shader_state *templ)
52 if (LP_DEBUG & DEBUG_TGSI && templ->type == PIPE_SHADER_IR_TGSI) {
54 tgsi_dump(templ->tokens, 0);
58 state->no_tokens = !templ->tokens;
59 memcpy(&state->stream_output, &templ->stream_output, sizeof state->stream_output);
61 if (templ->tokens || templ->type == PIPE_SHADER_IR_NIR) {
62 state->dtcs = draw_create_tess_ctrl_shader(llvmpipe->draw, templ);
110 const struct pipe_shader_state *templ)
122 tgsi_dump(templ
41 llvmpipe_create_tcs_state(struct pipe_context * pipe,const struct pipe_shader_state * templ) argument
109 llvmpipe_create_tes_state(struct pipe_context * pipe,const struct pipe_shader_state * templ) argument
[all...]
H A Dlp_state_vs.c43 const struct pipe_shader_state *templ)
48 vs = draw_create_vertex_shader(llvmpipe->draw, templ);
53 if (LP_DEBUG & DEBUG_TGSI && templ->type == PIPE_SHADER_IR_TGSI) {
55 tgsi_dump(templ->tokens, 0);
42 llvmpipe_create_vs_state(struct pipe_context * pipe,const struct pipe_shader_state * templ) argument
/xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/nouveau/nvc0/
H A Dnvc0_resource.c10 const struct pipe_resource *templ)
14 switch (templ->target) {
16 return nouveau_buffer_create(screen, templ);
18 return nvc0_miptree_create(screen, templ, &modifier, 1);
24 const struct pipe_resource *templ,
27 switch (templ->target) {
29 return nouveau_buffer_create(screen, templ);
31 return nvc0_miptree_create(screen, templ, modifiers, count);
76 const struct pipe_resource *templ,
80 if (templ
9 nvc0_resource_create(struct pipe_screen * screen,const struct pipe_resource * templ) argument
23 nvc0_resource_create_with_modifiers(struct pipe_screen * screen,const struct pipe_resource * templ,const uint64_t * modifiers,int count) argument
75 nvc0_resource_from_handle(struct pipe_screen * screen,const struct pipe_resource * templ,struct winsys_handle * whandle,unsigned usage) argument
92 nvc0_surface_create(struct pipe_context * pipe,struct pipe_resource * pres,const struct pipe_surface * templ) argument
[all...]
/xsrc/external/mit/MesaLib.old/dist/src/gallium/auxiliary/util/
H A Du_suballoc.c105 struct pipe_resource templ; local in function:u_suballocator_alloc
106 memset(&templ, 0, sizeof(templ));
107 templ.target = PIPE_BUFFER;
108 templ.format = PIPE_FORMAT_R8_UNORM;
109 templ.bind = allocator->bind;
110 templ.usage = allocator->usage;
111 templ.flags = allocator->flags;
112 templ.width0 = allocator->size;
113 templ
[all...]
/xsrc/external/mit/MesaLib/dist/src/gallium/auxiliary/util/
H A Du_suballoc.c88 struct pipe_resource templ; local in function:u_suballocator_alloc
89 memset(&templ, 0, sizeof(templ));
90 templ.target = PIPE_BUFFER;
91 templ.format = PIPE_FORMAT_R8_UNORM;
92 templ.bind = allocator->bind;
93 templ.usage = allocator->usage;
94 templ.flags = allocator->flags;
95 templ.width0 = allocator->size;
96 templ
[all...]
/xsrc/external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nv50/
H A Dnv50_resource.c12 const struct pipe_resource *templ)
14 switch (templ->target) {
16 return nouveau_buffer_create(screen, templ);
18 return nv50_miptree_create(screen, templ);
33 const struct pipe_resource *templ,
37 if (templ->target == PIPE_BUFFER)
40 return nv50_miptree_from_handle(screen, templ, whandle);
46 const struct pipe_surface *templ)
55 sf->base.format = templ->format;
56 sf->base.writable = templ
11 nv50_resource_create(struct pipe_screen * screen,const struct pipe_resource * templ) argument
32 nv50_resource_from_handle(struct pipe_screen * screen,const struct pipe_resource * templ,struct winsys_handle * whandle,unsigned usage) argument
44 nv50_surface_from_buffer(struct pipe_context * pipe,struct pipe_resource * pbuf,const struct pipe_surface * templ) argument
77 nv50_surface_create(struct pipe_context * pipe,struct pipe_resource * pres,const struct pipe_surface * templ) argument
[all...]
/xsrc/external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nvc0/
H A Dnvc0_resource.c10 const struct pipe_resource *templ)
12 switch (templ->target) {
14 return nouveau_buffer_create(screen, templ);
16 return nvc0_miptree_create(screen, templ, NULL, 0);
22 const struct pipe_resource *templ,
25 switch (templ->target) {
27 return nouveau_buffer_create(screen, templ);
29 return nvc0_miptree_create(screen, templ, modifiers, count);
116 const struct pipe_resource *templ,
120 if (templ
9 nvc0_resource_create(struct pipe_screen * screen,const struct pipe_resource * templ) argument
21 nvc0_resource_create_with_modifiers(struct pipe_screen * screen,const struct pipe_resource * templ,const uint64_t * modifiers,int count) argument
115 nvc0_resource_from_handle(struct pipe_screen * screen,const struct pipe_resource * templ,struct winsys_handle * whandle,unsigned usage) argument
130 nvc0_surface_create(struct pipe_context * pipe,struct pipe_resource * pres,const struct pipe_surface * templ) argument
140 nvc0_resource_from_user_memory(struct pipe_screen * pipe,const struct pipe_resource * templ,void * user_memory) argument
[all...]
/xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/r300/
H A Dr300_resource.c32 const struct pipe_resource *templ)
34 if (templ->target == PIPE_BUFFER)
35 return r300_buffer_create(screen, templ);
37 return r300_texture_create(screen, templ);
31 r300_resource_create(struct pipe_screen * screen,const struct pipe_resource * templ) argument
H A Dr300_screen_buffer.h45 const struct pipe_resource *templ);
/xsrc/external/mit/MesaLib/dist/src/gallium/drivers/r300/
H A Dr300_resource.c33 const struct pipe_resource *templ)
35 if (templ->target == PIPE_BUFFER)
36 return r300_buffer_create(screen, templ);
38 return r300_texture_create(screen, templ);
32 r300_resource_create(struct pipe_screen * screen,const struct pipe_resource * templ) argument
/xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/llvmpipe/
H A Dlp_state_gs.c44 const struct pipe_shader_state *templ)
56 tgsi_dump(templ->tokens, 0);
60 state->no_tokens = !templ->tokens;
61 memcpy(&state->stream_output, &templ->stream_output, sizeof state->stream_output);
63 if (templ->tokens) {
64 state->dgs = draw_create_geometry_shader(llvmpipe->draw, templ);
43 llvmpipe_create_gs_state(struct pipe_context * pipe,const struct pipe_shader_state * templ) argument
/xsrc/external/mit/MesaLib/dist/src/gallium/winsys/d3d12/wgl/
H A Dd3d12_wgl_framebuffer.cpp92 pipe_resource *templ)
101 desc.Format = d3d12_get_format(templ->format);
102 desc.Width = templ->width0;
103 desc.Height = templ->height0;
107 framebuffer->pformat = templ->format;
195 struct pipe_resource templ; local in function:d3d12_wgl_framebuffer_get_resource
196 memset(&templ, 0, sizeof(templ));
197 templ.target = PIPE_TEXTURE_2D;
198 templ
90 d3d12_wgl_framebuffer_resize(stw_winsys_framebuffer * fb,pipe_context * ctx,pipe_resource * templ) argument
[all...]
/xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/radeonsi/
H A Dsi_uvd.c49 struct pipe_resource templ; local in function:si_video_buffer_create
68 vl_video_buffer_template(&templ, &vidtemplate,
74 templ.bind = PIPE_BIND_LINEAR | PIPE_BIND_SHARED;
76 pipe->screen->resource_create(pipe->screen, &templ);
146 const struct pipe_video_codec *templ)
152 if (templ->entrypoint == PIPE_VIDEO_ENTRYPOINT_ENCODE) {
154 return radeon_create_encoder(context, templ, ctx->ws, si_vce_get_buffer);
156 if (u_reduce_video_profile(templ->profile) == PIPE_VIDEO_FORMAT_HEVC)
157 return radeon_uvd_create_encoder(context, templ, ctx->ws, si_vce_get_buffer);
159 return si_vce_create_encoder(context, templ, ct
145 si_uvd_create_decoder(struct pipe_context * context,const struct pipe_video_codec * templ) argument
[all...]
/xsrc/external/mit/MesaLib.old/dist/src/mesa/state_tracker/
H A Dst_sampler_view.h43 struct pipe_sampler_view templ; local in function:st_create_texture_sampler_view_format
45 u_sampler_view_default_template(&templ, texture, format);
47 return pipe->create_sampler_view(pipe, texture, &templ);
/xsrc/external/mit/MesaLib/dist/src/mesa/state_tracker/
H A Dst_sampler_view.h43 struct pipe_sampler_view templ; local in function:st_create_texture_sampler_view_format
45 u_sampler_view_default_template(&templ, texture, format);
47 return pipe->create_sampler_view(pipe, texture, &templ);
/xsrc/external/mit/MesaLib/dist/src/gallium/drivers/radeonsi/
H A Dsi_uvd.c122 const struct pipe_video_codec *templ)
127 if (templ->entrypoint == PIPE_VIDEO_ENTRYPOINT_ENCODE) {
129 return radeon_create_encoder(context, templ, ctx->ws, si_vce_get_buffer);
131 if (u_reduce_video_profile(templ->profile) == PIPE_VIDEO_FORMAT_HEVC)
132 return radeon_uvd_create_encoder(context, templ, ctx->ws, si_vce_get_buffer);
134 return si_vce_create_encoder(context, templ, ctx->ws, si_vce_get_buffer);
138 return (vcn) ? radeon_create_decoder(context, templ)
139 : si_common_uvd_create_decoder(context, templ, si_uvd_set_dtb);
121 si_uvd_create_decoder(struct pipe_context * context,const struct pipe_video_codec * templ) argument
/xsrc/external/mit/MesaLib/dist/src/gallium/auxiliary/vl/
H A Dvl_video_buffer.c168 vl_video_buffer_template(struct pipe_resource *templ, argument
177 memset(templ, 0, sizeof(*templ));
179 templ->target = PIPE_TEXTURE_3D;
181 templ->target = PIPE_TEXTURE_2D_ARRAY;
183 templ->target = PIPE_TEXTURE_2D;
184 templ->format = resource_format;
185 templ->width0 = tmpl->width;
186 templ->depth0 = depth;
187 templ
474 struct pipe_resource templ, *resources[VL_NUM_COMPONENTS] = {0}; local in function:vl_video_buffer_create_as_resource
[all...]
/xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/r600/
H A Devergreen_compute.h46 struct pipe_resource *r600_compute_global_buffer_create(struct pipe_screen *screen, const struct pipe_resource *templ);

Completed in 25 milliseconds

1234567891011>>