| /xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/freedreno/a6xx/ |
| H A D | fd6_resource.h | 33 uint32_t fd6_fill_ubwc_buffer_sizes(struct fd_resource *rsc); 34 uint32_t fd6_setup_slices(struct fd_resource *rsc);
|
| /xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/freedreno/a2xx/ |
| H A D | fd2_resource.h | 32 uint32_t fd2_setup_slices(struct fd_resource *rsc);
|
| /xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/freedreno/a5xx/ |
| H A D | fd5_resource.h | 32 uint32_t fd5_setup_slices(struct fd_resource *rsc);
|
| H A D | fd5_resource.c | 47 setup_slices(struct fd_resource *rsc, uint32_t alignment, enum pipe_format format) argument 49 struct pipe_resource *prsc = &rsc->base; 61 uint32_t layers_in_level = rsc->layer_first ? 1 : prsc->array_size; 63 heightalign = tile_alignment[rsc->cpp].heightalign; 66 struct fd_resource_slice *slice = fd_resource_slice(rsc, level); 71 if (rsc->tile_mode && !linear_level) { 72 pitchalign = tile_alignment[rsc->cpp].pitchalign; 105 (level > 1 && rsc->slices[level - 1].size0 > 0xf000))) 106 slice->size0 = align(blocks * rsc->cpp, alignment); 107 else if (level == 0 || rsc 132 fd5_setup_slices(struct fd_resource * rsc) argument [all...] |
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/freedreno/a5xx/ |
| H A D | fd5_resource.h | 32 uint32_t fd5_setup_slices(struct fd_resource *rsc);
|
| H A D | fd5_resource.c | 30 setup_lrz(struct fd_resource *rsc) argument 32 struct fd_screen *screen = fd_screen(rsc->b.b.screen); 33 unsigned lrz_pitch = align(DIV_ROUND_UP(rsc->b.b.width0, 8), 64); 34 unsigned lrz_height = DIV_ROUND_UP(rsc->b.b.height0, 8); 37 switch (rsc->b.b.nr_samples) { 49 rsc->lrz_height = lrz_height; 50 rsc->lrz_width = lrz_pitch; 51 rsc->lrz_pitch = lrz_pitch; 52 rsc->lrz = fd_bo_new(screen->dev, size, 0, "lrz"); 56 fd5_setup_slices(struct fd_resource *rsc) argument [all...] |
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/freedreno/a6xx/ |
| H A D | fd6_resource.h | 33 void fd6_validate_format(struct fd_context *ctx, struct fd_resource *rsc, 36 struct fd_resource *rsc, int level, int layer);
|
| H A D | fd6_resource.c | 120 valid_format_cast(struct fd_resource *rsc, enum pipe_format format) argument 130 if (is_norm(format) != is_norm(rsc->b.b.format)) 139 sb = util_format_get_component_bits(rsc->b.b.format, UTIL_FORMAT_COLORSPACE_RGB, i); 162 * Ensure the rsc is in an ok state to be used with the specified format. 167 fd6_validate_format(struct fd_context *ctx, struct fd_resource *rsc, argument 170 enum pipe_format orig_format = rsc->b.b.format; 177 if (rsc->layout.tile_mode && (is_r8g8(orig_format) != is_r8g8(format))) { 180 PRSC_ARGS(&rsc->b.b), util_format_short_name(format)); 182 fd_resource_uncompress(ctx, rsc, true); 186 if (!rsc 200 setup_lrz(struct fd_resource * rsc) argument 227 fd6_setup_slices(struct fd_resource * rsc) argument 245 fill_ubwc_buffer_sizes(struct fd_resource * rsc) argument 271 fd6_layout_resource_for_modifier(struct fd_resource * rsc,uint64_t modifier) argument [all...] |
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/freedreno/ |
| H A D | freedreno_resource.h | 147 * If so, it no longer "owns" it's rsc->track, and so should not 148 * invalidate when the rsc is destroyed. 196 pending(struct fd_resource *rsc, bool write) argument 199 if (rsc->track->write_batch) 203 if (write && rsc->track->batch_mask) 206 if (rsc->stencil && pending(rsc->stencil, write)) 213 resource_busy(struct fd_resource *rsc, unsigned op) argument 215 return fd_bo_cpu_prep(rsc->bo, NULL, op | FD_BO_PREP_NOSYNC) != 0; 218 int __fd_resource_wait(struct fd_context *ctx, struct fd_resource *rsc, 224 fd_resource_lock(struct fd_resource * rsc) argument 230 fd_resource_unlock(struct fd_resource * rsc) argument 240 struct fd_resource *rsc = fd_resource(prsc); local in function:fd_resource_set_usage 271 fd_resource_slice(struct fd_resource * rsc,unsigned level) argument 278 fd_resource_layer_stride(struct fd_resource * rsc,unsigned level) argument 285 fd_resource_pitch(struct fd_resource * rsc,unsigned level) argument 295 fd_resource_offset(struct fd_resource * rsc,unsigned level,unsigned layer) argument 303 fd_resource_ubwc_offset(struct fd_resource * rsc,unsigned level,unsigned layer) argument 327 fd_resource_tile_mode_desc(const struct fd_resource * rsc,int level) argument 333 fd_resource_ubwc_enabled(struct fd_resource * rsc,int level) argument 369 fd_batch_references_resource(struct fd_batch * batch,struct fd_resource * rsc) argument 375 fd_batch_write_prep(struct fd_batch * batch,struct fd_resource * rsc) argument 384 fd_batch_resource_read(struct fd_batch * batch,struct fd_resource * rsc) argument [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/freedreno/ |
| H A D | freedreno_resource.h | 54 * an additional offset of (rsc->layer_size * layer) must be added. 124 pending(struct fd_resource *rsc, bool write) argument 127 if (rsc->write_batch) 131 if (write && rsc->batch_mask) 134 if (rsc->stencil && pending(rsc->stencil, write)) 153 fd_resource_slice(struct fd_resource *rsc, unsigned level) argument 155 assert(level <= rsc->base.last_level); 156 return &rsc->slices[level]; 161 fd_resource_offset(struct fd_resource *rsc, unsigne argument 175 fd_resource_ubwc_offset(struct fd_resource * rsc,unsigned level,unsigned layer) argument 198 fd_resource_ubwc_enabled(struct fd_resource * rsc,int level) argument [all...] |
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/freedreno/a2xx/ |
| H A D | fd2_resource.h | 32 uint32_t fd2_setup_slices(struct fd_resource *rsc);
|
| H A D | fd2_resource.c | 30 fd2_setup_slices(struct fd_resource *rsc) argument 32 struct pipe_resource *prsc = &rsc->b.b; 38 fdl_set_pitchalign(&rsc->layout, fdl_cpp_shift(&rsc->layout) + 5); 41 struct fdl_slice *slice = fd_resource_slice(rsc, level); 42 uint32_t pitch = fdl2_pitch(&rsc->layout, level);
|
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/freedreno/a3xx/ |
| H A D | fd3_resource.h | 32 uint32_t fd3_setup_slices(struct fd_resource *rsc);
|
| H A D | fd3_resource.c | 29 setup_slices(struct fd_resource *rsc, uint32_t alignment, argument 32 struct pipe_resource *prsc = &rsc->b.b; 36 if (rsc->layout.tile_mode && prsc->target != PIPE_TEXTURE_CUBE) 40 fdl_set_pitchalign(&rsc->layout, fdl_cpp_shift(&rsc->layout) + 5); 43 struct fdl_slice *slice = fd_resource_slice(rsc, level); 44 uint32_t pitch = fdl_pitch(&rsc->layout, level); 46 if (rsc->layout.tile_mode) { 63 (level > 1 && fd_resource_slice(rsc, level - 1)->size0 > 0xf000))) 68 slice->size0 = fd_resource_slice(rsc, leve 77 fd3_setup_slices(struct fd_resource * rsc) argument [all...] |
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/freedreno/a4xx/ |
| H A D | fd4_resource.h | 32 uint32_t fd4_setup_slices(struct fd_resource *rsc);
|
| H A D | fd4_resource.c | 31 fd4_setup_slices(struct fd_resource *rsc) argument 33 struct pipe_resource *prsc = &rsc->b.b; 45 rsc->layout.layer_first = false; 49 rsc->layout.layer_first = true; 55 fdl_set_pitchalign(&rsc->layout, fdl_cpp_shift(&rsc->layout) + 5); 58 struct fdl_slice *slice = fd_resource_slice(rsc, level); 59 uint32_t pitch = fdl_pitch(&rsc->layout, level); 70 (level > 1 && fd_resource_slice(rsc, level - 1)->size0 <= 0xf000)) 71 slice->size0 = fd_resource_slice(rsc, leve [all...] |
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/etnaviv/ |
| H A D | etnaviv_transfer.c | 64 struct etna_resource *rsc = etna_resource(prsc); local in function:etna_patch_data 65 struct etna_resource_level *level = &rsc->levels[ptrans->level]; 90 struct etna_resource *rsc = etna_resource(prsc); local in function:etna_unpatch_data 91 struct etna_resource_level *level = &rsc->levels[ptrans->level]; 106 struct etna_resource *rsc = etna_resource(ptrans->resource); local in function:etna_transfer_unmap 114 assert(ptrans->level <= rsc->base.last_level); 116 if (rsc->texture && !etna_resource_newer(rsc, etna_resource(rsc->texture))) 117 rsc 199 struct etna_resource *rsc = etna_resource(prsc); local in function:etna_transfer_map 499 struct etna_resource *rsc = etna_resource(ptrans->resource); local in function:etna_transfer_flush_region [all...] |
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/v3d/ |
| H A D | v3d_resource.c | 42 v3d_debug_resource_layout(struct v3d_resource *rsc, const char *caller) argument 47 struct pipe_resource *prsc = &rsc->base; 51 "rsc %s %p (format %s), %dx%d buffer @0x%08x-0x%08x\n", 52 caller, rsc, 55 rsc->bo->offset, 56 rsc->bo->offset + rsc->bo->size - 1); 70 struct v3d_resource_slice *slice = &rsc->slices[i]; 72 int level_width = slice->stride / rsc->cpp; 78 "rsc 96 v3d_resource_bo_alloc(struct v3d_resource * rsc) argument 121 struct v3d_resource *rsc = v3d_resource(ptrans->resource); local in function:v3d_resource_transfer_unmap 149 rebind_sampler_views(struct v3d_context * v3d,struct v3d_resource * rsc) argument 177 struct v3d_resource *rsc = v3d_resource(prsc); local in function:v3d_map_usage_prep 229 struct v3d_resource *rsc = v3d_resource(prsc); local in function:v3d_resource_transfer_map 350 struct v3d_resource *rsc = v3d_resource(prsc); local in function:v3d_texture_subdata 390 struct v3d_resource *rsc = v3d_resource(prsc); local in function:v3d_resource_destroy 400 v3d_resource_modifier(struct v3d_resource * rsc) argument 422 struct v3d_resource *rsc = v3d_resource(prsc); local in function:v3d_resource_get_handle 463 struct v3d_resource *rsc = v3d_resource(prsc); local in function:v3d_resource_get_param 493 v3d_get_ub_pad(struct v3d_resource * rsc,uint32_t height) argument 527 v3d_setup_slices(struct v3d_resource * rsc,uint32_t winsys_stride,bool uif_top) argument 695 struct v3d_resource *rsc = v3d_resource(prsc); local in function:v3d_layer_offset 709 struct v3d_resource *rsc = CALLOC_STRUCT(v3d_resource); local in function:v3d_resource_setup 762 struct v3d_resource *rsc = v3d_resource_setup(pscreen, tmpl); local in function:v3d_resource_create_with_modifiers 878 struct v3d_resource *rsc = v3d_resource_setup(pscreen, tmpl); local in function:v3d_resource_from_handle 1051 struct v3d_resource *rsc = v3d_resource(ptex); local in function:v3d_create_surface 1156 struct v3d_resource *rsc = v3d_resource(prsc); local in function:v3d_resource_get_stencil [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/etnaviv/ |
| H A D | etnaviv_resource.c | 84 struct etna_resource *rsc) 89 assert(!rsc->ts_bo); 92 pixels = rsc->levels[0].layer_stride / util_format_get_blocksize(rsc->base.format); 95 rt_ts_size = ts_layer_stride * rsc->base.array_size; 100 rsc, rt_ts_size); 110 rsc->ts_bo = rt_ts; 111 rsc->levels[0].ts_offset = 0; 112 rsc->levels[0].ts_layer_stride = ts_layer_stride; 113 rsc 83 etna_screen_resource_alloc_ts(struct pipe_screen * pscreen,struct etna_resource * rsc) argument 144 setup_miptree(struct etna_resource * rsc,unsigned paddingX,unsigned paddingY,unsigned msaa_xscale,unsigned msaa_yscale) argument 192 struct etna_resource *rsc; local in function:etna_resource_alloc 471 struct etna_resource *rsc = etna_resource(prsc); local in function:etna_resource_destroy 502 struct etna_resource *rsc; local in function:etna_resource_from_handle 613 struct etna_resource *rsc = etna_resource(prsc); local in function:etna_resource_get_handle 650 struct etna_resource *rsc; local in function:etna_resource_used 693 etna_resource_has_valid_ts(struct etna_resource * rsc) argument [all...] |
| H A D | etnaviv_transfer.c | 64 struct etna_resource *rsc = etna_resource(prsc); local in function:etna_patch_data 65 struct etna_resource_level *level = &rsc->levels[ptrans->level]; 90 struct etna_resource *rsc = etna_resource(prsc); local in function:etna_unpatch_data 91 struct etna_resource_level *level = &rsc->levels[ptrans->level]; 106 struct etna_resource *rsc = etna_resource(ptrans->resource); local in function:etna_transfer_unmap 114 assert(ptrans->level <= rsc->base.last_level); 116 if (rsc->texture && !etna_resource_newer(rsc, etna_resource(rsc->texture))) 117 rsc 187 struct etna_resource *rsc = etna_resource(prsc); local in function:etna_transfer_map [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/v3d/ |
| H A D | v3d_resource.c | 44 v3d_debug_resource_layout(struct v3d_resource *rsc, const char *caller) argument 49 struct pipe_resource *prsc = &rsc->base; 53 "rsc %s %p (format %s), %dx%d buffer @0x%08x-0x%08x\n", 54 caller, rsc, 57 rsc->bo->offset, 58 rsc->bo->offset + rsc->bo->size - 1); 72 struct v3d_resource_slice *slice = &rsc->slices[i]; 74 int level_width = slice->stride / rsc->cpp; 80 "rsc 98 v3d_resource_bo_alloc(struct v3d_resource * rsc) argument 123 struct v3d_resource *rsc = v3d_resource(ptrans->resource); local in function:v3d_resource_transfer_unmap 156 struct v3d_resource *rsc = v3d_resource(prsc); local in function:v3d_map_usage_prep 199 struct v3d_resource *rsc = v3d_resource(prsc); local in function:v3d_resource_transfer_map 320 struct v3d_resource *rsc = v3d_resource(prsc); local in function:v3d_texture_subdata 360 struct v3d_resource *rsc = v3d_resource(prsc); local in function:v3d_resource_destroy 377 struct v3d_resource *rsc = v3d_resource(prsc); local in function:v3d_resource_get_handle 433 v3d_get_ub_pad(struct v3d_resource * rsc,uint32_t height) argument 467 v3d_setup_slices(struct v3d_resource * rsc,uint32_t winsys_stride,bool uif_top) argument 635 struct v3d_resource *rsc = v3d_resource(prsc); local in function:v3d_layer_offset 649 struct v3d_resource *rsc = CALLOC_STRUCT(v3d_resource); local in function:v3d_resource_setup 702 struct v3d_resource *rsc = v3d_resource_setup(pscreen, tmpl); local in function:v3d_resource_create_with_modifiers 818 struct v3d_resource *rsc = v3d_resource_setup(pscreen, tmpl); local in function:v3d_resource_from_handle 972 struct v3d_resource *rsc = v3d_resource(ptex); local in function:v3d_create_surface 1079 struct v3d_resource *rsc = v3d_resource(prsc); local in function:v3d_resource_get_stencil [all...] |
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/vc4/ |
| H A D | vc4_resource.c | 42 vc4_resource_bo_alloc(struct vc4_resource *rsc) argument 44 struct pipe_resource *prsc = &rsc->base; 50 rsc, 51 rsc->slices[0].size, 52 rsc->slices[0].offset, 53 rsc->slices[0].offset + 54 rsc->slices[0].size + 55 rsc->cube_map_stride * (prsc->array_size - 1)); 59 rsc->slices[0].offset + 60 rsc 80 struct vc4_resource *rsc = vc4_resource(ptrans->resource); local in function:vc4_resource_transfer_unmap 106 struct vc4_resource *rsc = vc4_resource(prsc); local in function:vc4_resource_transfer_map 244 struct vc4_resource *rsc = vc4_resource(prsc); local in function:vc4_texture_subdata 277 struct vc4_resource *rsc = vc4_resource(prsc); local in function:vc4_resource_destroy 287 vc4_resource_modifier(struct vc4_resource * rsc) argument 303 struct vc4_resource *rsc = vc4_resource(prsc); local in function:vc4_resource_get_handle 349 struct vc4_resource *rsc = vc4_resource(prsc); local in function:vc4_resource_get_param 367 vc4_setup_slices(struct vc4_resource * rsc,const char * caller) argument 469 struct vc4_resource *rsc = CALLOC_STRUCT(vc4_resource); local in function:vc4_resource_setup 492 struct vc4_resource *rsc = vc4_resource(prsc); local in function:get_resource_texture_format 516 struct vc4_resource *rsc = vc4_resource_setup(pscreen, tmpl); local in function:vc4_resource_create_with_modifiers 633 struct vc4_resource *rsc = vc4_resource_setup(pscreen, tmpl); local in function:vc4_resource_from_handle 752 struct vc4_resource *rsc = vc4_resource(ptex); local in function:vc4_create_surface 790 struct vc4_resource *rsc = vc4_resource(prsc); local in function:vc4_dump_surface_non_msaa 887 struct vc4_resource *rsc = vc4_resource(prsc); local in function:vc4_surface_msaa_get_sample [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/vc4/ |
| H A D | vc4_resource.c | 43 vc4_resource_bo_alloc(struct vc4_resource *rsc) argument 45 struct pipe_resource *prsc = &rsc->base; 51 rsc, 52 rsc->slices[0].size, 53 rsc->slices[0].offset, 54 rsc->slices[0].offset + 55 rsc->slices[0].size + 56 rsc->cube_map_stride * (prsc->array_size - 1)); 60 rsc->slices[0].offset + 61 rsc 81 struct vc4_resource *rsc = vc4_resource(ptrans->resource); local in function:vc4_resource_transfer_unmap 107 struct vc4_resource *rsc = vc4_resource(prsc); local in function:vc4_resource_transfer_map 245 struct vc4_resource *rsc = vc4_resource(prsc); local in function:vc4_texture_subdata 278 struct vc4_resource *rsc = vc4_resource(prsc); local in function:vc4_resource_destroy 295 struct vc4_resource *rsc = vc4_resource(prsc); local in function:vc4_resource_get_handle 340 vc4_setup_slices(struct vc4_resource * rsc,const char * caller) argument 442 struct vc4_resource *rsc = CALLOC_STRUCT(vc4_resource); local in function:vc4_resource_setup 465 struct vc4_resource *rsc = vc4_resource(prsc); local in function:get_resource_texture_format 489 struct vc4_resource *rsc = vc4_resource_setup(pscreen, tmpl); local in function:vc4_resource_create_with_modifiers 606 struct vc4_resource *rsc = vc4_resource_setup(pscreen, tmpl); local in function:vc4_resource_from_handle 727 struct vc4_resource *rsc = vc4_resource(ptex); local in function:vc4_create_surface 765 struct vc4_resource *rsc = vc4_resource(prsc); local in function:vc4_dump_surface_non_msaa 862 struct vc4_resource *rsc = vc4_resource(prsc); local in function:vc4_surface_msaa_get_sample [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/gallium/auxiliary/renderonly/ |
| H A D | renderonly.h | 59 struct renderonly_scanout *(*create_for_resource)(struct pipe_resource *rsc, 70 renderonly_scanout_for_resource(struct pipe_resource *rsc, argument 74 return ro->create_for_resource(rsc, ro, out_handle); 99 renderonly_create_kms_dumb_buffer_for_resource(struct pipe_resource *rsc, 107 renderonly_create_gpu_import_for_resource(struct pipe_resource *rsc,
|
| /xsrc/external/mit/MesaLib/dist/src/gallium/auxiliary/renderonly/ |
| H A D | renderonly.h | 59 struct renderonly_scanout *(*create_for_resource)(struct pipe_resource *rsc, 68 renderonly_scanout_for_resource(struct pipe_resource *rsc, argument 72 return ro->create_for_resource(rsc, ro, out_handle); 97 renderonly_create_kms_dumb_buffer_for_resource(struct pipe_resource *rsc, 105 renderonly_create_gpu_import_for_resource(struct pipe_resource *rsc,
|