/external/mesa3d/src/gallium/drivers/galahad/ |
D | glhd_screen.c | 142 const struct pipe_resource *templat) in galahad_screen_resource_create() argument 148 glhd_check("%u", templat->width0, >= 1); in galahad_screen_resource_create() 149 glhd_check("%u", templat->height0, >= 1); in galahad_screen_resource_create() 150 glhd_check("%u", templat->depth0, >= 1); in galahad_screen_resource_create() 151 glhd_check("%u", templat->array_size, >= 1); in galahad_screen_resource_create() 153 if (templat->target == PIPE_BUFFER) { in galahad_screen_resource_create() 154 glhd_check("%u", templat->last_level, == 0); in galahad_screen_resource_create() 155 glhd_check("%u", templat->height0, == 1); in galahad_screen_resource_create() 156 glhd_check("%u", templat->depth0, == 1); in galahad_screen_resource_create() 157 glhd_check("%u", templat->array_size, == 1); in galahad_screen_resource_create() [all …]
|
/external/mesa3d/src/gallium/tests/graw/ |
D | fs-test.c | 114 struct pipe_resource templat; in init_fs_constbuf() local 117 templat.target = PIPE_BUFFER; in init_fs_constbuf() 118 templat.format = PIPE_FORMAT_R8_UNORM; in init_fs_constbuf() 119 templat.width0 = sizeof(constants1); in init_fs_constbuf() 120 templat.height0 = 1; in init_fs_constbuf() 121 templat.depth0 = 1; in init_fs_constbuf() 122 templat.array_size = 1; in init_fs_constbuf() 123 templat.last_level = 0; in init_fs_constbuf() 124 templat.nr_samples = 1; in init_fs_constbuf() 125 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 templat.target = PIPE_BUFFER; in init_fs_constbuf() 86 templat.format = PIPE_FORMAT_R8_UNORM; in init_fs_constbuf() 87 templat.width0 = sizeof(constants); in init_fs_constbuf() 88 templat.height0 = 1; in init_fs_constbuf() 89 templat.depth0 = 1; in init_fs_constbuf() 90 templat.array_size = 1; in init_fs_constbuf() 91 templat.last_level = 0; in init_fs_constbuf() 92 templat.nr_samples = 1; in init_fs_constbuf() 93 templat.bind = PIPE_BIND_CONSTANT_BUFFER; in init_fs_constbuf() [all …]
|
D | gs-test.c | 151 struct pipe_resource templat; in init_fs_constbuf() local 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() 162 templat.bind = PIPE_BIND_CONSTANT_BUFFER; in init_fs_constbuf() [all …]
|
D | clear.c | 42 struct pipe_resource templat; in init() local 68 templat.target = PIPE_TEXTURE_2D; in init() 69 templat.format = formats[i]; in init() 70 templat.width0 = WIDTH; in init() 71 templat.height0 = HEIGHT; in init() 72 templat.depth0 = 1; in init() 73 templat.array_size = 1; in init() 74 templat.last_level = 0; in init() 75 templat.nr_samples = 1; in init() 76 templat.bind = (PIPE_BIND_RENDER_TARGET | in init() [all …]
|
D | quad-sample.c | 167 struct pipe_resource templat; in init_tex() local 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() 224 &templat); in init_tex() [all …]
|
D | tri-gs.c | 177 struct pipe_resource templat; in init() local 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() 211 templat.bind = (PIPE_BIND_RENDER_TARGET | in init() [all …]
|
D | shader-leak.c | 170 struct pipe_resource templat; in init() local 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() 206 tex = screen->resource_create(screen, &templat); in init() [all …]
|
D | tri-instanced.c | 228 struct pipe_resource templat; in init() local 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() 262 templat.bind = (PIPE_BIND_RENDER_TARGET | in init() [all …]
|
/external/mesa3d/src/gallium/auxiliary/util/ |
D | u_pstipple.c | 109 struct pipe_resource templat, *tex; in util_pstipple_create_stipple_texture() local 111 memset(&templat, 0, sizeof(templat)); in util_pstipple_create_stipple_texture() 112 templat.target = PIPE_TEXTURE_2D; in util_pstipple_create_stipple_texture() 113 templat.format = PIPE_FORMAT_A8_UNORM; in util_pstipple_create_stipple_texture() 114 templat.last_level = 0; in util_pstipple_create_stipple_texture() 115 templat.width0 = 32; in util_pstipple_create_stipple_texture() 116 templat.height0 = 32; in util_pstipple_create_stipple_texture() 117 templat.depth0 = 1; in util_pstipple_create_stipple_texture() 118 templat.array_size = 1; in util_pstipple_create_stipple_texture() 119 templat.bind = PIPE_BIND_SAMPLER_VIEW; in util_pstipple_create_stipple_texture() [all …]
|
D | u_dump_state.c | 257 util_dump_template(FILE *stream, const struct pipe_resource *templat) in util_dump_template() argument 259 if(!templat) { in util_dump_template() 266 util_dump_member(stream, int, templat, target); in util_dump_template() 267 util_dump_member(stream, format, templat, format); in util_dump_template() 270 util_dump_uint(stream, templat->width0); in util_dump_template() 274 util_dump_uint(stream, templat->height0); in util_dump_template() 278 util_dump_uint(stream, templat->depth0); in util_dump_template() 282 util_dump_uint(stream, templat->array_size); in util_dump_template() 285 util_dump_member(stream, uint, templat, last_level); in util_dump_template() 286 util_dump_member(stream, uint, templat, usage); in util_dump_template() [all …]
|
/external/mesa3d/src/gallium/auxiliary/vl/ |
D | vl_winsys_xsp.c | 64 struct pipe_resource templat; in vl_screen_texture_from_drawable() local 81 memset(&templat, 0, sizeof(struct pipe_resource)); in vl_screen_texture_from_drawable() 82 templat.target = PIPE_TEXTURE_2D; in vl_screen_texture_from_drawable() 84 templat.format = PIPE_FORMAT_B8G8R8X8_UNORM; in vl_screen_texture_from_drawable() 85 templat.last_level = 0; in vl_screen_texture_from_drawable() 86 templat.width0 = width; in vl_screen_texture_from_drawable() 87 templat.height0 = height; in vl_screen_texture_from_drawable() 88 templat.depth0 = 1; in vl_screen_texture_from_drawable() 89 templat.usage = PIPE_USAGE_DEFAULT; in vl_screen_texture_from_drawable() 90 templat.bind = PIPE_BIND_RENDER_TARGET | PIPE_BIND_DISPLAY_TARGET; in vl_screen_texture_from_drawable() [all …]
|
D | vl_video_buffer.h | 99 const struct pipe_video_buffer *templat, 108 const struct pipe_video_buffer *templat); 115 const struct pipe_video_buffer *templat, 124 const struct pipe_video_buffer *templat,
|
D | vl_mpeg12_decoder.c | 879 struct pipe_video_buffer templat; in init_idct() local 901 memset(&templat, 0, sizeof(templat)); in init_idct() 902 templat.width = dec->base.width / 4; in init_idct() 903 templat.height = dec->base.height; in init_idct() 904 templat.chroma_format = dec->base.chroma_format; in init_idct() 907 dec->base.context, &templat, in init_idct() 915 memset(&templat, 0, sizeof(templat)); in init_idct() 916 templat.width = dec->base.width / nr_of_idct_render_targets; in init_idct() 917 templat.height = dec->base.height / 4; in init_idct() 918 templat.chroma_format = dec->base.chroma_format; in init_idct() [all …]
|
D | vl_video_buffer.c | 394 struct pipe_video_buffer templat, *result; in vl_video_buffer_create() local 411 templat = *tmpl; in vl_video_buffer_create() 412 templat.width = pot_buffers ? util_next_power_of_two(tmpl->width) in vl_video_buffer_create() 414 templat.height = pot_buffers ? util_next_power_of_two(tmpl->height) in vl_video_buffer_create() 418 templat.height /= 2; in vl_video_buffer_create() 422 pipe, &templat, resource_formats, in vl_video_buffer_create()
|
/external/mesa3d/src/gallium/state_trackers/d3d1x/gd3d11/ |
D | d3d11_screen.h | 795 struct pipe_resource templat; in create_resource() local 796 memset(&templat, 0, sizeof(templat)); in create_resource() 797 templat.target = target; in create_resource() 798 templat.width0 = width; in create_resource() 799 templat.height0 = height; in create_resource() 800 templat.depth0 = depth; in create_resource() 801 templat.array_size = array_size; in create_resource() 803 templat.last_level = mip_levels - 1; in create_resource() 805 …templat.last_level = MAX2(MAX2(util_logbase2(templat.width0), util_logbase2(templat.height0)), uti… in create_resource() 806 templat.format = dxgi_to_pipe_format[format]; in create_resource() [all …]
|
/external/mesa3d/src/gallium/state_trackers/vdpau/ |
D | surface.c | 78 memset(&p_surf->templat, 0, sizeof(p_surf->templat)); in vlVdpVideoSurfaceCreate() 79 p_surf->templat.buffer_format = pipe->screen->get_video_param in vlVdpVideoSurfaceCreate() 85 p_surf->templat.chroma_format = ChromaToPipe(chroma_type); in vlVdpVideoSurfaceCreate() 86 p_surf->templat.width = width; in vlVdpVideoSurfaceCreate() 87 p_surf->templat.height = height; in vlVdpVideoSurfaceCreate() 88 p_surf->templat.interlaced = pipe->screen->get_video_param in vlVdpVideoSurfaceCreate() 94 p_surf->video_buffer = pipe->create_video_buffer(pipe, &p_surf->templat); in vlVdpVideoSurfaceCreate() 159 *width = p_surf->templat.width; in vlVdpVideoSurfaceGetParameters() 160 *height = p_surf->templat.height; in vlVdpVideoSurfaceGetParameters() 161 *chroma_type = PipeToChroma(p_surf->templat.chroma_format); in vlVdpVideoSurfaceGetParameters() [all …]
|
/external/mesa3d/src/gallium/state_trackers/xorg/ |
D | xorg_crtc.c | 219 struct pipe_resource templat; in crtc_load_cursor_argb_ga3d() local 222 memset(&templat, 0, sizeof(templat)); in crtc_load_cursor_argb_ga3d() 223 templat.bind |= PIPE_BIND_RENDER_TARGET; in crtc_load_cursor_argb_ga3d() 224 templat.bind |= PIPE_BIND_SCANOUT; in crtc_load_cursor_argb_ga3d() 225 templat.bind |= PIPE_BIND_CURSOR; in crtc_load_cursor_argb_ga3d() 226 templat.target = PIPE_TEXTURE_2D; in crtc_load_cursor_argb_ga3d() 227 templat.last_level = 0; in crtc_load_cursor_argb_ga3d() 228 templat.depth0 = 1; in crtc_load_cursor_argb_ga3d() 229 templat.array_size = 1; in crtc_load_cursor_argb_ga3d() 230 templat.format = PIPE_FORMAT_B8G8R8A8_UNORM; in crtc_load_cursor_argb_ga3d() [all …]
|
/external/mesa3d/src/gallium/drivers/softpipe/ |
D | sp_texture.c | 120 const struct pipe_resource *templat) in softpipe_resource_create() argument 126 assert(templat->format != PIPE_FORMAT_NONE); in softpipe_resource_create() 128 spr->base = *templat; in softpipe_resource_create() 132 spr->pot = (util_is_power_of_two(templat->width0) && in softpipe_resource_create() 133 util_is_power_of_two(templat->height0) && in softpipe_resource_create() 134 util_is_power_of_two(templat->depth0)); in softpipe_resource_create() 178 const struct pipe_resource *templat, in softpipe_resource_from_handle() argument 186 spr->base = *templat; in softpipe_resource_from_handle() 190 spr->pot = (util_is_power_of_two(templat->width0) && in softpipe_resource_from_handle() 191 util_is_power_of_two(templat->height0) && in softpipe_resource_from_handle() [all …]
|
/external/mesa3d/src/gallium/drivers/trace/ |
D | tr_dump_state.c | 47 void trace_dump_resource_template(const struct pipe_resource *templat) in trace_dump_resource_template() argument 52 if(!templat) { in trace_dump_resource_template() 59 trace_dump_member(int, templat, target); in trace_dump_resource_template() 60 trace_dump_member(format, templat, format); in trace_dump_resource_template() 63 trace_dump_uint(templat->width0); in trace_dump_resource_template() 67 trace_dump_uint(templat->height0); in trace_dump_resource_template() 71 trace_dump_uint(templat->depth0); in trace_dump_resource_template() 75 trace_dump_uint(templat->array_size); in trace_dump_resource_template() 78 trace_dump_member(uint, templat, last_level); in trace_dump_resource_template() 79 trace_dump_member(uint, templat, usage); in trace_dump_resource_template() [all …]
|
/external/mesa3d/src/gallium/targets/graw-xlib/ |
D | graw_xlib.c | 56 XVisualInfo templat, *visinfo = NULL; in graw_create_window_and_screen() local 78 templat.screen = DefaultScreen(graw.display); in graw_create_window_and_screen() 79 templat.depth = 32; in graw_create_window_and_screen() 80 templat.class = TrueColor; in graw_create_window_and_screen() 82 visinfo = XGetVisualInfo(graw.display, mask, &templat, &n); in graw_create_window_and_screen()
|
/external/mesa3d/src/gallium/state_trackers/d3d1x/dxgi/src/ |
D | dxgi_native.cpp | 1035 struct pipe_sampler_view templat; in create_buffer0() local 1036 memset(&templat, 0, sizeof(templat)); in create_buffer0() 1037 templat.texture = gallium_buffer0; in create_buffer0() 1038 templat.swizzle_r = 0; in create_buffer0() 1039 templat.swizzle_g = 1; in create_buffer0() 1040 templat.swizzle_b = 2; in create_buffer0() 1041 templat.swizzle_a = 3; in create_buffer0() 1042 templat.format = gallium_buffer0->format; in create_buffer0() 1043 gallium_buffer0_view = pipe->create_sampler_view(pipe, gallium_buffer0, &templat); in create_buffer0() 1169 struct pipe_surface templat; in Present() local [all …]
|
/external/mesa3d/src/gallium/include/pipe/ |
D | p_screen.h | 144 const struct pipe_resource *templat); 152 const struct pipe_resource *templat,
|
D | p_context.h | 358 const struct pipe_sampler_view *templat); 371 const struct pipe_surface *templat); 437 const struct pipe_video_buffer *templat );
|
/external/mesa3d/src/gallium/drivers/nouveau/ |
D | nouveau_video.c | 786 const struct pipe_video_buffer *templat) in nouveau_video_buffer_create() argument 796 if (templat->buffer_format != PIPE_FORMAT_NV12 || getenv("XVMC_VL") || in nouveau_video_buffer_create() 798 return vl_video_buffer_create(pipe, templat); in nouveau_video_buffer_create() 800 assert(templat->chroma_format == PIPE_VIDEO_CHROMA_FORMAT_420); in nouveau_video_buffer_create() 801 width = align(templat->width, 64); in nouveau_video_buffer_create() 802 height = align(templat->height, 64); in nouveau_video_buffer_create() 813 buffer->base.chroma_format = templat->chroma_format; in nouveau_video_buffer_create() 895 const struct pipe_video_buffer *templat) in nouveau_context_video_buffer_create() argument 898 return nouveau_video_buffer_create(pipe, screen, templat); in nouveau_context_video_buffer_create()
|