Home
last modified time | relevance | path

Searched refs:templat (Results 1 – 25 of 89) sorted by relevance

1234

/third_party/mesa3d/src/gallium/auxiliary/util/
Du_pstipple.c107 struct pipe_resource templat, *tex; in util_pstipple_create_stipple_texture() local
109 memset(&templat, 0, sizeof(templat)); in util_pstipple_create_stipple_texture()
110 templat.target = PIPE_TEXTURE_2D; in util_pstipple_create_stipple_texture()
111 templat.format = PIPE_FORMAT_A8_UNORM; in util_pstipple_create_stipple_texture()
112 templat.last_level = 0; in util_pstipple_create_stipple_texture()
113 templat.width0 = 32; in util_pstipple_create_stipple_texture()
114 templat.height0 = 32; in util_pstipple_create_stipple_texture()
115 templat.depth0 = 1; in util_pstipple_create_stipple_texture()
116 templat.array_size = 1; in util_pstipple_create_stipple_texture()
117 templat.bind = PIPE_BIND_SAMPLER_VIEW; in util_pstipple_create_stipple_texture()
[all …]
/third_party/mesa3d/src/gallium/tests/graw/
Dvs-test.c82 struct pipe_resource templat; in init_fs_constbuf() local
85 memset(&templat, 0, sizeof(templat)); in init_fs_constbuf()
86 templat.target = PIPE_BUFFER; in init_fs_constbuf()
87 templat.format = PIPE_FORMAT_R8_UNORM; in init_fs_constbuf()
88 templat.width0 = sizeof(constants); in init_fs_constbuf()
89 templat.height0 = 1; in init_fs_constbuf()
90 templat.depth0 = 1; in init_fs_constbuf()
91 templat.array_size = 1; in init_fs_constbuf()
92 templat.last_level = 0; in init_fs_constbuf()
93 templat.bind = PIPE_BIND_CONSTANT_BUFFER; in init_fs_constbuf()
[all …]
Dgs-test.c151 struct pipe_resource templat; in init_fs_constbuf() local
153 memset(&templat, 0, sizeof(templat)); in init_fs_constbuf()
154 templat.target = PIPE_BUFFER; in init_fs_constbuf()
155 templat.format = PIPE_FORMAT_R8_UNORM; in init_fs_constbuf()
156 templat.width0 = sizeof(constants1); in init_fs_constbuf()
157 templat.height0 = 1; in init_fs_constbuf()
158 templat.depth0 = 1; in init_fs_constbuf()
159 templat.array_size = 1; in init_fs_constbuf()
160 templat.last_level = 0; in init_fs_constbuf()
161 templat.bind = PIPE_BIND_CONSTANT_BUFFER; in init_fs_constbuf()
[all …]
Dclear.c42 struct pipe_resource templat; in init() local
68 memset(&templat, 0, sizeof(templat)); in init()
69 templat.target = PIPE_TEXTURE_2D; in init()
70 templat.format = formats[i]; in init()
71 templat.width0 = WIDTH; in init()
72 templat.height0 = HEIGHT; in init()
73 templat.depth0 = 1; in init()
74 templat.array_size = 1; in init()
75 templat.last_level = 0; in init()
76 templat.bind = (PIPE_BIND_RENDER_TARGET | in init()
[all …]
Dquad-sample.c171 struct pipe_resource templat; in init_tex() local
217 memset(&templat, 0, sizeof(templat)); in init_tex()
218 templat.target = PIPE_TEXTURE_2D; in init_tex()
219 templat.format = PIPE_FORMAT_B8G8R8A8_UNORM; in init_tex()
220 templat.width0 = SIZE; in init_tex()
221 templat.height0 = SIZE; in init_tex()
222 templat.depth0 = 1; in init_tex()
223 templat.last_level = 0; in init_tex()
224 templat.bind = PIPE_BIND_SAMPLER_VIEW; in init_tex()
228 &templat); in init_tex()
[all …]
Dfs-test.c255 struct pipe_resource templat; in init_tex() local
301 memset(&templat, 0, sizeof(templat)); in init_tex()
302 templat.target = PIPE_TEXTURE_2D; in init_tex()
303 templat.format = PIPE_FORMAT_B8G8R8A8_UNORM; in init_tex()
304 templat.width0 = SIZE; in init_tex()
305 templat.height0 = SIZE; in init_tex()
306 templat.depth0 = 1; in init_tex()
307 templat.array_size = 1; in init_tex()
308 templat.last_level = 0; in init_tex()
309 templat.bind = PIPE_BIND_SAMPLER_VIEW; in init_tex()
[all …]
Dtri-gs.c181 struct pipe_resource templat; in init() local
207 memset(&templat, 0, sizeof(templat)); in init()
208 templat.target = PIPE_TEXTURE_2D; in init()
209 templat.format = formats[i]; in init()
210 templat.width0 = WIDTH; in init()
211 templat.height0 = HEIGHT; in init()
212 templat.depth0 = 1; in init()
213 templat.array_size = 1; in init()
214 templat.last_level = 0; in init()
215 templat.bind = (PIPE_BIND_RENDER_TARGET | in init()
[all …]
Dshader-leak.c174 struct pipe_resource templat; in init() local
200 memset(&templat, 0, sizeof(templat)); in init()
201 templat.target = PIPE_TEXTURE_2D; in init()
202 templat.format = formats[i]; in init()
203 templat.width0 = WIDTH; in init()
204 templat.height0 = HEIGHT; in init()
205 templat.depth0 = 1; in init()
206 templat.last_level = 0; in init()
207 templat.bind = (PIPE_BIND_RENDER_TARGET | in init()
210 tex = screen->resource_create(screen, &templat); in init()
[all …]
Dtri-instanced.c234 struct pipe_resource templat; in init() local
260 memset(&templat, 0, sizeof(templat)); in init()
261 templat.target = PIPE_TEXTURE_2D; in init()
262 templat.format = formats[i]; in init()
263 templat.width0 = WIDTH; in init()
264 templat.height0 = HEIGHT; in init()
265 templat.depth0 = 1; in init()
266 templat.array_size = 1; in init()
267 templat.last_level = 0; in init()
268 templat.bind = (PIPE_BIND_RENDER_TARGET | in init()
[all …]
/third_party/mesa3d/src/gallium/drivers/etnaviv/
Detnaviv_resource.c140 const struct pipe_resource *templat) in etna_screen_can_create_resource() argument
143 if (!translate_samples_to_xyscale(templat->nr_samples, NULL, NULL)) in etna_screen_can_create_resource()
150 if (templat->width0 > max_size || templat->height0 > max_size) in etna_screen_can_create_resource()
202 uint64_t modifier, const struct pipe_resource *templat) in etna_resource_alloc() argument
211 templat->target, util_format_name(templat->format), templat->width0, in etna_resource_alloc()
212 templat->height0, templat->depth0, templat->array_size, in etna_resource_alloc()
213 templat->last_level, templat->nr_samples, templat->usage, in etna_resource_alloc()
214 templat->bind, templat->flags); in etna_resource_alloc()
217 int nr_samples = templat->nr_samples; in etna_resource_alloc()
218 if ((templat->bind & (PIPE_BIND_RENDER_TARGET | PIPE_BIND_DEPTH_STENCIL)) && in etna_resource_alloc()
[all …]
Detnaviv_surface.c66 struct pipe_resource templat = *prsc; in etna_render_handle_incompatible() local
73 templat.bind &= (PIPE_BIND_DEPTH_STENCIL | PIPE_BIND_RENDER_TARGET | in etna_render_handle_incompatible()
77 DRM_FORMAT_MOD_LINEAR, &templat); in etna_render_handle_incompatible()
85 const struct pipe_surface *templat) in etna_create_surface() argument
89 unsigned layer = templat->u.tex.first_layer; in etna_create_surface()
90 unsigned level = templat->u.tex.level; in etna_create_surface()
97 assert(templat->u.tex.first_layer == templat->u.tex.last_layer); in etna_create_surface()
121 surf->base.format = templat->format; in etna_create_surface()
124 surf->base.writable = templat->writable; /* what is this for anyway */ in etna_create_surface()
125 surf->base.u = templat->u; in etna_create_surface()
/third_party/mesa3d/src/gallium/frontends/va/
Dpicture.c61 if (u_reduce_video_profile(context->templat.profile) == PIPE_VIDEO_FORMAT_MPEG12) { in vlVaBeginPicture()
79 if (context->templat.profile == PIPE_VIDEO_PROFILE_UNKNOWN && in vlVaBeginPicture()
122 u_reduce_video_profile(context->templat.profile); in handlePictureParameterBuffer()
167 context->templat.level = u_get_h264_level(context->templat.width, in handlePictureParameterBuffer()
168 context->templat.height, &context->templat.max_references); in handlePictureParameterBuffer()
171 &context->templat); in handlePictureParameterBuffer()
192 switch (u_reduce_video_profile(context->templat.profile)) { in handleIQMatrixBuffer()
221 switch (u_reduce_video_profile(context->templat.profile)) { in handleSliceParameterBuffer()
292 enum pipe_video_format format = u_reduce_video_profile(context->templat.profile); in handleVASliceDataBufferType()
304 format = u_reduce_video_profile(context->templat.profile); in handleVASliceDataBufferType()
[all …]
Dsurface.c126 if (u_reduce_video_profile(context->templat.profile) == PIPE_VIDEO_FORMAT_MPEG4_AVC) { in vlVaSyncSurface()
579 unsigned index, struct pipe_video_buffer *templat) in surface_from_external_memory() argument
597 if (surface->templat.width != memory_attribute->width || in surface_from_external_memory()
598 surface->templat.height != memory_attribute->height || in surface_from_external_memory()
605 vl_get_video_buffer_formats(pscreen, templat->buffer_format, resource_formats); in surface_from_external_memory()
619 whandle.format = templat->buffer_format; in surface_from_external_memory()
624 unsigned num_planes = util_format_get_num_planes(templat->buffer_format); in surface_from_external_memory()
636 res_templ.width0 = util_format_get_plane_width(templat->buffer_format, i, in surface_from_external_memory()
638 res_templ.height0 = util_format_get_plane_height(templat->buffer_format, i, in surface_from_external_memory()
651 surface->buffer = vl_video_buffer_create_ex2(drv->pipe, templat, resources); in surface_from_external_memory()
[all …]
Dimage.c66 *width = p_surf->templat.width; in vlVaVideoSurfaceSize()
67 *height = p_surf->templat.height; in vlVaVideoSurfaceSize()
70 pipe_format_to_chroma_format(p_surf->templat.buffer_format), in vlVaVideoSurfaceSize()
71 p_surf->templat.interlaced); in vlVaVideoSurfaceSize()
278 img->width = surf->templat.width; in vlVaDeriveImage()
279 img->height = surf->templat.height; in vlVaDeriveImage()
345 new_template = surf->templat; in vlVaDeriveImage()
357 src_rect.x1 = dst_rect.x1 = surf->templat.width; in vlVaDeriveImage()
359 src_rect.y1 = dst_rect.y1 = surf->templat.height; in vlVaDeriveImage()
503 if (x + width > surf->templat.width || in vlVaGetImage()
[all …]
/third_party/mesa3d/src/gallium/auxiliary/vl/
Dvl_winsys_xlib_swrast.c166 struct pipe_resource templat; in vl_swrast_texture_from_drawable() local
167 memset(&templat, 0, sizeof(templat)); in vl_swrast_texture_from_drawable()
168 templat.target = PIPE_TEXTURE_2D; in vl_swrast_texture_from_drawable()
169 templat.format = x11_window_format; in vl_swrast_texture_from_drawable()
170 templat.width0 = x11_window_attrs.width; in vl_swrast_texture_from_drawable()
171 templat.height0 = x11_window_attrs.height; in vl_swrast_texture_from_drawable()
172 templat.depth0 = 1; in vl_swrast_texture_from_drawable()
173 templat.array_size = 1; in vl_swrast_texture_from_drawable()
174 templat.last_level = 0; in vl_swrast_texture_from_drawable()
175 templat.bind = (PIPE_BIND_RENDER_TARGET | PIPE_BIND_DISPLAY_TARGET); in vl_swrast_texture_from_drawable()
[all …]
Dvl_decoder.c65 const struct pipe_video_codec *templat) in vl_create_decoder() argument
67 unsigned width = templat->width, height = templat->height; in vl_create_decoder()
77 templat->profile, in vl_create_decoder()
78 templat->entrypoint, in vl_create_decoder()
82 temp = *templat; in vl_create_decoder()
/third_party/mesa3d/src/gallium/frontends/vdpau/
Dsurface.c84 memset(&p_surf->templat, 0, sizeof(p_surf->templat)); in vlVdpVideoSurfaceCreate()
86 p_surf->templat.buffer_format = pipe->screen->get_video_param in vlVdpVideoSurfaceCreate()
93 p_surf->templat.width = width; in vlVdpVideoSurfaceCreate()
94 p_surf->templat.height = height; in vlVdpVideoSurfaceCreate()
95 p_surf->templat.interlaced = pipe->screen->get_video_param in vlVdpVideoSurfaceCreate()
102 if (p_surf->templat.buffer_format != PIPE_FORMAT_NONE) in vlVdpVideoSurfaceCreate()
103 p_surf->video_buffer = pipe->create_video_buffer(pipe, &p_surf->templat); in vlVdpVideoSurfaceCreate()
173 *width = p_surf->templat.width; in vlVdpVideoSurfaceGetParameters()
174 *height = p_surf->templat.height; in vlVdpVideoSurfaceGetParameters()
175 *chroma_type = PipeToChroma(pipe_format_to_chroma_format(p_surf->templat.buffer_format)); in vlVdpVideoSurfaceGetParameters()
[all …]
/third_party/mesa3d/src/gallium/frontends/d3d10umd/
DResource.cpp267 struct pipe_resource templat; in CreateResource() local
269 memset(&templat, 0, sizeof templat); in CreateResource()
271 templat.target = translate_texture_target( pCreateResource->ResourceDimension, in CreateResource()
273 pResource->buffer = templat.target == PIPE_BUFFER; in CreateResource()
277 templat.format = PIPE_FORMAT_R8_UINT; in CreateResource()
280 templat.format = FormatTranslate(pCreateResource->Format, bindDepthStencil); in CreateResource()
283 templat.width0 = pCreateResource->pMipInfoList[0].TexelWidth; in CreateResource()
284 templat.height0 = pCreateResource->pMipInfoList[0].TexelHeight; in CreateResource()
285 templat.depth0 = pCreateResource->pMipInfoList[0].TexelDepth; in CreateResource()
286 templat.array_size = pCreateResource->ArraySize; in CreateResource()
[all …]
/third_party/mesa3d/src/gallium/frontends/hgl/
Dhgl.c88 struct pipe_resource templat; in hgl_st_framebuffer_validate_textures() local
101 memset(&templat, 0, sizeof(templat)); in hgl_st_framebuffer_validate_textures()
102 templat.target = buffer->target; in hgl_st_framebuffer_validate_textures()
103 templat.width0 = width; in hgl_st_framebuffer_validate_textures()
104 templat.height0 = height; in hgl_st_framebuffer_validate_textures()
105 templat.depth0 = 1; in hgl_st_framebuffer_validate_textures()
106 templat.array_size = 1; in hgl_st_framebuffer_validate_textures()
107 templat.last_level = 0; in hgl_st_framebuffer_validate_textures()
133 templat.format = format; in hgl_st_framebuffer_validate_textures()
134 templat.bind = bind; in hgl_st_framebuffer_validate_textures()
[all …]
/third_party/mesa3d/src/gallium/frontends/omx/
Dvid_dec_common.c42 struct pipe_video_buffer templat = {}; in vid_dec_NeedTarget() local
53 memset(&templat, 0, sizeof(templat)); in vid_dec_NeedTarget()
55 templat.width = priv->codec->width; in vid_dec_NeedTarget()
56 templat.height = priv->codec->height; in vid_dec_NeedTarget()
57 templat.buffer_format = pscreen->get_video_param( in vid_dec_NeedTarget()
63 templat.interlaced = pscreen->get_video_param( in vid_dec_NeedTarget()
70 priv->target = priv->pipe->create_video_buffer(priv->pipe, &templat); in vid_dec_NeedTarget()
/third_party/mesa3d/src/gallium/drivers/lima/
Dlima_resource.c56 const struct pipe_resource *templat, in lima_resource_create_scanout() argument
64 struct pipe_resource scanout_templat = *templat; in lima_resource_create_scanout()
75 pres = pscreen->resource_from_handle(pscreen, templat, &handle, in lima_resource_create_scanout()
147 const struct pipe_resource *templat, in lima_resource_create_bo() argument
159 res->base = *templat; in lima_resource_create_bo()
179 const struct pipe_resource *templat, in _lima_resource_create_with_modifiers() argument
193 if (templat->target == PIPE_BUFFER) in _lima_resource_create_with_modifiers()
196 if (templat->bind & (PIPE_BIND_LINEAR | PIPE_BIND_SCANOUT)) in _lima_resource_create_with_modifiers()
200 if (!has_user_modifiers && (templat->bind & PIPE_BIND_SHARED)) in _lima_resource_create_with_modifiers()
209 if (templat->bind & (PIPE_BIND_INDEX_BUFFER | in _lima_resource_create_with_modifiers()
[all …]
/third_party/mesa3d/src/gallium/drivers/softpipe/
Dsp_texture.c156 const struct pipe_resource *templat, in softpipe_resource_create_front() argument
163 assert(templat->format != PIPE_FORMAT_NONE); in softpipe_resource_create_front()
165 spr->base = *templat; in softpipe_resource_create_front()
169 spr->pot = (util_is_power_of_two_or_zero(templat->width0) && in softpipe_resource_create_front()
170 util_is_power_of_two_or_zero(templat->height0) && in softpipe_resource_create_front()
171 util_is_power_of_two_or_zero(templat->depth0)); in softpipe_resource_create_front()
193 const struct pipe_resource *templat) in softpipe_resource_create() argument
195 return softpipe_resource_create_front(screen, templat, NULL); in softpipe_resource_create()
221 const struct pipe_resource *templat, in softpipe_resource_from_handle() argument
230 spr->base = *templat; in softpipe_resource_from_handle()
[all …]
/third_party/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_texture.c230 const struct pipe_resource *templat, in llvmpipe_resource_create_all() argument
238 lpr->base = *templat; in llvmpipe_resource_create_all()
261 const uint bytes = templat->width0; in llvmpipe_resource_create_all()
262 assert(util_format_get_blocksize(templat->format) == 1); in llvmpipe_resource_create_all()
263 assert(templat->height0 == 1); in llvmpipe_resource_create_all()
264 assert(templat->depth0 == 1); in llvmpipe_resource_create_all()
265 assert(templat->last_level == 0); in llvmpipe_resource_create_all()
279 if (!(templat->flags & PIPE_RESOURCE_FLAG_DONT_OVER_ALLOCATE)) in llvmpipe_resource_create_all()
308 const struct pipe_resource *templat, in llvmpipe_resource_create_front() argument
311 return llvmpipe_resource_create_all(_screen, templat, map_front_private, true); in llvmpipe_resource_create_front()
[all …]
/third_party/mesa3d/src/gallium/frontends/xvmc/
Dcontext.c194 struct pipe_video_codec templat = {0}; in XvMCCreateContext() local
250 templat.profile = ProfileToPipe(mc_type); in XvMCCreateContext()
251templat.entrypoint = (mc_type & XVMC_IDCT) ? PIPE_VIDEO_ENTRYPOINT_IDCT : PIPE_VIDEO_ENTRYPOINT_MC; in XvMCCreateContext()
252 templat.chroma_format = FormatToPipe(chroma_format); in XvMCCreateContext()
253 templat.width = width; in XvMCCreateContext()
254 templat.height = height; in XvMCCreateContext()
255 templat.max_references = 2; in XvMCCreateContext()
256 templat.expect_chunked_decode = true; in XvMCCreateContext()
258 context_priv->decoder = pipe->create_video_codec(pipe, &templat); in XvMCCreateContext()
/third_party/mesa3d/src/gallium/frontends/osmesa/
Dosmesa.c427 struct pipe_resource templat; in osmesa_st_framebuffer_validate() local
429 memset(&templat, 0, sizeof(templat)); in osmesa_st_framebuffer_validate()
430 templat.target = PIPE_TEXTURE_RECT; in osmesa_st_framebuffer_validate()
431 templat.format = 0; /* setup below */ in osmesa_st_framebuffer_validate()
432 templat.last_level = 0; in osmesa_st_framebuffer_validate()
433 templat.width0 = osbuffer->width; in osmesa_st_framebuffer_validate()
434 templat.height0 = osbuffer->height; in osmesa_st_framebuffer_validate()
435 templat.depth0 = 1; in osmesa_st_framebuffer_validate()
436 templat.array_size = 1; in osmesa_st_framebuffer_validate()
437 templat.usage = PIPE_USAGE_DEFAULT; in osmesa_st_framebuffer_validate()
[all …]

1234