Home
last modified time | relevance | path

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

1234

/external/mesa3d/src/gallium/tests/graw/
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.nr_samples = 1; in init_fs_constbuf()
[all …]
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.nr_samples = 1; in init_fs_constbuf()
[all …]
Dquad-sample.c166 struct pipe_resource templat; in init_tex() local
212 memset(&templat, 0, sizeof(templat)); in init_tex()
213 templat.target = PIPE_TEXTURE_2D; in init_tex()
214 templat.format = PIPE_FORMAT_B8G8R8A8_UNORM; in init_tex()
215 templat.width0 = SIZE; in init_tex()
216 templat.height0 = SIZE; in init_tex()
217 templat.depth0 = 1; in init_tex()
218 templat.last_level = 0; in init_tex()
219 templat.nr_samples = 1; in init_tex()
220 templat.bind = PIPE_BIND_SAMPLER_VIEW; in init_tex()
[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.nr_samples = 1; in init()
[all …]
Dfs-test.c250 struct pipe_resource templat; in init_tex() local
296 memset(&templat, 0, sizeof(templat)); in init_tex()
297 templat.target = PIPE_TEXTURE_2D; in init_tex()
298 templat.format = PIPE_FORMAT_B8G8R8A8_UNORM; in init_tex()
299 templat.width0 = SIZE; in init_tex()
300 templat.height0 = SIZE; in init_tex()
301 templat.depth0 = 1; in init_tex()
302 templat.array_size = 1; in init_tex()
303 templat.last_level = 0; in init_tex()
304 templat.nr_samples = 1; in init_tex()
[all …]
Dtri-gs.c176 struct pipe_resource templat; in init() local
202 memset(&templat, 0, sizeof(templat)); in init()
203 templat.target = PIPE_TEXTURE_2D; in init()
204 templat.format = formats[i]; in init()
205 templat.width0 = WIDTH; in init()
206 templat.height0 = HEIGHT; in init()
207 templat.depth0 = 1; in init()
208 templat.array_size = 1; in init()
209 templat.last_level = 0; in init()
210 templat.nr_samples = 1; in init()
[all …]
Dshader-leak.c169 struct pipe_resource templat; in init() local
195 memset(&templat, 0, sizeof(templat)); in init()
196 templat.target = PIPE_TEXTURE_2D; in init()
197 templat.format = formats[i]; in init()
198 templat.width0 = WIDTH; in init()
199 templat.height0 = HEIGHT; in init()
200 templat.depth0 = 1; in init()
201 templat.last_level = 0; in init()
202 templat.nr_samples = 1; in init()
203 templat.bind = (PIPE_BIND_RENDER_TARGET | in init()
[all …]
Dtri-instanced.c227 struct pipe_resource templat; in init() local
253 memset(&templat, 0, sizeof(templat)); in init()
254 templat.target = PIPE_TEXTURE_2D; in init()
255 templat.format = formats[i]; in init()
256 templat.width0 = WIDTH; in init()
257 templat.height0 = HEIGHT; in init()
258 templat.depth0 = 1; in init()
259 templat.array_size = 1; in init()
260 templat.last_level = 0; in init()
261 templat.nr_samples = 1; in init()
[all …]
/external/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 …]
/external/mesa3d/src/gallium/drivers/etnaviv/
Detnaviv_resource.c130 const struct pipe_resource *templat) in etna_screen_can_create_resource() argument
133 if (!translate_samples_to_xyscale(templat->nr_samples, NULL, NULL, NULL)) in etna_screen_can_create_resource()
140 if (templat->width0 > max_size || templat->height0 > max_size) in etna_screen_can_create_resource()
182 uint64_t modifier, const struct pipe_resource *templat) in etna_resource_alloc() argument
191 templat->target, util_format_name(templat->format), templat->width0, in etna_resource_alloc()
192 templat->height0, templat->depth0, templat->array_size, in etna_resource_alloc()
193 templat->last_level, templat->nr_samples, templat->usage, in etna_resource_alloc()
194 templat->bind, templat->flags); in etna_resource_alloc()
197 int nr_samples = templat->nr_samples; in etna_resource_alloc()
198 if ((templat->bind & (PIPE_BIND_RENDER_TARGET | PIPE_BIND_DEPTH_STENCIL)) && in etna_resource_alloc()
[all …]
Detnaviv_surface.c42 const struct pipe_surface *templat) in etna_create_surface() argument
51 assert(templat->u.tex.first_layer == templat->u.tex.last_layer); in etna_create_surface()
52 unsigned layer = templat->u.tex.first_layer; in etna_create_surface()
53 unsigned level = templat->u.tex.level; in etna_create_surface()
79 surf->base.writable = templat->writable; /* what is this for anyway */ in etna_create_surface()
80 surf->base.u = templat->u; in etna_create_surface()
/external/mesa3d/src/gallium/state_trackers/vdpau/
Dsurface.c84 memset(&p_surf->templat, 0, sizeof(p_surf->templat)); in vlVdpVideoSurfaceCreate()
85 p_surf->templat.buffer_format = pipe->screen->get_video_param in vlVdpVideoSurfaceCreate()
92 p_surf->templat.chroma_format = ChromaToPipe(chroma_type); 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()
[all …]
Ddecode.c47 struct pipe_video_codec templat = {}; in vlVdpDecoderCreate() local
63 templat.profile = ProfileToPipe(profile); in vlVdpDecoderCreate()
64 if (templat.profile == PIPE_VIDEO_PROFILE_UNKNOWN) in vlVdpDecoderCreate()
79 templat.profile, in vlVdpDecoderCreate()
91 templat.profile, in vlVdpDecoderCreate()
98 templat.profile, in vlVdpDecoderCreate()
115 templat.entrypoint = PIPE_VIDEO_ENTRYPOINT_BITSTREAM; in vlVdpDecoderCreate()
116 templat.chroma_format = PIPE_VIDEO_CHROMA_FORMAT_420; in vlVdpDecoderCreate()
117 templat.width = width; in vlVdpDecoderCreate()
118 templat.height = height; in vlVdpDecoderCreate()
[all …]
/external/mesa3d/src/gallium/state_trackers/hgl/
Dhgl.c86 struct pipe_resource templat; in hgl_st_framebuffer_validate_textures() local
97 memset(&templat, 0, sizeof(templat)); in hgl_st_framebuffer_validate_textures()
98 templat.target = buffer->target; in hgl_st_framebuffer_validate_textures()
99 templat.width0 = width; in hgl_st_framebuffer_validate_textures()
100 templat.height0 = height; in hgl_st_framebuffer_validate_textures()
101 templat.depth0 = 1; in hgl_st_framebuffer_validate_textures()
102 templat.array_size = 1; in hgl_st_framebuffer_validate_textures()
103 templat.last_level = 0; in hgl_st_framebuffer_validate_textures()
128 templat.format = format; in hgl_st_framebuffer_validate_textures()
129 templat.bind = bind; in hgl_st_framebuffer_validate_textures()
[all …]
/external/mesa3d/src/gallium/auxiliary/vl/
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()
Dvl_video_buffer.h118 const struct pipe_video_buffer *templat,
128 const struct pipe_video_buffer *templat);
135 const struct pipe_video_buffer *templat,
144 const struct pipe_video_buffer *templat,
Dvl_mpeg12_decoder.c963 struct pipe_video_buffer templat; in init_idct() local
985 memset(&templat, 0, sizeof(templat)); in init_idct()
986 templat.width = dec->base.width / 4; in init_idct()
987 templat.height = dec->base.height; in init_idct()
988 templat.chroma_format = dec->base.chroma_format; in init_idct()
991 dec->context, &templat, in init_idct()
999 memset(&templat, 0, sizeof(templat)); in init_idct()
1000 templat.width = dec->base.width / nr_of_idct_render_targets; in init_idct()
1001 templat.height = dec->base.height / 4; in init_idct()
1002 templat.chroma_format = dec->base.chroma_format; in init_idct()
[all …]
/external/mesa3d/src/gallium/state_trackers/va/
Dpicture.c60 if (u_reduce_video_profile(context->templat.profile) == PIPE_VIDEO_FORMAT_MPEG12) { in vlVaBeginPicture()
78 if (context->templat.profile == PIPE_VIDEO_PROFILE_UNKNOWN && in vlVaBeginPicture()
152 switch (u_reduce_video_profile(context->templat.profile)) { in handlePictureParameterBuffer()
184 u_reduce_video_profile(context->templat.profile); in handlePictureParameterBuffer()
189 if (context->templat.max_references == 0 && in handlePictureParameterBuffer()
194 context->templat.level = u_get_h264_level(context->templat.width, in handlePictureParameterBuffer()
195 context->templat.height, &context->templat.max_references); in handlePictureParameterBuffer()
198 &context->templat); in handlePictureParameterBuffer()
212 switch (u_reduce_video_profile(context->templat.profile)) { in handleIQMatrixBuffer()
241 switch (u_reduce_video_profile(context->templat.profile)) { in handleSliceParameterBuffer()
[all …]
Dcontext.c239 context->templat.profile = config->profile; in vlVaCreateContext()
240 context->templat.entrypoint = config->entrypoint; in vlVaCreateContext()
241 context->templat.chroma_format = PIPE_VIDEO_CHROMA_FORMAT_420; in vlVaCreateContext()
242 context->templat.width = picture_width; in vlVaCreateContext()
243 context->templat.height = picture_height; in vlVaCreateContext()
244 context->templat.expect_chunked_decode = true; in vlVaCreateContext()
246 switch (u_reduce_video_profile(context->templat.profile)) { in vlVaCreateContext()
250 context->templat.max_references = 2; in vlVaCreateContext()
254 context->templat.max_references = 0; in vlVaCreateContext()
271 context->templat.max_references = num_render_targets; in vlVaCreateContext()
Dsurface.c527 unsigned index, struct pipe_video_buffer *templat) in suface_from_external_memory() argument
543 if (surface->templat.width != memory_attibute->width || in suface_from_external_memory()
544 surface->templat.height != memory_attibute->height || in suface_from_external_memory()
567 res_templ.format = surface->templat.buffer_format; in suface_from_external_memory()
585 surface->buffer = vl_video_buffer_create_ex2(drv->pipe, templat, resources); in suface_from_external_memory()
594 struct pipe_video_buffer *templat) in vlVaHandleSurfaceAllocate() argument
599 surface->buffer = drv->pipe->create_video_buffer(drv->pipe, templat); in vlVaHandleSurfaceAllocate()
630 struct pipe_video_buffer templat; in vlVaCreateSurfaces2() local
712 memset(&templat, 0, sizeof(templat)); in vlVaCreateSurfaces2()
714 templat.buffer_format = pscreen->get_video_param( in vlVaCreateSurfaces2()
[all …]
/external/mesa3d/src/gallium/state_trackers/omx_bellagio/
Dvid_dec.c425 struct pipe_video_buffer templat = {}; in vid_dec_NeedTarget() local
436 memset(&templat, 0, sizeof(templat)); in vid_dec_NeedTarget()
438 templat.chroma_format = PIPE_VIDEO_CHROMA_FORMAT_420; in vid_dec_NeedTarget()
439 templat.width = priv->codec->width; in vid_dec_NeedTarget()
440 templat.height = priv->codec->height; in vid_dec_NeedTarget()
441 templat.buffer_format = pscreen->get_video_param( in vid_dec_NeedTarget()
447 templat.interlaced = pscreen->get_video_param( in vid_dec_NeedTarget()
453 priv->target = priv->pipe->create_video_buffer(priv->pipe, &templat); in vid_dec_NeedTarget()
604 struct pipe_video_buffer templat = {}; in vid_dec_FrameDecoded() local
609 memset(&templat, 0, sizeof(templat)); in vid_dec_FrameDecoded()
[all …]
Dvid_dec_mpeg12.c68 struct pipe_video_codec templat = {}; in vid_dec_mpeg12_Init() local
72 templat.profile = priv->profile; in vid_dec_mpeg12_Init()
73 templat.entrypoint = PIPE_VIDEO_ENTRYPOINT_BITSTREAM; in vid_dec_mpeg12_Init()
74 templat.chroma_format = PIPE_VIDEO_CHROMA_FORMAT_420; in vid_dec_mpeg12_Init()
75 templat.max_references = 2; in vid_dec_mpeg12_Init()
76 templat.expect_chunked_decode = true; in vid_dec_mpeg12_Init()
77 templat.width = port->sPortParam.format.video.nFrameWidth; in vid_dec_mpeg12_Init()
78 templat.height = port->sPortParam.format.video.nFrameHeight; in vid_dec_mpeg12_Init()
80 priv->codec = priv->pipe->create_video_codec(priv->pipe, &templat); in vid_dec_mpeg12_Init()
/external/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(templat->width0) && in softpipe_resource_create_front()
170 util_is_power_of_two(templat->height0) && in softpipe_resource_create_front()
171 util_is_power_of_two(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 …]
/external/mesa3d/src/gallium/state_trackers/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()
/external/mesa3d/src/gallium/state_trackers/osmesa/
Dosmesa.c394 struct pipe_resource templat; in osmesa_st_framebuffer_validate() local
396 memset(&templat, 0, sizeof(templat)); in osmesa_st_framebuffer_validate()
397 templat.target = PIPE_TEXTURE_RECT; in osmesa_st_framebuffer_validate()
398 templat.format = 0; /* setup below */ in osmesa_st_framebuffer_validate()
399 templat.last_level = 0; in osmesa_st_framebuffer_validate()
400 templat.width0 = osbuffer->width; in osmesa_st_framebuffer_validate()
401 templat.height0 = osbuffer->height; in osmesa_st_framebuffer_validate()
402 templat.depth0 = 1; in osmesa_st_framebuffer_validate()
403 templat.array_size = 1; in osmesa_st_framebuffer_validate()
404 templat.usage = PIPE_USAGE_DEFAULT; in osmesa_st_framebuffer_validate()
[all …]

1234