Searched refs:pres (Results 1 - 25 of 44) sorted by relevance

12

/xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/lima/
H A Dlima_resource.c57 struct pipe_resource *pres; local in function:lima_resource_create_scanout
70 pres = pscreen->resource_from_handle(pscreen, templat, &handle,
74 if (!pres) {
79 struct lima_resource *res = lima_resource(pres);
82 return pres;
90 struct pipe_resource *pres = &res->base; local in function:setup_miptree
94 unsigned depth = pres->depth0;
97 for (level = 0; level <= pres->last_level; level++) {
111 stride = util_format_get_stride(pres->format, aligned_width);
113 util_format_get_nblocksy(pres
149 struct pipe_resource *pres; local in function:lima_resource_create_bo
207 struct pipe_resource *pres; local in function:_lima_resource_create_with_modifiers
256 lima_resource_destroy(struct pipe_screen * pscreen,struct pipe_resource * pres) argument
282 struct pipe_resource *pres = &res->base; local in function:lima_resource_from_handle
325 lima_resource_get_handle(struct pipe_screen * pscreen,struct pipe_context * pctx,struct pipe_resource * pres,struct winsys_handle * handle,unsigned usage) argument
357 lima_surface_create(struct pipe_context * pctx,struct pipe_resource * pres,const struct pipe_surface * surf_tmpl) argument
450 lima_transfer_map(struct pipe_context * pctx,struct pipe_resource * pres,unsigned level,unsigned usage,const struct pipe_box * box,struct pipe_transfer ** pptrans) argument
541 struct pipe_resource *pres; local in function:lima_transfer_unmap
[all...]
/xsrc/external/mit/MesaLib/dist/src/gallium/drivers/lima/
H A Dlima_resource.c60 struct pipe_resource *pres; local in function:lima_resource_create_scanout
73 pres = pscreen->resource_from_handle(pscreen, templat, &handle,
77 if (!pres) {
82 struct lima_resource *res = lima_resource(pres);
85 return pres;
93 struct pipe_resource *pres = &res->base; local in function:setup_miptree
97 unsigned depth = pres->depth0;
100 for (level = 0; level <= pres->last_level; level++) {
114 stride = util_format_get_stride(pres->format, aligned_width);
116 util_format_get_nblocksy(pres
151 struct pipe_resource *pres; local in function:lima_resource_create_bo
218 struct pipe_resource *pres; local in function:_lima_resource_create_with_modifiers
269 lima_resource_destroy(struct pipe_screen * pscreen,struct pipe_resource * pres) argument
311 struct pipe_resource *pres = &res->base; local in function:lima_resource_from_handle
404 lima_resource_get_handle(struct pipe_screen * pscreen,struct pipe_context * pctx,struct pipe_resource * pres,struct winsys_handle * handle,unsigned usage) argument
431 lima_resource_get_param(struct pipe_screen * pscreen,struct pipe_context * pctx,struct pipe_resource * pres,unsigned plane,unsigned layer,unsigned level,enum pipe_resource_param param,unsigned usage,uint64_t * value) argument
472 get_damage_bound_box(struct pipe_resource * pres,const struct pipe_box * rects,unsigned int nrects,struct pipe_scissor_state * bound) argument
490 lima_resource_set_damage_region(struct pipe_screen * pscreen,struct pipe_resource * pres,unsigned int nrects,const struct pipe_box * rects) argument
559 lima_surface_create(struct pipe_context * pctx,struct pipe_resource * pres,const struct pipe_surface * surf_tmpl) argument
608 lima_transfer_map(struct pipe_context * pctx,struct pipe_resource * pres,unsigned level,unsigned usage,const struct pipe_box * box,struct pipe_transfer ** pptrans) argument
761 struct pipe_resource *pres; local in function:lima_transfer_unmap_inner
[all...]
/xsrc/external/mit/MesaLib/dist/src/gallium/drivers/zink/
H A Dzink_clear.h70 struct pipe_resource *pres,
122 zink_fb_clears_apply(struct zink_context *ctx, struct pipe_resource *pres);
125 zink_fb_clears_discard(struct zink_context *ctx, struct pipe_resource *pres);
128 zink_fb_clears_apply_or_discard(struct zink_context *ctx, struct pipe_resource *pres, struct u_rect region, bool discard_only);
131 zink_fb_clears_apply_region(struct zink_context *ctx, struct pipe_resource *pres, struct u_rect region);
H A Dzink_clear.c366 create_clear_surface(struct pipe_context *pctx, struct pipe_resource *pres, unsigned level, const struct pipe_box *box) argument
370 tmpl.format = pres->format;
374 return pctx->create_surface(pctx, pres, &tmpl);
379 struct pipe_resource *pres,
385 struct zink_resource *res = zink_resource(pres);
388 bool needs_rp = !zink_blit_region_fills(region, pres->width0, pres->height0) || ctx->render_condition_active;
394 util_format_unpack_rgba(pres->format, color.ui, data, 1);
396 if (pscreen->is_format_supported(pscreen, pres->format, pres
378 zink_clear_texture(struct pipe_context * pctx,struct pipe_resource * pres,unsigned level,const struct pipe_box * box,const void * data) argument
436 zink_clear_buffer(struct pipe_context * pctx,struct pipe_resource * pres,unsigned offset,unsigned size,const void * clear_value,int clear_value_size) argument
542 fb_clears_apply_internal(struct zink_context * ctx,struct pipe_resource * pres,int i) argument
601 zink_fb_clears_apply(struct zink_context * ctx,struct pipe_resource * pres) argument
617 zink_fb_clears_discard(struct zink_context * ctx,struct pipe_resource * pres) argument
661 fb_clears_apply_or_discard_internal(struct zink_context * ctx,struct pipe_resource * pres,struct u_rect region,bool discard_only,bool invert,int i) argument
691 zink_fb_clears_apply_or_discard(struct zink_context * ctx,struct pipe_resource * pres,struct u_rect region,bool discard_only) argument
707 zink_fb_clears_apply_region(struct zink_context * ctx,struct pipe_resource * pres,struct u_rect region) argument
[all...]
H A Dzink_surface.c120 struct pipe_resource *pres,
125 struct zink_resource *res = zink_resource(pres);
132 pipe_resource_reference(&surface->base.texture, pres);
136 surface->base.width = u_minify(pres->width0, level);
138 surface->base.height = u_minify(pres->height0, level);
144 surface->obj = zink_resource(pres)->obj;
167 struct pipe_resource *pres,
172 struct zink_resource *res = zink_resource(pres);
180 surface = create_surface(&ctx->base, pres, templ, ivci);
214 struct pipe_resource *pres,
119 create_surface(struct pipe_context * pctx,struct pipe_resource * pres,const struct pipe_surface * templ,VkImageViewCreateInfo * ivci) argument
166 zink_get_surface(struct zink_context * ctx,struct pipe_resource * pres,const struct pipe_surface * templ,VkImageViewCreateInfo * ivci) argument
213 zink_create_surface(struct pipe_context * pctx,struct pipe_resource * pres,const struct pipe_surface * templ) argument
372 struct pipe_resource *pres; local in function:zink_surface_create_null
[all...]
H A Dzink_resource.c104 struct pipe_resource *pres)
107 struct zink_resource *res = zink_resource(pres);
108 if (pres->target == PIPE_BUFFER) {
121 threaded_resource_deinit(pres);
839 struct pipe_resource *pres,
848 struct zink_resource *res = zink_resource(pres);
923 if (!pscreen->resource_get_handle(pscreen, pctx, pres, &whandle, handle_usage))
1048 zink_resource_invalidate(struct pipe_context *pctx, struct pipe_resource *pres) argument
1050 if (pres->target == PIPE_BUFFER)
1051 invalidate_buffer(zink_context(pctx), zink_resource(pres));
103 zink_resource_destroy(struct pipe_screen * pscreen,struct pipe_resource * pres) argument
838 zink_resource_get_param(struct pipe_screen * pscreen,struct pipe_context * pctx,struct pipe_resource * pres,unsigned plane,unsigned layer,unsigned level,enum pipe_resource_param param,unsigned handle_usage,uint64_t * value) argument
1124 create_transfer(struct zink_context * ctx,struct pipe_resource * pres,unsigned usage,const struct pipe_box * box) argument
1159 zink_buffer_map(struct pipe_context * pctx,struct pipe_resource * pres,unsigned level,unsigned usage,const struct pipe_box * box,struct pipe_transfer ** transfer) argument
1328 zink_image_map(struct pipe_context * pctx,struct pipe_resource * pres,unsigned level,unsigned usage,const struct pipe_box * box,struct pipe_transfer ** transfer) argument
1555 zink_resource_get_separate_stencil(struct pipe_resource * pres) argument
1700 zink_resource_set_separate_stencil(struct pipe_resource * pres,struct pipe_resource * stencil) argument
1708 zink_resource_get_internal_format(struct pipe_resource * pres) argument
[all...]
/xsrc/external/mit/MesaLib/dist/src/gallium/drivers/etnaviv/
H A Detnaviv_resource.h132 etna_resource_sampler_only(const struct pipe_resource *pres) argument
134 return (pres->bind & (PIPE_BIND_SAMPLER_VIEW | PIPE_BIND_RENDER_TARGET |
140 etna_resource_hw_tileable(bool use_blt, const struct pipe_resource *pres) argument
146 return util_format_get_blocksize(pres->format) == 2 ||
147 util_format_get_blocksize(pres->format) == 4;
/xsrc/external/mit/MesaLib/dist/src/gallium/drivers/panfrost/
H A Dpan_resource.c56 panfrost_should_checksum(const struct panfrost_device *dev, const struct panfrost_resource *pres);
321 struct panfrost_resource *pres = pan_resource(res); local in function:panfrost_create_scanout_res
323 pres->scanout = scanout;
329 panfrost_is_2d(const struct panfrost_resource *pres) argument
331 return (pres->base.target == PIPE_TEXTURE_2D)
332 || (pres->base.target == PIPE_TEXTURE_RECT);
344 const struct panfrost_resource *pres,
358 if (pres->base.bind & ~valid_binding)
366 if (pres->base.usage == PIPE_USAGE_STREAM)
375 if (pres
343 panfrost_should_afbc(struct panfrost_device * dev,const struct panfrost_resource * pres,enum pipe_format fmt) argument
406 panfrost_should_tile(struct panfrost_device * dev,const struct panfrost_resource * pres,enum pipe_format fmt) argument
433 panfrost_best_modifier(struct panfrost_device * dev,const struct panfrost_resource * pres,enum pipe_format fmt) argument
457 panfrost_should_checksum(const struct panfrost_device * dev,const struct panfrost_resource * pres) argument
476 panfrost_resource_setup(struct panfrost_device * dev,struct panfrost_resource * pres,uint64_t modifier,enum pipe_format fmt) argument
514 panfrost_resource_init_afbc_headers(struct panfrost_resource * pres) argument
547 struct panfrost_resource *pres = pan_resource(res); local in function:panfrost_resource_set_damage_region
[all...]
/xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/nouveau/nvc0/
H A Dnvc0_resource.c93 struct pipe_resource *pres,
96 if (unlikely(pres->target == PIPE_BUFFER))
97 return nv50_surface_from_buffer(pipe, pres, templ);
98 return nvc0_miptree_surface_new(pipe, pres, templ);
92 nvc0_surface_create(struct pipe_context * pipe,struct pipe_resource * pres,const struct pipe_surface * templ) argument
/xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/nouveau/nv50/
H A Dnv50_resource.c69 struct pipe_resource *pres,
72 if (unlikely(pres->target == PIPE_BUFFER))
73 return nv50_surface_from_buffer(pipe, pres, templ);
74 return nv50_miptree_surface_new(pipe, pres, templ);
68 nv50_surface_create(struct pipe_context * pipe,struct pipe_resource * pres,const struct pipe_surface * templ) argument
/xsrc/external/mit/MesaLib/dist/src/gallium/drivers/d3d12/
H A Dd3d12_surface.cpp83 struct pipe_resource *pres,
88 struct d3d12_resource *res = d3d12_resource(pres);
95 desc.ViewDimension = view_dsv_dimension(pres->target, pres->nr_samples);
151 struct pipe_resource *pres,
156 struct d3d12_resource *res = d3d12_resource(pres);
162 desc.ViewDimension = view_rtv_dimension(pres->target, pres->nr_samples);
166 desc.Buffer.NumElements = pres->width0 / util_format_get_blocksize(tpl->format);
230 struct pipe_resource *pres,
82 initialize_dsv(struct pipe_context * pctx,struct pipe_resource * pres,const struct pipe_surface * tpl,struct d3d12_descriptor_handle * handle,DXGI_FORMAT dxgi_format) argument
150 initialize_rtv(struct pipe_context * pctx,struct pipe_resource * pres,const struct pipe_surface * tpl,struct d3d12_descriptor_handle * handle,DXGI_FORMAT dxgi_format) argument
229 d3d12_create_surface(struct pipe_context * pctx,struct pipe_resource * pres,const struct pipe_surface * tpl) argument
[all...]
H A Dd3d12_resource.cpp46 can_map_directly(struct pipe_resource *pres) argument
48 return pres->target == PIPE_BUFFER &&
49 pres->usage != PIPE_USAGE_DEFAULT &&
50 pres->usage != PIPE_USAGE_IMMUTABLE;
310 struct pipe_resource *pres,
314 struct d3d12_resource *res = d3d12_resource(pres);
888 struct pipe_resource *pres,
895 struct d3d12_resource *res = d3d12_resource(pres);
906 pipe_resource_reference(&ptrans->resource, pres);
908 ptrans->resource = pres;
308 d3d12_resource_get_handle(struct pipe_screen * pscreen,struct pipe_context * pcontext,struct pipe_resource * pres,struct winsys_handle * handle,unsigned usage) argument
887 d3d12_transfer_map(struct pipe_context * pctx,struct pipe_resource * pres,unsigned level,unsigned usage,const struct pipe_box * box,struct pipe_transfer ** transfer) argument
1044 d3d12_resource_make_writeable(struct pipe_context * pctx,struct pipe_resource * pres) argument
[all...]
H A Dd3d12_resource.h117 struct pipe_resource *pres);
/xsrc/external/mit/MesaLib.old/dist/src/gallium/state_trackers/clover/core/core/
H A Dresource.cpp193 pctx(q.pipe), pres(NULL) {
206 pipe_resource_reference(&pres, r.pipe);
210 pctx(m.pctx), pxfer(m.pxfer), pres(m.pres), p(m.p) {
213 m.pres = NULL;
221 pipe_resource_reference(&pres, NULL);
228 std::swap(pres, m.pres);
H A Dresource.hpp128 pipe_resource *pres; member in class:clover::mapping
/xsrc/external/mit/MesaLib/dist/src/gallium/frontends/clover/core/
H A Dresource.cpp229 pctx(q.pipe), pres(NULL) {
242 pipe_resource_reference(&pres, r.pipe);
246 pctx(m.pctx), pxfer(m.pxfer), pres(m.pres), p(m.p) {
249 m.pres = NULL;
257 pipe_resource_reference(&pres, NULL);
264 std::swap(pres, m.pres);
273 util_format_get_blocksize(pres->format),
H A Dresource.hpp135 pipe_resource *pres; member in class:clover::mapping
/xsrc/external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nv50/
H A Dnv50_resource.c78 struct pipe_resource *pres,
81 if (unlikely(pres->target == PIPE_BUFFER))
82 return nv50_surface_from_buffer(pipe, pres, templ);
83 return nv50_miptree_surface_new(pipe, pres, templ);
77 nv50_surface_create(struct pipe_context * pipe,struct pipe_resource * pres,const struct pipe_surface * templ) argument
/xsrc/external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nvc0/
H A Dnvc0_resource.c131 struct pipe_resource *pres,
134 if (unlikely(pres->target == PIPE_BUFFER))
135 return nv50_surface_from_buffer(pipe, pres, templ);
136 return nvc0_miptree_surface_new(pipe, pres, templ);
130 nvc0_surface_create(struct pipe_context * pipe,struct pipe_resource * pres,const struct pipe_surface * templ) argument
/xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/etnaviv/
H A Detnaviv_resource.h130 etna_resource_sampler_only(const struct pipe_resource *pres) argument
132 return (pres->bind & (PIPE_BIND_SAMPLER_VIEW | PIPE_BIND_RENDER_TARGET |
/xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/virgl/
H A Dvirgl_resource.c250 struct pipe_resource *pres,
256 enum pipe_format format = pres->format;
261 if (pres->target == PIPE_TEXTURE_CUBE ||
262 pres->target == PIPE_TEXTURE_CUBE_ARRAY ||
263 pres->target == PIPE_TEXTURE_3D ||
264 pres->target == PIPE_TEXTURE_2D_ARRAY) {
267 else if (pres->target == PIPE_TEXTURE_1D_ARRAY) {
270 } else if (pres->target == PIPE_BUFFER) {
283 trans->base.resource = pres;
249 virgl_resource_create_transfer(struct slab_child_pool * pool,struct pipe_resource * pres,const struct virgl_resource_metadata * metadata,unsigned level,unsigned usage,const struct pipe_box * box) argument
H A Dvirgl_transfer_queue.c121 struct pipe_resource *pres = queued->base.resource; local in function:remove_transfer
123 pipe_resource_reference(&pres, NULL);
292 struct pipe_resource *res, *pres; local in function:virgl_transfer_queue_unmap
295 pres = NULL;
297 pipe_resource_reference(&pres, res);
/xsrc/external/mit/MesaLib.old/dist/src/gallium/state_trackers/glx/xlib/
H A Dxm_st.c66 struct pipe_resource *pres; local in function:xmesa_st_framebuffer_display
71 pres = xstfb->display_resource;
73 if (!pres || pres != ptex) {
75 pres = xstfb->display_resource;
78 xstfb->screen->flush_frontbuffer(xstfb->screen, pres, 0, 0, &xstfb->buffer->ws, NULL);
/xsrc/external/mit/MesaLib/dist/src/gallium/frontends/glx/xlib/
H A Dxm_st.c68 struct pipe_resource *pres; local in function:xmesa_st_framebuffer_display
74 pres = xstfb->display_resource;
76 if (!pres || pres != ptex) {
78 pres = xstfb->display_resource;
81 xstfb->screen->flush_frontbuffer(xstfb->screen, pctx, pres, 0, 0, &xstfb->buffer->ws, box);
/xsrc/external/mit/MesaLib/dist/src/gallium/drivers/virgl/
H A Dvirgl_resource.c238 struct pipe_resource *pres = vtransfer->base.resource; local in function:virgl_transfer_map_size
247 stride = util_format_get_stride(pres->format, box->width);
248 layer_stride = util_format_get_2d_size(pres->format, stride, box->height);
250 if (pres->target == PIPE_TEXTURE_CUBE ||
251 pres->target == PIPE_TEXTURE_CUBE_ARRAY ||
252 pres->target == PIPE_TEXTURE_3D ||
253 pres->target == PIPE_TEXTURE_2D_ARRAY) {
255 } else if (pres->target == PIPE_TEXTURE_1D_ARRAY) {
687 struct pipe_resource *pres,
694 enum pipe_format format = pres
686 virgl_resource_create_transfer(struct virgl_context * vctx,struct pipe_resource * pres,const struct virgl_resource_metadata * metadata,unsigned level,unsigned usage,const struct pipe_box * box) argument
[all...]

Completed in 17 milliseconds

12