/third_party/mesa3d/src/gallium/drivers/freedreno/ |
D | freedreno_screen.c | 129 struct fd_screen *screen = fd_screen(pscreen); in fd_screen_get_timestamp() local 131 if (screen->has_timestamp) { in fd_screen_get_timestamp() 133 fd_pipe_get_param(screen->pipe, FD_TIMESTAMP, &n); in fd_screen_get_timestamp() 134 debug_assert(screen->max_freq > 0); in fd_screen_get_timestamp() 135 return n * 1000000000 / screen->max_freq; in fd_screen_get_timestamp() 138 return cpu_time + screen->cpu_gpu_time_delta; in fd_screen_get_timestamp() 145 struct fd_screen *screen = fd_screen(pscreen); in fd_screen_destroy() local 147 if (screen->pipe) in fd_screen_destroy() 148 fd_pipe_del(screen->pipe); in fd_screen_destroy() 150 if (screen->dev) { in fd_screen_destroy() [all …]
|
/third_party/mesa3d/src/gallium/drivers/etnaviv/ |
D | etnaviv_screen.c | 86 struct etna_screen *screen = etna_screen(pscreen); in etna_screen_destroy() local 88 if (screen->perfmon) in etna_screen_destroy() 89 etna_perfmon_del(screen->perfmon); in etna_screen_destroy() 91 if (screen->compiler) in etna_screen_destroy() 92 etna_compiler_destroy(screen->compiler); in etna_screen_destroy() 94 if (screen->pipe) in etna_screen_destroy() 95 etna_pipe_del(screen->pipe); in etna_screen_destroy() 97 if (screen->gpu) in etna_screen_destroy() 98 etna_gpu_del(screen->gpu); in etna_screen_destroy() 100 if (screen->ro) in etna_screen_destroy() [all …]
|
/third_party/mesa3d/src/gallium/drivers/zink/ |
D | zink_screen.c | 101 struct zink_screen *screen = zink_screen(pscreen); in zink_get_device_vendor() local 103 snprintf(buf, sizeof(buf), "Unknown (vendor-id: 0x%04x)", screen->info.props.vendorID); in zink_get_device_vendor() 110 struct zink_screen *screen = zink_screen(pscreen); in zink_get_name() local 112 snprintf(buf, sizeof(buf), "zink (%s)", screen->info.props.deviceName); in zink_get_name() 131 get_video_mem(struct zink_screen *screen) in get_video_mem() argument 134 for (uint32_t i = 0; i < screen->info.mem_props.memoryHeapCount; ++i) { in get_video_mem() 135 if (screen->info.mem_props.memoryHeaps[i].flags & in get_video_mem() 137 size += screen->info.mem_props.memoryHeaps[i].size; in get_video_mem() 143 disk_cache_init(struct zink_screen *screen) in disk_cache_init() argument 147 snprintf(buf, sizeof(buf), "zink_%x04x", screen->info.props.vendorID); in disk_cache_init() [all …]
|
/third_party/mesa3d/src/gallium/auxiliary/driver_ddebug/ |
D | dd_screen.c | 38 struct pipe_screen *screen = dd_screen(_screen)->screen; in dd_screen_get_name() local 40 return screen->get_name(screen); in dd_screen_get_name() 46 struct pipe_screen *screen = dd_screen(_screen)->screen; in dd_screen_get_vendor() local 48 return screen->get_vendor(screen); in dd_screen_get_vendor() 54 struct pipe_screen *screen = dd_screen(_screen)->screen; in dd_screen_get_device_vendor() local 56 return screen->get_device_vendor(screen); in dd_screen_get_device_vendor() 64 struct pipe_screen *screen = dd_screen(_screen)->screen; in dd_screen_get_compiler_options() local 66 return screen->get_compiler_options(screen, ir, shader); in dd_screen_get_compiler_options() 72 struct pipe_screen *screen = dd_screen(_screen)->screen; in dd_screen_get_disk_shader_cache() local 74 return screen->get_disk_shader_cache(screen); in dd_screen_get_disk_shader_cache() [all …]
|
/third_party/mesa3d/src/gallium/frontends/dri/ |
D | dri_query_renderer.c | 15 struct dri_screen *screen = dri_screen(_screen); in dri2_query_renderer_integer() local 20 (unsigned int)screen->base.screen->get_param(screen->base.screen, in dri2_query_renderer_integer() 25 (unsigned int)screen->base.screen->get_param(screen->base.screen, in dri2_query_renderer_integer() 30 (unsigned int)screen->base.screen->get_param(screen->base.screen, in dri2_query_renderer_integer() 35 int ov = driQueryOptioni(&screen->dev->option_cache, "override_vram_size"); in dri2_query_renderer_integer() 37 (unsigned int)screen->base.screen->get_param(screen->base.screen, in dri2_query_renderer_integer() 46 (unsigned int)screen->base.screen->get_param(screen->base.screen, in dri2_query_renderer_integer() 52 screen->base.screen->get_param(screen->base.screen, in dri2_query_renderer_integer() 58 screen->base.screen->is_format_supported(screen->base.screen, in dri2_query_renderer_integer() 65 screen->base.screen->get_param(screen->base.screen, in dri2_query_renderer_integer() [all …]
|
D | dri_screen.c | 61 dri_init_options(struct dri_screen *screen) in dri_init_options() argument 63 pipe_loader_config_options(screen->dev); in dri_init_options() 65 struct st_config_options *options = &screen->options; in dri_init_options() 66 const struct driOptionCache *optionCache = &screen->dev->option_cache; in dri_init_options() 72 dri_loader_get_cap(struct dri_screen *screen, enum dri_loader_cap cap) in dri_loader_get_cap() argument 74 const __DRIdri2LoaderExtension *dri2_loader = screen->sPriv->dri2.loader; in dri_loader_get_cap() 75 const __DRIimageLoaderExtension *image_loader = screen->sPriv->image.loader; in dri_loader_get_cap() 79 return dri2_loader->getCapability(screen->sPriv->loaderPrivate, cap); in dri_loader_get_cap() 83 return image_loader->getCapability(screen->sPriv->loaderPrivate, cap); in dri_loader_get_cap() 89 dri_fill_in_modes(struct dri_screen *screen) in dri_fill_in_modes() argument [all …]
|
/third_party/mesa3d/src/gallium/drivers/tegra/ |
D | tegra_screen.c | 51 struct tegra_screen *screen = to_tegra_screen(pscreen); in tegra_screen_destroy() local 53 screen->gpu->destroy(screen->gpu); in tegra_screen_destroy() 78 struct tegra_screen *screen = to_tegra_screen(pscreen); in tegra_screen_get_param() local 80 return screen->gpu->get_param(screen->gpu, param); in tegra_screen_get_param() 86 struct tegra_screen *screen = to_tegra_screen(pscreen); in tegra_screen_get_paramf() local 88 return screen->gpu->get_paramf(screen->gpu, param); in tegra_screen_get_paramf() 95 struct tegra_screen *screen = to_tegra_screen(pscreen); in tegra_screen_get_shader_param() local 97 return screen->gpu->get_shader_param(screen->gpu, shader, param); in tegra_screen_get_shader_param() 106 struct tegra_screen *screen = to_tegra_screen(pscreen); in tegra_screen_get_video_param() local 108 return screen->gpu->get_video_param(screen->gpu, profile, entrypoint, in tegra_screen_get_video_param() [all …]
|
/third_party/mesa3d/src/gallium/auxiliary/driver_trace/ |
D | tr_screen.c | 49 struct pipe_screen *screen = tr_scr->screen; in trace_screen_get_name() local 54 trace_dump_arg(ptr, screen); in trace_screen_get_name() 56 result = screen->get_name(screen); in trace_screen_get_name() 70 struct pipe_screen *screen = tr_scr->screen; in trace_screen_get_vendor() local 75 trace_dump_arg(ptr, screen); in trace_screen_get_vendor() 77 result = screen->get_vendor(screen); in trace_screen_get_vendor() 91 struct pipe_screen *screen = tr_scr->screen; in trace_screen_get_device_vendor() local 96 trace_dump_arg(ptr, screen); in trace_screen_get_device_vendor() 98 result = screen->get_device_vendor(screen); in trace_screen_get_device_vendor() 114 struct pipe_screen *screen = tr_scr->screen; in trace_screen_get_compiler_options() local [all …]
|
/third_party/mesa3d/src/gallium/auxiliary/driver_rbug/ |
D | rbug_screen.c | 46 struct pipe_screen *screen = rb_screen->screen; in rbug_screen_destroy() local 48 screen->destroy(screen); in rbug_screen_destroy() 57 struct pipe_screen *screen = rb_screen->screen; in rbug_screen_get_name() local 59 return screen->get_name(screen); in rbug_screen_get_name() 66 struct pipe_screen *screen = rb_screen->screen; in rbug_screen_get_vendor() local 68 return screen->get_vendor(screen); in rbug_screen_get_vendor() 75 struct pipe_screen *screen = rb_screen->screen; in rbug_screen_get_device_vendor() local 77 return screen->get_device_vendor(screen); in rbug_screen_get_device_vendor() 85 struct pipe_screen *screen = rbug_screen(_screen)->screen; in rbug_screen_get_compiler_options() local 87 return screen->get_compiler_options(screen, ir, shader); in rbug_screen_get_compiler_options() [all …]
|
/third_party/mesa3d/src/mesa/state_tracker/ |
D | st_extensions.c | 80 void st_init_limits(struct pipe_screen *screen, in st_init_limits() argument 88 c->MaxTextureSize = screen->get_param(screen, PIPE_CAP_MAX_TEXTURE_2D_SIZE); in st_init_limits() 91 screen->get_param(screen, PIPE_CAP_MAX_TEXTURE_MB)); in st_init_limits() 94 = _min(screen->get_param(screen, PIPE_CAP_MAX_TEXTURE_3D_LEVELS), in st_init_limits() 98 = _min(screen->get_param(screen, PIPE_CAP_MAX_TEXTURE_CUBE_LEVELS), in st_init_limits() 104 = screen->get_param(screen, PIPE_CAP_MAX_TEXTURE_ARRAY_LAYERS); in st_init_limits() 115 screen->get_param(screen, PIPE_CAP_RASTERIZER_SUBPIXEL_BITS); in st_init_limits() 117 screen->get_param(screen, PIPE_CAP_VIEWPORT_SUBPIXEL_BITS); in st_init_limits() 120 _clamp(screen->get_param(screen, PIPE_CAP_MAX_RENDER_TARGETS), in st_init_limits() 124 _clamp(screen->get_param(screen, in st_init_limits() [all …]
|
/third_party/mesa3d/src/gallium/drivers/nouveau/ |
D | nouveau_screen.c | 43 struct nouveau_screen *screen = nouveau_screen(pscreen); in nouveau_screen_get_name() local 44 return screen->chipset_name; in nouveau_screen_get_name() 84 nouveau_screen_fence_finish(struct pipe_screen *screen, in nouveau_screen_fence_finish() argument 155 nouveau_disk_cache_create(struct nouveau_screen *screen) in nouveau_disk_cache_create() argument 170 if (screen->prefer_nir) in nouveau_disk_cache_create() 175 screen->disk_shader_cache = in nouveau_disk_cache_create() 176 disk_cache_create(nouveau_screen_get_name(&screen->base), in nouveau_disk_cache_create() 191 nouveau_screen_init(struct nouveau_screen *screen, struct nouveau_device *dev) in nouveau_screen_init() argument 193 struct pipe_screen *pscreen = &screen->base; in nouveau_screen_init() 206 screen->prefer_nir = debug_get_bool_option("NV50_PROG_USE_NIR", false); in nouveau_screen_init() [all …]
|
D | nouveau_fence.c | 33 nouveau_fence_new(struct nouveau_screen *screen, struct nouveau_fence **fence) in nouveau_fence_new() argument 39 (*fence)->screen = screen; in nouveau_fence_new() 61 struct nouveau_screen *screen = fence->screen; in nouveau_fence_emit() local 70 if (screen->fence.tail) in nouveau_fence_emit() 71 screen->fence.tail->next = fence; in nouveau_fence_emit() 73 screen->fence.head = fence; in nouveau_fence_emit() 75 screen->fence.tail = fence; in nouveau_fence_emit() 77 screen->fence.emit(&screen->base, &fence->sequence); in nouveau_fence_emit() 87 struct nouveau_screen *screen = fence->screen; in nouveau_fence_del() local 91 if (fence == screen->fence.head) { in nouveau_fence_del() [all …]
|
/third_party/mesa3d/src/gallium/drivers/d3d12/ |
D | d3d12_screen.cpp | 84 struct d3d12_screen* screen = d3d12_screen(pscreen); in d3d12_get_device_vendor() local 86 switch (screen->vendor_id) { in d3d12_get_device_vendor() 103 struct d3d12_screen* screen = d3d12_screen(pscreen); in d3d12_get_video_mem() local 105 return screen->memory_size_megabytes; in d3d12_get_video_mem() 111 struct d3d12_screen *screen = d3d12_screen(pscreen); in d3d12_get_param() local 136 if (screen->max_feature_level >= D3D_FEATURE_LEVEL_10_0) in d3d12_get_param() 138 else if (screen->max_feature_level == D3D_FEATURE_LEVEL_9_3) in d3d12_get_param() 146 if (screen->max_feature_level >= D3D_FEATURE_LEVEL_11_0) in d3d12_get_param() 148 else if (screen->max_feature_level >= D3D_FEATURE_LEVEL_10_0) in d3d12_get_param() 150 else if (screen->max_feature_level >= D3D_FEATURE_LEVEL_9_3) in d3d12_get_param() [all …]
|
/third_party/mesa3d/src/gallium/drivers/lima/ |
D | lima_screen.c | 53 struct lima_screen *screen = lima_screen(pscreen); in lima_screen_destroy() local 55 slab_destroy_parent(&screen->transfer_pool); in lima_screen_destroy() 57 if (screen->ro) in lima_screen_destroy() 58 screen->ro->destroy(screen->ro); in lima_screen_destroy() 60 if (screen->pp_buffer) in lima_screen_destroy() 61 lima_bo_unreference(screen->pp_buffer); in lima_screen_destroy() 63 lima_bo_cache_fini(screen); in lima_screen_destroy() 64 lima_bo_table_fini(screen); in lima_screen_destroy() 65 disk_cache_destroy(screen->disk_cache); in lima_screen_destroy() 66 ralloc_free(screen); in lima_screen_destroy() [all …]
|
D | lima_bo.c | 43 bool lima_bo_table_init(struct lima_screen *screen) in lima_bo_table_init() argument 45 screen->bo_handles = util_hash_table_create_ptr_keys(); in lima_bo_table_init() 46 if (!screen->bo_handles) in lima_bo_table_init() 49 screen->bo_flink_names = util_hash_table_create_ptr_keys(); in lima_bo_table_init() 50 if (!screen->bo_flink_names) in lima_bo_table_init() 53 mtx_init(&screen->bo_table_lock, mtx_plain); in lima_bo_table_init() 57 _mesa_hash_table_destroy(screen->bo_handles, NULL); in lima_bo_table_init() 61 bool lima_bo_cache_init(struct lima_screen *screen) in lima_bo_cache_init() argument 63 mtx_init(&screen->bo_cache_lock, mtx_plain); in lima_bo_cache_init() 64 list_inithead(&screen->bo_cache_time); in lima_bo_cache_init() [all …]
|
/third_party/mesa3d/src/gallium/auxiliary/target-helpers/ |
D | drm_helper.h | 80 struct pipe_screen *screen; in pipe_i915_create_screen() local 86 screen = i915_screen_create(iws); in pipe_i915_create_screen() 87 return screen ? debug_screen_wrap(screen) : NULL; in pipe_i915_create_screen() 100 struct pipe_screen *screen; in pipe_iris_create_screen() local 102 screen = iris_drm_screen_create(fd, config); in pipe_iris_create_screen() 103 return screen ? debug_screen_wrap(screen) : NULL; in pipe_iris_create_screen() 121 struct pipe_screen *screen; in DRM_DRIVER_DESCRIPTOR() local 123 screen = crocus_drm_screen_create(fd, config); in DRM_DRIVER_DESCRIPTOR() 124 return screen ? debug_screen_wrap(screen) : NULL; in DRM_DRIVER_DESCRIPTOR() 141 struct pipe_screen *screen; in DRM_DRIVER_DESCRIPTOR() local [all …]
|
/third_party/mesa3d/src/gallium/auxiliary/driver_noop/ |
D | noop_pipe.c | 103 static struct pipe_resource *noop_resource_create(struct pipe_screen *screen, in noop_resource_create() argument 115 nresource->b.b.screen = screen; in noop_resource_create() 128 noop_resource_create_with_modifiers(struct pipe_screen *screen, in noop_resource_create_with_modifiers() argument 132 struct noop_pipe_screen *noop_screen = (struct noop_pipe_screen*)screen; in noop_resource_create_with_modifiers() 139 noop_resource = noop_resource_create(screen, result); in noop_resource_create_with_modifiers() 144 static struct pipe_resource *noop_resource_from_handle(struct pipe_screen *screen, in noop_resource_from_handle() argument 149 struct noop_pipe_screen *noop_screen = (struct noop_pipe_screen*)screen; in noop_resource_from_handle() 155 noop_resource = noop_resource_create(screen, result); in noop_resource_from_handle() 167 struct pipe_screen *screen = noop_screen->oscreen; in noop_resource_get_handle() local 172 tex = screen->resource_create(screen, resource); in noop_resource_get_handle() [all …]
|
/third_party/mesa3d/src/gallium/drivers/nouveau/nv50/ |
D | nv50_screen.c | 432 const struct nouveau_screen *screen = nouveau_screen(pscreen); in nv50_screen_get_shader_param() local 495 return screen->prefer_nir ? PIPE_SHADER_IR_NIR : PIPE_SHADER_IR_TGSI; in nv50_screen_get_shader_param() 544 struct nv50_screen *screen = nv50_screen(pscreen); in nv50_screen_get_compute_param() local 576 RET((uint32_t []) { screen->mp_count }); in nv50_screen_get_compute_param() 593 struct nv50_screen *screen = nv50_screen(pscreen); in nv50_screen_destroy() local 595 if (!nouveau_drm_screen_unref(&screen->base)) in nv50_screen_destroy() 598 nouveau_fence_cleanup(&screen->base); in nv50_screen_destroy() 600 if (screen->base.pushbuf) in nv50_screen_destroy() 601 screen->base.pushbuf->user_priv = NULL; in nv50_screen_destroy() 603 if (screen->blitter) in nv50_screen_destroy() [all …]
|
/third_party/libdrm/tests/kms/ |
D | libkms-test-screen.c | 29 static void kms_screen_probe(struct kms_screen *screen) in kms_screen_probe() argument 31 struct kms_device *device = screen->device; in kms_screen_probe() 34 con = drmModeGetConnector(device->fd, screen->id); in kms_screen_probe() 38 screen->type = con->connector_type; in kms_screen_probe() 41 screen->connected = true; in kms_screen_probe() 43 screen->connected = false; in kms_screen_probe() 46 memcpy(&screen->mode, &con->modes[0], sizeof(drmModeModeInfo)); in kms_screen_probe() 48 screen->width = screen->mode.hdisplay; in kms_screen_probe() 49 screen->height = screen->mode.vdisplay; in kms_screen_probe() 56 struct kms_screen *screen; in kms_screen_create() local [all …]
|
/third_party/mesa3d/src/gallium/drivers/nouveau/nvc0/ |
D | nvc0_screen.c | 118 const struct nouveau_screen *screen = nouveau_screen(pscreen); in nvc0_screen_get_param() local 119 struct nouveau_device *dev = screen->device; in nvc0_screen_get_param() 343 return screen->has_svm ? 1 : 0; in nvc0_screen_get_param() 349 return screen->prefer_nir ? 1 : 0; in nvc0_screen_get_param() 467 const struct nouveau_screen *screen = nouveau_screen(pscreen); in nvc0_screen_get_shader_param() local 468 const uint16_t class_3d = screen->class_3d; in nvc0_screen_get_shader_param() 484 return screen->prefer_nir ? PIPE_SHADER_IR_NIR : PIPE_SHADER_IR_TGSI; in nvc0_screen_get_shader_param() 488 if (screen->force_enable_cl) in nvc0_screen_get_shader_param() 604 struct nvc0_screen *screen = nvc0_screen(pscreen); in nvc0_screen_get_compute_param() local 605 const uint16_t obj_class = screen->compute->oclass; in nvc0_screen_get_compute_param() [all …]
|
/third_party/mesa3d/src/gallium/drivers/llvmpipe/ |
D | lp_screen.c | 103 llvmpipe_get_vendor(struct pipe_screen *screen) in llvmpipe_get_vendor() argument 110 llvmpipe_get_name(struct pipe_screen *screen) in llvmpipe_get_name() argument 112 struct llvmpipe_screen *lscreen = llvmpipe_screen(screen); in llvmpipe_get_name() 118 llvmpipe_get_param(struct pipe_screen *screen, enum pipe_cap param) in llvmpipe_get_param() argument 202 struct llvmpipe_screen *lscreen = llvmpipe_screen(screen); in llvmpipe_get_param() 214 struct llvmpipe_screen *lscreen = llvmpipe_screen(screen); in llvmpipe_get_param() 259 struct llvmpipe_screen *lscreen = llvmpipe_screen(screen); in llvmpipe_get_param() 365 struct llvmpipe_screen *lscreen = llvmpipe_screen(screen); in llvmpipe_get_param() 369 return u_pipe_screen_get_param_defaults(screen, param); in llvmpipe_get_param() 374 llvmpipe_get_shader_param(struct pipe_screen *screen, in llvmpipe_get_shader_param() argument [all …]
|
/third_party/mesa3d/src/gallium/drivers/nouveau/nv30/ |
D | nv30_screen.c | 53 struct nv30_screen *screen = nv30_screen(pscreen); in nv30_screen_get_param() local 54 struct nouveau_object *eng3d = screen->eng3d; in nv30_screen_get_param() 288 struct nv30_screen *screen = nv30_screen(pscreen); in nv30_screen_get_paramf() local 289 struct nouveau_object *eng3d = screen->eng3d; in nv30_screen_get_paramf() 317 struct nv30_screen *screen = nv30_screen(pscreen); in nv30_screen_get_shader_param() local 318 struct nouveau_object *eng3d = screen->eng3d; in nv30_screen_get_shader_param() 483 struct nv30_screen *screen = nv30_screen(pscreen); in nv30_screen_fence_emit() local 484 struct nouveau_pushbuf *push = screen->base.pushbuf; in nv30_screen_fence_emit() 486 *sequence = ++screen->base.fence.sequence; in nv30_screen_fence_emit() 498 struct nv30_screen *screen = nv30_screen(pscreen); in nv30_screen_fence_update() local [all …]
|
/third_party/mesa3d/src/gallium/drivers/iris/ |
D | iris_screen.c | 107 struct iris_screen *screen = (struct iris_screen *)pscreen; in iris_get_device_uuid() local 108 const struct isl_device *isldev = &screen->isl_dev; in iris_get_device_uuid() 116 struct iris_screen *screen = (struct iris_screen *)pscreen; in iris_get_driver_uuid() local 117 const struct intel_device_info *devinfo = &screen->devinfo; in iris_get_driver_uuid() 147 struct iris_screen *screen = (struct iris_screen *)pscreen; in iris_get_name() local 148 const struct intel_device_info *devinfo = &screen->devinfo; in iris_get_name() 158 struct iris_screen *screen = (struct iris_screen *)pscreen; in iris_get_param() local 159 const struct intel_device_info *devinfo = &screen->devinfo; in iris_get_param() 329 return screen->pci_id; in iris_get_param() 365 return screen->driconf.disable_throttling ? 0 : 1; in iris_get_param() [all …]
|
/third_party/mesa3d/src/gallium/drivers/vc4/ |
D | vc4_screen.c | 82 struct vc4_screen *screen = vc4_screen(pscreen); in vc4_screen_get_name() local 84 if (!screen->name) { in vc4_screen_get_name() 85 screen->name = ralloc_asprintf(screen, in vc4_screen_get_name() 87 screen->v3d_ver / 10, in vc4_screen_get_name() 88 screen->v3d_ver % 10); in vc4_screen_get_name() 91 return screen->name; in vc4_screen_get_name() 103 struct vc4_screen *screen = vc4_screen(pscreen); in vc4_screen_destroy() local 105 _mesa_hash_table_destroy(screen->bo_handles, NULL); in vc4_screen_destroy() 107 slab_destroy_parent(&screen->transfer_pool); in vc4_screen_destroy() 108 if (screen->ro) in vc4_screen_destroy() [all …]
|
D | vc4_bufmgr.c | 52 vc4_bo_label(struct vc4_screen *screen, struct vc4_bo *bo, const char *fmt, ...) in vc4_bo_label() argument 72 vc4_ioctl(screen->fd, DRM_IOCTL_VC4_LABEL_BO, &label); in vc4_bo_label() 78 vc4_bo_dump_stats(struct vc4_screen *screen) in vc4_bo_dump_stats() argument 80 struct vc4_bo_cache *cache = &screen->bo_cache; in vc4_bo_dump_stats() 82 fprintf(stderr, " BOs allocated: %d\n", screen->bo_count); in vc4_bo_dump_stats() 83 fprintf(stderr, " BOs size: %dkb\n", screen->bo_size / 1024); in vc4_bo_dump_stats() 123 if (bo->screen->has_madvise) in vc4_bo_purgeable() 124 vc4_ioctl(bo->screen->fd, DRM_IOCTL_VC4_GEM_MADVISE, &arg); in vc4_bo_purgeable() 134 if (!bo->screen->has_madvise) in vc4_bo_unpurgeable() 137 if (vc4_ioctl(bo->screen->fd, DRM_IOCTL_VC4_GEM_MADVISE, &arg)) in vc4_bo_unpurgeable() [all …]
|