/external/mesa3d/src/gallium/auxiliary/util/ |
D | u_pstipple.c | 107 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/tests/graw/ |
D | gs-test.c | 151 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 …]
|
D | vs-test.c | 82 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 …]
|
D | clear.c | 42 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 …]
|
D | quad-sample.c | 166 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.bind = PIPE_BIND_SAMPLER_VIEW; in init_tex() 223 &templat); in init_tex() [all …]
|
D | fs-test.c | 250 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.bind = PIPE_BIND_SAMPLER_VIEW; in init_tex() [all …]
|
D | tri-gs.c | 176 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.bind = (PIPE_BIND_RENDER_TARGET | in init() [all …]
|
D | shader-leak.c | 169 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.bind = (PIPE_BIND_RENDER_TARGET | in init() 205 tex = screen->resource_create(screen, &templat); in init() [all …]
|
D | tri-instanced.c | 227 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.bind = (PIPE_BIND_RENDER_TARGET | in init() [all …]
|
/external/mesa3d/src/gallium/drivers/etnaviv/ |
D | etnaviv_resource.c | 145 const struct pipe_resource *templat) in etna_screen_can_create_resource() argument 148 if (!translate_samples_to_xyscale(templat->nr_samples, NULL, NULL)) in etna_screen_can_create_resource() 155 if (templat->width0 > max_size || templat->height0 > max_size) in etna_screen_can_create_resource() 207 uint64_t modifier, const struct pipe_resource *templat) in etna_resource_alloc() argument 216 templat->target, util_format_name(templat->format), templat->width0, in etna_resource_alloc() 217 templat->height0, templat->depth0, templat->array_size, in etna_resource_alloc() 218 templat->last_level, templat->nr_samples, templat->usage, in etna_resource_alloc() 219 templat->bind, templat->flags); in etna_resource_alloc() 222 int nr_samples = templat->nr_samples; in etna_resource_alloc() 223 if ((templat->bind & (PIPE_BIND_RENDER_TARGET | PIPE_BIND_DEPTH_STENCIL)) && in etna_resource_alloc() [all …]
|
D | etnaviv_surface.c | 59 struct pipe_resource templat = *prsc; in etna_render_handle_incompatible() local 66 templat.bind &= (PIPE_BIND_DEPTH_STENCIL | PIPE_BIND_RENDER_TARGET | in etna_render_handle_incompatible() 70 DRM_FORMAT_MOD_LINEAR, &templat); in etna_render_handle_incompatible() 78 const struct pipe_surface *templat) in etna_create_surface() argument 88 assert(templat->u.tex.first_layer == templat->u.tex.last_layer); in etna_create_surface() 89 unsigned layer = templat->u.tex.first_layer; in etna_create_surface() 90 unsigned level = templat->u.tex.level; in etna_create_surface() 116 surf->base.format = templat->format; in etna_create_surface() 119 surf->base.writable = templat->writable; /* what is this for anyway */ in etna_create_surface() 120 surf->base.u = templat->u; in etna_create_surface()
|
/external/mesa3d/src/gallium/frontends/va/ |
D | picture.c | 61 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() 114 u_reduce_video_profile(context->templat.profile); in handlePictureParameterBuffer() 155 context->templat.level = u_get_h264_level(context->templat.width, in handlePictureParameterBuffer() 156 context->templat.height, &context->templat.max_references); in handlePictureParameterBuffer() 159 &context->templat); in handlePictureParameterBuffer() 180 switch (u_reduce_video_profile(context->templat.profile)) { in handleIQMatrixBuffer() 209 switch (u_reduce_video_profile(context->templat.profile)) { in handleSliceParameterBuffer() 276 enum pipe_video_format format = u_reduce_video_profile(context->templat.profile); in handleVASliceDataBufferType() 285 format = u_reduce_video_profile(context->templat.profile); in handleVASliceDataBufferType() [all …]
|
D | image.c | 66 *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() 265 img->width = surf->templat.width; in vlVaDeriveImage() 266 img->height = surf->templat.height; in vlVaDeriveImage() 315 new_template = surf->templat; in vlVaDeriveImage() 328 src_rect.x1 = dst_rect.x1 = surf->templat.width; in vlVaDeriveImage() 330 src_rect.y1 = dst_rect.y1 = surf->templat.height; in vlVaDeriveImage() 460 if (x + width > surf->templat.width || in vlVaGetImage() [all …]
|
D | surface.c | 126 if (u_reduce_video_profile(context->templat.profile) == PIPE_VIDEO_FORMAT_MPEG4_AVC) { in vlVaSyncSurface() 563 unsigned index, struct pipe_video_buffer *templat) in surface_from_external_memory() argument 581 if (surface->templat.width != memory_attribute->width || in surface_from_external_memory() 582 surface->templat.height != memory_attribute->height || in surface_from_external_memory() 589 vl_get_video_buffer_formats(pscreen, templat->buffer_format, resource_formats); in surface_from_external_memory() 625 surface->buffer = vl_video_buffer_create_ex2(drv->pipe, templat, resources); in surface_from_external_memory() 640 struct pipe_video_buffer *templat) in vlVaHandleSurfaceAllocate() argument 645 surface->buffer = drv->pipe->create_video_buffer(drv->pipe, templat); in vlVaHandleSurfaceAllocate() 676 struct pipe_video_buffer templat; in vlVaCreateSurfaces2() local 762 memset(&templat, 0, sizeof(templat)); in vlVaCreateSurfaces2() [all …]
|
D | context.c | 242 context->templat.profile = config->profile; in vlVaCreateContext() 243 context->templat.entrypoint = config->entrypoint; in vlVaCreateContext() 244 context->templat.chroma_format = PIPE_VIDEO_CHROMA_FORMAT_420; in vlVaCreateContext() 245 context->templat.width = picture_width; in vlVaCreateContext() 246 context->templat.height = picture_height; in vlVaCreateContext() 247 context->templat.expect_chunked_decode = true; in vlVaCreateContext() 249 switch (u_reduce_video_profile(context->templat.profile)) { in vlVaCreateContext() 253 context->templat.max_references = 2; in vlVaCreateContext() 257 context->templat.max_references = 0; in vlVaCreateContext() 300 switch (u_reduce_video_profile(context->templat.profile)) { in vlVaCreateContext()
|
/external/mesa3d/src/gallium/auxiliary/vl/ |
D | vl_decoder.c | 65 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()
|
D | vl_video_buffer.h | 119 const struct pipe_video_buffer *templat, 130 const struct pipe_video_buffer *templat); 137 const struct pipe_video_buffer *templat, 147 const struct pipe_video_buffer *templat,
|
/external/mesa3d/src/gallium/frontends/vdpau/ |
D | surface.c | 84 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 …]
|
D | decode.c | 47 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/frontends/hgl/ |
D | hgl.c | 89 struct pipe_resource templat; in hgl_st_framebuffer_validate_textures() local 100 memset(&templat, 0, sizeof(templat)); in hgl_st_framebuffer_validate_textures() 101 templat.target = buffer->target; in hgl_st_framebuffer_validate_textures() 102 templat.width0 = width; in hgl_st_framebuffer_validate_textures() 103 templat.height0 = height; in hgl_st_framebuffer_validate_textures() 104 templat.depth0 = 1; in hgl_st_framebuffer_validate_textures() 105 templat.array_size = 1; in hgl_st_framebuffer_validate_textures() 106 templat.last_level = 0; in hgl_st_framebuffer_validate_textures() 131 templat.format = format; in hgl_st_framebuffer_validate_textures() 132 templat.bind = bind; in hgl_st_framebuffer_validate_textures() [all …]
|
/external/mesa3d/src/gallium/frontends/omx/ |
D | vid_dec_common.c | 42 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()
|
/external/mesa3d/src/gallium/drivers/lima/ |
D | lima_resource.c | 54 const struct pipe_resource *templat, in lima_resource_create_scanout() argument 62 struct pipe_resource scanout_templat = *templat; in lima_resource_create_scanout() 73 pres = pscreen->resource_from_handle(pscreen, templat, &handle, in lima_resource_create_scanout() 145 const struct pipe_resource *templat, in lima_resource_create_bo() argument 157 res->base = *templat; in lima_resource_create_bo() 177 const struct pipe_resource *templat, in _lima_resource_create_with_modifiers() argument 191 if (templat->target == PIPE_BUFFER) in _lima_resource_create_with_modifiers() 194 if (templat->bind & (PIPE_BIND_LINEAR | PIPE_BIND_SCANOUT)) in _lima_resource_create_with_modifiers() 198 if (!has_user_modifiers && (templat->bind & PIPE_BIND_SHARED)) in _lima_resource_create_with_modifiers() 206 if (should_tile || (templat->bind & PIPE_BIND_RENDER_TARGET) || in _lima_resource_create_with_modifiers() [all …]
|
/external/mesa3d/src/gallium/drivers/softpipe/ |
D | sp_texture.c | 156 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 …]
|
/external/mesa3d/src/gallium/frontends/xvmc/ |
D | context.c | 194 struct pipe_video_codec templat = {0}; in XvMCCreateContext() local 250 templat.profile = ProfileToPipe(mc_type); in XvMCCreateContext() 251 …templat.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/frontends/osmesa/ |
D | osmesa.c | 399 struct pipe_resource templat; in osmesa_st_framebuffer_validate() local 401 memset(&templat, 0, sizeof(templat)); in osmesa_st_framebuffer_validate() 402 templat.target = PIPE_TEXTURE_RECT; in osmesa_st_framebuffer_validate() 403 templat.format = 0; /* setup below */ in osmesa_st_framebuffer_validate() 404 templat.last_level = 0; in osmesa_st_framebuffer_validate() 405 templat.width0 = osbuffer->width; in osmesa_st_framebuffer_validate() 406 templat.height0 = osbuffer->height; in osmesa_st_framebuffer_validate() 407 templat.depth0 = 1; in osmesa_st_framebuffer_validate() 408 templat.array_size = 1; in osmesa_st_framebuffer_validate() 409 templat.usage = PIPE_USAGE_DEFAULT; in osmesa_st_framebuffer_validate() [all …]
|