/third_party/mesa3d/src/gallium/drivers/svga/ |
H A D | svga_pipe_rasterizer.c | 110 unsigned fill_mode = translate_fill_mode(rast->templ.fill_front); in svga_define_rasterizer_object() 111 const unsigned cull_mode = translate_cull_mode(rast->templ.cull_face); in svga_define_rasterizer_object() 112 const int depth_bias = rast->templ.offset_units; in svga_define_rasterizer_object() 113 const float slope_scaled_depth_bias = rast->templ.offset_scale; in svga_define_rasterizer_object() 116 const float line_width = rast->templ.line_width > 0.0f ? in svga_define_rasterizer_object() 117 rast->templ.line_width : 1.0f; in svga_define_rasterizer_object() 118 const uint8 line_factor = rast->templ.line_stipple_enable ? in svga_define_rasterizer_object() 119 rast->templ.line_stipple_factor : 0; in svga_define_rasterizer_object() 120 const uint16 line_pattern = rast->templ.line_stipple_enable ? in svga_define_rasterizer_object() 121 rast->templ in svga_define_rasterizer_object() 188 svga_create_rasterizer_state(struct pipe_context *pipe, const struct pipe_rasterizer_state *templ) svga_create_rasterizer_state() argument [all...] |
H A D | svga_pipe_depthstencil.c | 123 const struct pipe_depth_stencil_alpha_state *templ) in svga_create_depth_stencil_state() 135 ds->stencil[0].enabled = templ->stencil[0].enabled; in svga_create_depth_stencil_state() 137 ds->stencil[0].func = svga_translate_compare_func(templ->stencil[0].func); in svga_create_depth_stencil_state() 138 ds->stencil[0].fail = svga_translate_stencil_op(templ->stencil[0].fail_op); in svga_create_depth_stencil_state() 139 ds->stencil[0].zfail = svga_translate_stencil_op(templ->stencil[0].zfail_op); in svga_create_depth_stencil_state() 140 ds->stencil[0].pass = svga_translate_stencil_op(templ->stencil[0].zpass_op); in svga_create_depth_stencil_state() 145 ds->stencil_mask = templ->stencil[0].valuemask & 0xff; in svga_create_depth_stencil_state() 146 ds->stencil_writemask = templ->stencil[0].writemask & 0xff; in svga_create_depth_stencil_state() 155 ds->stencil[1].enabled = templ->stencil[1].enabled; in svga_create_depth_stencil_state() 156 if (templ in svga_create_depth_stencil_state() 122 svga_create_depth_stencil_state(struct pipe_context *pipe, const struct pipe_depth_stencil_alpha_state *templ) svga_create_depth_stencil_state() argument [all...] |
H A D | svga_pipe_blend.c | 294 const struct pipe_blend_state *templ) in svga_create_blend_state() 309 if (templ->rt[i].blend_enable) { in svga_create_blend_state() 322 if (templ->logicop_enable) { in svga_create_blend_state() 325 blend->logicop_mode = translate_logicop(templ->logicop_func); in svga_create_blend_state() 334 emulate_logicop(svga, templ->logicop_func, blend, i); in svga_create_blend_state() 343 svga_have_sm4_1(svga) && templ->independent_blend_enable in svga_create_blend_state() 345 if (templ->independent_blend_enable || templ->rt[j].blend_enable) { in svga_create_blend_state() 347 svga_translate_blend_factor(svga, templ->rt[j].rgb_src_factor); in svga_create_blend_state() 349 svga_translate_blend_factor(svga, templ in svga_create_blend_state() 293 svga_create_blend_state(struct pipe_context *pipe, const struct pipe_blend_state *templ) svga_create_blend_state() argument [all...] |
/third_party/mesa3d/src/gallium/drivers/nouveau/nv50/ |
H A D | nv50_resource.c | 12 const struct pipe_resource *templ) in nv50_resource_create() 14 switch (templ->target) { in nv50_resource_create() 16 return nouveau_buffer_create(screen, templ); in nv50_resource_create() 18 return nv50_miptree_create(screen, templ); in nv50_resource_create() 33 const struct pipe_resource *templ, in nv50_resource_from_handle() 37 if (templ->target == PIPE_BUFFER) in nv50_resource_from_handle() 40 return nv50_miptree_from_handle(screen, templ, whandle); in nv50_resource_from_handle() 46 const struct pipe_surface *templ) in nv50_surface_from_buffer() 55 sf->base.format = templ->format; in nv50_surface_from_buffer() 56 sf->base.writable = templ in nv50_surface_from_buffer() 11 nv50_resource_create(struct pipe_screen *screen, const struct pipe_resource *templ) nv50_resource_create() argument 32 nv50_resource_from_handle(struct pipe_screen * screen, const struct pipe_resource *templ, struct winsys_handle *whandle, unsigned usage) nv50_resource_from_handle() argument 44 nv50_surface_from_buffer(struct pipe_context *pipe, struct pipe_resource *pbuf, const struct pipe_surface *templ) nv50_surface_from_buffer() argument 77 nv50_surface_create(struct pipe_context *pipe, struct pipe_resource *pres, const struct pipe_surface *templ) nv50_surface_create() argument [all...] |
H A D | nv98_video.c | 86 const struct pipe_video_codec *templ) in nv98_create_decoder() 100 return vl_create_decoder(context, templ); in nv98_create_decoder() 102 if (templ->entrypoint != PIPE_VIDEO_ENTRYPOINT_BITSTREAM) { in nv98_create_decoder() 103 debug_printf("%x\n", templ->entrypoint); in nv98_create_decoder() 111 dec->base = *templ; in nv98_create_decoder() 197 switch (u_reduce_video_profile(templ->profile)) { in nv98_create_decoder() 200 assert(templ->max_references <= 2); in nv98_create_decoder() 205 tmp_size = mb(templ->height)*16 * mb(templ->width)*16; in nv98_create_decoder() 206 assert(templ in nv98_create_decoder() 85 nv98_create_decoder(struct pipe_context *context, const struct pipe_video_codec *templ) nv98_create_decoder() argument [all...] |
/third_party/mesa3d/src/gallium/drivers/nouveau/nvc0/ |
H A D | nvc0_resource.c | 10 const struct pipe_resource *templ) in nvc0_resource_create() 12 switch (templ->target) { in nvc0_resource_create() 14 return nouveau_buffer_create(screen, templ); in nvc0_resource_create() 16 return nvc0_miptree_create(screen, templ, NULL, 0); in nvc0_resource_create() 22 const struct pipe_resource *templ, in nvc0_resource_create_with_modifiers() 25 switch (templ->target) { in nvc0_resource_create_with_modifiers() 27 return nouveau_buffer_create(screen, templ); in nvc0_resource_create_with_modifiers() 29 return nvc0_miptree_create(screen, templ, modifiers, count); in nvc0_resource_create_with_modifiers() 116 const struct pipe_resource *templ, in nvc0_resource_from_handle() 120 if (templ in nvc0_resource_from_handle() 9 nvc0_resource_create(struct pipe_screen *screen, const struct pipe_resource *templ) nvc0_resource_create() argument 21 nvc0_resource_create_with_modifiers(struct pipe_screen *screen, const struct pipe_resource *templ, const uint64_t *modifiers, int count) nvc0_resource_create_with_modifiers() argument 115 nvc0_resource_from_handle(struct pipe_screen * screen, const struct pipe_resource *templ, struct winsys_handle *whandle, unsigned usage) nvc0_resource_from_handle() argument 130 nvc0_surface_create(struct pipe_context *pipe, struct pipe_resource *pres, const struct pipe_surface *templ) nvc0_surface_create() argument 140 nvc0_resource_from_user_memory(struct pipe_screen *pipe, const struct pipe_resource *templ, void *user_memory) nvc0_resource_from_user_memory() argument [all...] |
H A D | nvc0_video.c | 92 const struct pipe_video_codec *templ) in nvc0_create_decoder() 110 return vl_create_decoder(context, templ); in nvc0_create_decoder() 112 if (templ->entrypoint != PIPE_VIDEO_ENTRYPOINT_BITSTREAM) { in nvc0_create_decoder() 113 debug_printf("%x\n", templ->entrypoint); in nvc0_create_decoder() 121 dec->base = *templ; in nvc0_create_decoder() 208 unsigned inter_size = align(templ->width * templ->height * 2, 4 << 20); in nvc0_create_decoder() 219 switch (u_reduce_video_profile(templ->profile)) { in nvc0_create_decoder() 222 assert(templ->max_references <= 2); in nvc0_create_decoder() 227 tmp_size = mb(templ in nvc0_create_decoder() 91 nvc0_create_decoder(struct pipe_context *context, const struct pipe_video_codec *templ) nvc0_create_decoder() argument [all...] |
/third_party/mesa3d/src/gallium/winsys/d3d12/wgl/ |
H A D | d3d12_wgl_framebuffer.cpp | 95 pipe_resource *templ) in d3d12_wgl_framebuffer_resize() 104 desc.Format = d3d12_get_format(templ->format); in d3d12_wgl_framebuffer_resize() 105 desc.Width = templ->width0; in d3d12_wgl_framebuffer_resize() 106 desc.Height = templ->height0; in d3d12_wgl_framebuffer_resize() 110 framebuffer->pformat = templ->format; in d3d12_wgl_framebuffer_resize() 199 struct pipe_resource templ; in d3d12_wgl_framebuffer_get_resource() local 200 memset(&templ, 0, sizeof(templ)); in d3d12_wgl_framebuffer_get_resource() 201 templ.target = PIPE_TEXTURE_2D; in d3d12_wgl_framebuffer_get_resource() 202 templ in d3d12_wgl_framebuffer_get_resource() 93 d3d12_wgl_framebuffer_resize(stw_winsys_framebuffer *fb, pipe_context *ctx, pipe_resource *templ) d3d12_wgl_framebuffer_resize() argument [all...] |
/third_party/mesa3d/src/gallium/drivers/zink/ |
H A D | zink_surface.c | 38 const struct pipe_surface *templ, in create_ivci() 81 ivci.format = zink_get_format(screen, templ->format); in create_ivci() 86 const struct util_format_description *desc = util_format_description(templ->format); in create_ivci() 98 ivci.subresourceRange.baseMipLevel = templ->u.tex.level; in create_ivci() 100 ivci.subresourceRange.baseArrayLayer = templ->u.tex.first_layer; in create_ivci() 101 ivci.subresourceRange.layerCount = 1 + templ->u.tex.last_layer - templ->u.tex.first_layer; in create_ivci() 104 ivci.viewType = zink_surface_clamp_viewtype(ivci.viewType, templ->u.tex.first_layer, templ->u.tex.last_layer, res->base.b.array_size); in create_ivci() 130 const struct pipe_surface *templ, in create_surface() 36 create_ivci(struct zink_screen *screen, struct zink_resource *res, const struct pipe_surface *templ, enum pipe_texture_target target) create_ivci() argument 128 create_surface(struct pipe_context *pctx, struct pipe_resource *pres, const struct pipe_surface *templ, VkImageViewCreateInfo *ivci, bool actually) create_surface() argument 201 do_create_surface(struct pipe_context *pctx, struct pipe_resource *pres, const struct pipe_surface *templ, VkImageViewCreateInfo *ivci, uint32_t hash, bool actually) do_create_surface() argument 212 zink_get_surface(struct zink_context *ctx, struct pipe_resource *pres, const struct pipe_surface *templ, VkImageViewCreateInfo *ivci) zink_get_surface() argument 256 zink_create_surface(struct pipe_context *pctx, struct pipe_resource *pres, const struct pipe_surface *templ) zink_create_surface() argument 403 struct pipe_resource templ = {0}; zink_surface_create_null() local [all...] |
H A D | zink_resource.c | 162 create_bci(struct zink_screen *screen, const struct pipe_resource *templ, unsigned bind) in create_bci() argument 170 bci.size = templ->width0; in create_bci() 192 if (templ->flags & PIPE_RESOURCE_FLAG_SPARSE) in create_bci() 255 get_image_usage_for_feats(struct zink_screen *screen, VkFormatFeatureFlags feats, const struct pipe_resource *templ, unsigned bind, bool *need_extended) in get_image_usage_for_feats() argument 258 bool is_planar = util_format_get_num_planes(templ->format) > 1; in get_image_usage_for_feats() 273 assert(templ->nr_samples <= 1 || screen->info.feats.features.shaderStorageImageMultisample); in get_image_usage_for_feats() 288 } else if ((bind & PIPE_BIND_SAMPLER_VIEW) && !util_format_is_depth_or_stencil(templ->format)) { in get_image_usage_for_feats() 353 get_image_usage(struct zink_screen *screen, VkImageCreateInfo *ici, const struct pipe_resource *templ, unsigned bind, unsigned modifiers_count, const uint64_t *modifiers, uint64_t *mod) in get_image_usage() argument 360 const struct zink_modifier_prop *prop = &screen->modifier_props[templ->format]; in get_image_usage() 371 VkImageUsageFlags usage = get_image_usage_for_feats(screen, feats, templ, bin in get_image_usage() 407 create_ici(struct zink_screen *screen, VkImageCreateInfo *ici, const struct pipe_resource *templ, bool dmabuf, unsigned bind, unsigned modifiers_count, const uint64_t *modifiers, bool *success) create_ici() argument 550 resource_object_create(struct zink_screen *screen, const struct pipe_resource *templ, struct winsys_handle *whandle, bool *optimal_tiling, const uint64_t *modifiers, int modifiers_count, const void *loader_private) resource_object_create() argument 1088 resource_create(struct pipe_screen *pscreen, const struct pipe_resource *templ, struct winsys_handle *whandle, unsigned external_usage, const uint64_t *modifiers, int modifiers_count, const void *loader_private) resource_create() argument 1208 zink_resource_create(struct pipe_screen *pscreen, const struct pipe_resource *templ) zink_resource_create() argument 1215 zink_resource_create_with_modifiers(struct pipe_screen *pscreen, const struct pipe_resource *templ, const uint64_t *modifiers, int modifiers_count) zink_resource_create_with_modifiers() argument 1222 zink_resource_create_drawable(struct pipe_screen *pscreen, const struct pipe_resource *templ, const void *loader_private) zink_resource_create_drawable() argument 1475 zink_resource_from_handle(struct pipe_screen *pscreen, const struct pipe_resource *templ, struct winsys_handle *whandle, unsigned usage) zink_resource_from_handle() argument 1556 zink_resource_from_memobj(struct pipe_screen *pscreen, const struct pipe_resource *templ, struct pipe_memory_object *pmemobj, uint64_t offset) zink_resource_from_memobj() argument 1938 struct pipe_resource templ = *pres; zink_image_map() local [all...] |
/third_party/mesa3d/src/gallium/auxiliary/vl/ |
H A D | vl_video_buffer.c | 170 vl_video_buffer_template(struct pipe_resource *templ, in vl_video_buffer_template() argument 179 memset(templ, 0, sizeof(*templ)); in vl_video_buffer_template() 181 templ->target = PIPE_TEXTURE_3D; in vl_video_buffer_template() 183 templ->target = PIPE_TEXTURE_2D_ARRAY; in vl_video_buffer_template() 185 templ->target = PIPE_TEXTURE_2D; in vl_video_buffer_template() 186 templ->format = resource_format; in vl_video_buffer_template() 187 templ->width0 = tmpl->width; in vl_video_buffer_template() 188 templ->depth0 = depth; in vl_video_buffer_template() 189 templ in vl_video_buffer_template() 476 struct pipe_resource templ, *resources[VL_NUM_COMPONENTS] = {0}; vl_video_buffer_create_as_resource() local [all...] |
/third_party/mesa3d/src/gallium/drivers/llvmpipe/ |
H A D | lp_state_tess.c | 42 const struct pipe_shader_state *templ) in llvmpipe_create_tcs_state() 52 if (LP_DEBUG & DEBUG_TGSI && templ->type == PIPE_SHADER_IR_TGSI) { in llvmpipe_create_tcs_state() 54 tgsi_dump(templ->tokens, 0); in llvmpipe_create_tcs_state() 58 state->no_tokens = !templ->tokens; in llvmpipe_create_tcs_state() 59 memcpy(&state->stream_output, &templ->stream_output, sizeof state->stream_output); in llvmpipe_create_tcs_state() 61 if (templ->tokens || templ->type == PIPE_SHADER_IR_NIR) { in llvmpipe_create_tcs_state() 62 state->dtcs = draw_create_tess_ctrl_shader(llvmpipe->draw, templ); in llvmpipe_create_tcs_state() 110 const struct pipe_shader_state *templ) in llvmpipe_create_tes_state() 122 tgsi_dump(templ in llvmpipe_create_tes_state() 41 llvmpipe_create_tcs_state(struct pipe_context *pipe, const struct pipe_shader_state *templ) llvmpipe_create_tcs_state() argument 109 llvmpipe_create_tes_state(struct pipe_context *pipe, const struct pipe_shader_state *templ) llvmpipe_create_tes_state() argument [all...] |
H A D | lp_state_gs.c | 44 const struct pipe_shader_state *templ) in llvmpipe_create_gs_state() 54 if (LP_DEBUG & DEBUG_TGSI && templ->type == PIPE_SHADER_IR_TGSI) { in llvmpipe_create_gs_state() 56 tgsi_dump(templ->tokens, 0); in llvmpipe_create_gs_state() 60 if (templ->type == PIPE_SHADER_IR_TGSI) in llvmpipe_create_gs_state() 61 state->no_tokens = !templ->tokens; in llvmpipe_create_gs_state() 64 memcpy(&state->stream_output, &templ->stream_output, sizeof state->stream_output); in llvmpipe_create_gs_state() 66 if (templ->tokens || templ->type == PIPE_SHADER_IR_NIR) { in llvmpipe_create_gs_state() 67 state->dgs = draw_create_geometry_shader(llvmpipe->draw, templ); in llvmpipe_create_gs_state() 43 llvmpipe_create_gs_state(struct pipe_context *pipe, const struct pipe_shader_state *templ) llvmpipe_create_gs_state() argument
|
/third_party/mesa3d/src/gallium/auxiliary/util/ |
H A D | u_suballoc.c | 88 struct pipe_resource templ; in u_suballocator_alloc() local 89 memset(&templ, 0, sizeof(templ)); in u_suballocator_alloc() 90 templ.target = PIPE_BUFFER; in u_suballocator_alloc() 91 templ.format = PIPE_FORMAT_R8_UNORM; in u_suballocator_alloc() 92 templ.bind = allocator->bind; in u_suballocator_alloc() 93 templ.usage = allocator->usage; in u_suballocator_alloc() 94 templ.flags = allocator->flags; in u_suballocator_alloc() 95 templ.width0 = allocator->size; in u_suballocator_alloc() 96 templ in u_suballocator_alloc() [all...] |
/third_party/mesa3d/src/gallium/frontends/wgl/ |
H A D | stw_st.c | 150 struct pipe_resource templ; in stw_st_framebuffer_validate_locked() local 153 memset(&templ, 0, sizeof(templ)); in stw_st_framebuffer_validate_locked() 154 templ.target = PIPE_TEXTURE_2D; in stw_st_framebuffer_validate_locked() 155 templ.width0 = width; in stw_st_framebuffer_validate_locked() 156 templ.height0 = height; in stw_st_framebuffer_validate_locked() 157 templ.depth0 = 1; in stw_st_framebuffer_validate_locked() 158 templ.array_size = 1; in stw_st_framebuffer_validate_locked() 159 templ.last_level = 0; in stw_st_framebuffer_validate_locked() 183 templ in stw_st_framebuffer_validate_locked() [all...] |
/third_party/mesa3d/src/gallium/drivers/radeonsi/ |
H A D | si_test_image_copy_region.c | 46 static void alloc_cpu_texture(struct cpu_texture *tex, struct pipe_resource *templ, unsigned level) in alloc_cpu_texture() argument 48 unsigned width = u_minify(templ->width0, level); in alloc_cpu_texture() 49 unsigned height = u_minify(templ->height0, level); in alloc_cpu_texture() 51 tex->stride = align(util_format_get_stride(templ->format, width), RAND_NUM_SIZE); in alloc_cpu_texture() 52 tex->layer_stride = util_format_get_2d_size(templ->format, tex->stride, height); in alloc_cpu_texture() 53 tex->size = tex->layer_stride * util_num_layers(templ, level); in alloc_cpu_texture() 330 static void set_random_image_attrs(struct pipe_resource *templ, bool allow_msaa, in set_random_image_attrs() argument 343 templ->target = PIPE_TEXTURE_1D; in set_random_image_attrs() 346 templ->target = PIPE_TEXTURE_2D; in set_random_image_attrs() 349 if (util_format_is_depth_or_stencil(templ in set_random_image_attrs() [all...] |
H A D | si_texture.c | 46 const struct pipe_resource *templ, 432 struct pipe_resource templ = tex->buffer.b.b; in si_reallocate_texture_inplace() local 435 templ.bind |= new_bind_flag; in si_reallocate_texture_inplace() 445 if (si_choose_tiling(sctx->screen, &templ, false) != RADEON_SURF_MODE_LINEAR_ALIGNED) in si_reallocate_texture_inplace() 449 new_tex = (struct si_texture *)screen->resource_create(screen, &templ); in si_reallocate_texture_inplace() 455 for (i = 0; i <= templ.last_level; i++) { in si_reallocate_texture_inplace() 458 u_box_3d(0, 0, 0, u_minify(templ.width0, i), u_minify(templ.height0, i), in si_reallocate_texture_inplace() 459 util_num_layers(&templ, i), &box); in si_reallocate_texture_inplace() 472 tex->buffer.b.b.bind = templ in si_reallocate_texture_inplace() 774 struct pipe_resource templ = res->b.b; si_texture_get_handle() local 1175 si_choose_tiling(struct si_screen *sscreen, const struct pipe_resource *templ, bool tc_compatible_htile) si_choose_tiling() argument 1239 si_texture_create_with_modifier(struct pipe_screen *screen, const struct pipe_resource *templ, uint64_t modifier) si_texture_create_with_modifier() argument 1339 si_texture_create(struct pipe_screen *screen, const struct pipe_resource *templ) si_texture_create() argument 1472 si_modifier_supports_resource(struct pipe_screen *screen, uint64_t modifier, const struct pipe_resource *templ) si_modifier_supports_resource() argument 1484 si_texture_create_with_modifiers(struct pipe_screen *screen, const struct pipe_resource *templ, const uint64_t *modifiers, int modifier_count) si_texture_create_with_modifiers() argument 1534 si_texture_from_winsys_buffer(struct si_screen *sscreen, const struct pipe_resource *templ, struct pb_buffer *buf, unsigned stride, uint64_t offset, uint64_t modifier, unsigned usage, bool dedicated) si_texture_from_winsys_buffer() argument 1653 si_texture_from_handle(struct pipe_screen *screen, const struct pipe_resource *templ, struct winsys_handle *whandle, unsigned usage) si_texture_from_handle() argument 2085 si_create_surface(struct pipe_context *pipe, struct pipe_resource *tex, const struct pipe_surface *templ) si_create_surface() argument 2241 si_resource_from_memobj(struct pipe_screen *screen, const struct pipe_resource *templ, struct pipe_memory_object *_memobj, uint64_t offset) si_resource_from_memobj() argument [all...] |
/third_party/mesa3d/src/gallium/drivers/iris/ |
H A D | iris_resource.c | 167 const struct pipe_resource *templ, in select_best_modifier() 174 if (!modifier_is_supported(devinfo, templ->format, templ->bind, in select_best_modifier() 445 const struct pipe_resource *templ, in iris_resource_alloc_flags() 448 if (templ->flags & IRIS_RESOURCE_FLAG_DEVICE_MEM) in iris_resource_alloc_flags() 453 switch (templ->usage) { in iris_resource_alloc_flags() 467 if (templ->bind & PIPE_BIND_SCANOUT) in iris_resource_alloc_flags() 470 if (templ->flags & (PIPE_RESOURCE_FLAG_MAP_COHERENT | in iris_resource_alloc_flags() 479 if ((templ->bind & PIPE_BIND_SHARED) || in iris_resource_alloc_flags() 480 util_format_get_num_planes(templ in iris_resource_alloc_flags() 166 select_best_modifier(struct intel_device_info *devinfo, const struct pipe_resource *templ, const uint64_t *modifiers, int count) select_best_modifier() argument 444 iris_resource_alloc_flags(const struct iris_screen *screen, const struct pipe_resource *templ, enum isl_aux_usage aux_usage) iris_resource_alloc_flags() argument 505 iris_alloc_resource(struct pipe_screen *pscreen, const struct pipe_resource *templ) iris_alloc_resource() argument 657 iris_resource_configure_main(const struct iris_screen *screen, struct iris_resource *res, const struct pipe_resource *templ, uint64_t modifier, uint32_t row_pitch_B) iris_resource_configure_main() argument 1096 iris_resource_create_for_buffer(struct pipe_screen *pscreen, const struct pipe_resource *templ) iris_resource_create_for_buffer() argument 1147 iris_resource_create_with_modifiers(struct pipe_screen *pscreen, const struct pipe_resource *templ, const uint64_t *modifiers, int modifiers_count) iris_resource_create_with_modifiers() argument 1240 iris_resource_create(struct pipe_screen *pscreen, const struct pipe_resource *templ) iris_resource_create() argument 1264 iris_resource_from_user_memory(struct pipe_screen *pscreen, const struct pipe_resource *templ, void *user_memory) iris_resource_from_user_memory() argument 1356 iris_resource_from_handle(struct pipe_screen *pscreen, const struct pipe_resource *templ, struct winsys_handle *whandle, unsigned usage) iris_resource_from_handle() argument 1437 iris_resource_from_memobj(struct pipe_screen *pscreen, const struct pipe_resource *templ, struct pipe_memory_object *pmemobj, uint64_t offset) iris_resource_from_memobj() argument 1470 iris_resource_from_memobj_wrapper(struct pipe_screen *pscreen, const struct pipe_resource *templ, struct pipe_memory_object *pmemobj, uint64_t offset) iris_resource_from_memobj_wrapper() argument 1560 struct pipe_resource templ = old_res->base.b; iris_reallocate_resource_inplace() local 2000 struct pipe_resource templ = (struct pipe_resource) { iris_map_copy_region() local [all...] |
/third_party/mesa3d/src/gallium/drivers/crocus/ |
H A D | crocus_resource.c | 96 const struct pipe_resource *templ, in select_best_modifier() 103 if (!modifier_is_supported(devinfo, templ->format, templ->bind, in select_best_modifier() 173 const struct pipe_resource *templ, in crocus_resource_configure_main() 178 util_format_description(templ->format); in crocus_resource_configure_main() 180 isl_surf_usage_flags_t usage = pipe_bind_to_isl_usage(templ->bind); in crocus_resource_configure_main() 184 if (devinfo->ver < 6 && !util_format_is_depth_or_stencil(templ->format)) in crocus_resource_configure_main() 192 if (templ->bind & PIPE_BIND_RENDER_TARGET && devinfo->ver < 6) { in crocus_resource_configure_main() 198 if (templ->usage == PIPE_USAGE_STAGING || in crocus_resource_configure_main() 199 templ in crocus_resource_configure_main() 95 select_best_modifier(struct intel_device_info *devinfo, const struct pipe_resource *templ, const uint64_t *modifiers, int count) select_best_modifier() argument 171 crocus_resource_configure_main(const struct crocus_screen *screen, struct crocus_resource *res, const struct pipe_resource *templ, uint64_t modifier, uint32_t row_pitch_B) crocus_resource_configure_main() argument 357 crocus_alloc_resource(struct pipe_screen *pscreen, const struct pipe_resource *templ) crocus_alloc_resource() argument 648 crocus_resource_create_for_buffer(struct pipe_screen *pscreen, const struct pipe_resource *templ) crocus_resource_create_for_buffer() argument 675 crocus_resource_create_with_modifiers(struct pipe_screen *pscreen, const struct pipe_resource *templ, const uint64_t *modifiers, int modifiers_count) crocus_resource_create_with_modifiers() argument 772 crocus_resource_create(struct pipe_screen *pscreen, const struct pipe_resource *templ) crocus_resource_create() argument 796 crocus_resource_from_user_memory(struct pipe_screen *pscreen, const struct pipe_resource *templ, void *user_memory) crocus_resource_from_user_memory() argument 822 crocus_resource_from_handle(struct pipe_screen *pscreen, const struct pipe_resource *templ, struct winsys_handle *whandle, unsigned usage) crocus_resource_from_handle() argument 904 crocus_resource_from_memobj(struct pipe_screen *pscreen, const struct pipe_resource *templ, struct pipe_memory_object *pmemobj, uint64_t offset) crocus_resource_from_memobj() argument 1243 struct pipe_resource templ = (struct pipe_resource) { crocus_map_copy_region() local [all...] |
/third_party/mesa3d/src/mesa/state_tracker/ |
H A D | st_sampler_view.c | 594 struct pipe_sampler_view templ; in st_create_texture_sampler_view_from_stobj() local 597 templ.format = format; in st_create_texture_sampler_view_from_stobj() 600 templ.u.tex.first_level = templ.u.tex.last_level = texObj->level_override; in st_create_texture_sampler_view_from_stobj() 602 templ.u.tex.first_level = texObj->Attrib.MinLevel + in st_create_texture_sampler_view_from_stobj() 604 templ.u.tex.last_level = last_level(texObj); in st_create_texture_sampler_view_from_stobj() 607 templ.u.tex.first_layer = templ.u.tex.last_layer = texObj->layer_override; in st_create_texture_sampler_view_from_stobj() 609 templ.u.tex.first_layer = texObj->Attrib.MinLayer; in st_create_texture_sampler_view_from_stobj() 610 templ in st_create_texture_sampler_view_from_stobj() 735 struct pipe_sampler_view templ; st_get_buffer_sampler_view_from_stobj() local [all...] |
/third_party/mesa3d/src/gallium/drivers/d3d12/ |
H A D | d3d12_resource.cpp | 120 const struct pipe_resource *templ) in init_buffer() 129 assert(templ->format == d3d12_emulated_vtx_format(templ->format)); in init_buffer() 131 switch (templ->usage) { in init_buffer() 154 if (templ->bind & PIPE_BIND_SAMPLER_VIEW) in init_buffer() 159 buf = bufmgr->create_buffer(bufmgr, templ->width0, &buf_desc); in init_buffer() 170 const struct pipe_resource *templ, in init_texture() 176 res->mip_levels = templ->last_level + 1; in init_texture() 177 res->dxgi_format = d3d12_get_format(templ->format); in init_texture() 182 desc.Width = templ in init_texture() 118 init_buffer(struct d3d12_screen *screen, struct d3d12_resource *res, const struct pipe_resource *templ) init_buffer() argument 168 init_texture(struct d3d12_screen *screen, struct d3d12_resource *res, const struct pipe_resource *templ, ID3D12Heap *heap, uint64_t placed_offset) init_texture() argument 346 d3d12_resource_create_or_place(struct d3d12_screen *screen, struct d3d12_resource *res, const struct pipe_resource *templ, ID3D12Heap *heap, uint64_t placed_offset) d3d12_resource_create_or_place() argument 395 d3d12_resource_create(struct pipe_screen *pscreen, const struct pipe_resource *templ) d3d12_resource_create() argument 406 d3d12_resource_from_handle(struct pipe_screen *pscreen, const struct pipe_resource *templ, struct winsys_handle *handle, unsigned usage) d3d12_resource_from_handle() argument 692 struct pipe_resource templ; d3d12_resource_from_resource() local 903 d3d12_resource_from_memobj(struct pipe_screen *pscreen, const struct pipe_resource *templ, struct pipe_memory_object *pmemobj, uint64_t offset) d3d12_resource_from_memobj() argument [all...] |
/third_party/mesa3d/src/gallium/drivers/virgl/ |
H A D | virgl_resource.c | 439 const struct pipe_resource *templ = &res->b; in virgl_resource_realloc() local 443 vbind = pipe_to_virgl_bind(vs, templ->bind); in virgl_resource_realloc() 444 vflags = pipe_to_virgl_flags(vs, templ->flags); in virgl_resource_realloc() 449 templ->target, in virgl_resource_realloc() 451 templ->format, in virgl_resource_realloc() 453 templ->width0, in virgl_resource_realloc() 454 templ->height0, in virgl_resource_realloc() 455 templ->depth0, in virgl_resource_realloc() 456 templ->array_size, in virgl_resource_realloc() 457 templ in virgl_resource_realloc() 634 virgl_resource_create_front(struct pipe_screen *screen, const struct pipe_resource *templ, const void *map_front_private) virgl_resource_create_front() argument 698 virgl_resource_create(struct pipe_screen *screen, const struct pipe_resource *templ) virgl_resource_create() argument 704 virgl_resource_from_handle(struct pipe_screen *screen, const struct pipe_resource *templ, struct winsys_handle *whandle, unsigned usage) virgl_resource_from_handle() argument [all...] |
/third_party/mesa3d/src/gallium/drivers/r600/ |
H A D | r600_uvd.c | 67 struct pipe_resource templ; in r600_video_buffer_create() local 82 vl_video_buffer_template(&templ, &template, resource_formats[0], 1, array_size, in r600_video_buffer_create() 85 templ.bind = PIPE_BIND_LINEAR; in r600_video_buffer_create() 87 pipe->screen->resource_create(pipe->screen, &templ); in r600_video_buffer_create() 92 vl_video_buffer_template(&templ, &template, resource_formats[1], 1, array_size, in r600_video_buffer_create() 95 templ.bind = PIPE_BIND_LINEAR; in r600_video_buffer_create() 97 pipe->screen->resource_create(pipe->screen, &templ); in r600_video_buffer_create() 103 vl_video_buffer_template(&templ, &template, resource_formats[2], 1, array_size, in r600_video_buffer_create() 106 templ.bind = PIPE_BIND_LINEAR; in r600_video_buffer_create() 108 pipe->screen->resource_create(pipe->screen, &templ); in r600_video_buffer_create() [all...] |
/third_party/mesa3d/src/gallium/frontends/glx/xlib/ |
H A D | xm_st.c | 125 struct pipe_resource templ; in xmesa_st_framebuffer_validate_textures() local 134 memset(&templ, 0, sizeof(templ)); in xmesa_st_framebuffer_validate_textures() 135 templ.target = xstfb->target; in xmesa_st_framebuffer_validate_textures() 136 templ.width0 = width; in xmesa_st_framebuffer_validate_textures() 137 templ.height0 = height; in xmesa_st_framebuffer_validate_textures() 138 templ.depth0 = 1; in xmesa_st_framebuffer_validate_textures() 139 templ.array_size = 1; in xmesa_st_framebuffer_validate_textures() 140 templ.last_level = 0; in xmesa_st_framebuffer_validate_textures() 141 templ in xmesa_st_framebuffer_validate_textures() [all...] |
/third_party/mesa3d/src/gallium/drivers/softpipe/ |
H A D | sp_state_shader.c | 128 const struct pipe_shader_state *templ, in softpipe_create_shader_state() 131 if (templ->type == PIPE_SHADER_IR_NIR) { in softpipe_create_shader_state() 133 nir_print_shader(templ->ir.nir, stderr); in softpipe_create_shader_state() 135 shader->tokens = nir_to_tgsi(templ->ir.nir, pipe->screen); in softpipe_create_shader_state() 137 assert(templ->type == PIPE_SHADER_IR_TGSI); in softpipe_create_shader_state() 139 shader->tokens = tgsi_dup_tokens(templ->tokens); in softpipe_create_shader_state() 144 shader->stream_output = templ->stream_output; in softpipe_create_shader_state() 154 const struct pipe_shader_state *templ) in softpipe_create_fs_state() 159 softpipe_create_shader_state(pipe, &state->shader, templ, in softpipe_create_fs_state() 235 const struct pipe_shader_state *templ) in softpipe_create_vs_state() 126 softpipe_create_shader_state(struct pipe_context *pipe, struct pipe_shader_state *shader, const struct pipe_shader_state *templ, bool debug) softpipe_create_shader_state() argument 153 softpipe_create_fs_state(struct pipe_context *pipe, const struct pipe_shader_state *templ) softpipe_create_fs_state() argument 234 softpipe_create_vs_state(struct pipe_context *pipe, const struct pipe_shader_state *templ) softpipe_create_vs_state() argument 295 softpipe_create_gs_state(struct pipe_context *pipe, const struct pipe_shader_state *templ) softpipe_create_gs_state() argument 409 softpipe_create_compute_state(struct pipe_context *pipe, const struct pipe_compute_state *templ) softpipe_create_compute_state() argument [all...] |