Home
last modified time | relevance | path

Searched refs:gpu (Results 1 – 25 of 1006) sorted by relevance

12345678910>>...41

/third_party/flutter/skia/gn/
Dgpu.gni11 "$_include/gpu/GrBackendDrawableInfo.h",
12 "$_include/gpu/GrBackendSemaphore.h",
13 "$_include/gpu/GrBackendSurface.h",
14 "$_include/gpu/GrConfig.h",
15 "$_include/gpu/GrContext.h",
16 "$_include/gpu/GrContextOptions.h",
17 "$_include/gpu/GrContextThreadSafeProxy.h",
18 "$_include/gpu/GrDriverBugWorkarounds.h",
19 "$_include/gpu/GrGpuResource.h",
20 "$_include/gpu/GrSurface.h",
[all …]
Dsksl.gni39 "$_src/gpu/effects/GrAARectEffect.fp",
40 "$_src/gpu/effects/GrAlphaThresholdFragmentProcessor.fp",
41 "$_src/gpu/effects/GrBlurredEdgeFragmentProcessor.fp",
42 "$_src/gpu/effects/GrCircleBlurFragmentProcessor.fp",
43 "$_src/gpu/effects/GrCircleEffect.fp",
44 "$_src/gpu/effects/GrColorMatrixFragmentProcessor.fp",
45 "$_src/gpu/effects/GrComposeLerpEffect.fp",
46 "$_src/gpu/effects/GrComposeLerpRedEffect.fp",
47 "$_src/gpu/effects/GrConfigConversionEffect.fp",
48 "$_src/gpu/effects/GrConstColorProcessor.fp",
[all …]
/third_party/skia/gn/
Dgpu.gni11 "$_include/gpu/GrBackendDrawableInfo.h",
12 "$_include/gpu/GrBackendSemaphore.h",
13 "$_include/gpu/GrBackendSurface.h",
14 "$_include/gpu/GrBackendSurfaceMutableState.h",
15 "$_include/gpu/GrConfig.h",
16 "$_include/gpu/GrContextOptions.h",
17 "$_include/gpu/GrContextThreadSafeProxy.h",
18 "$_include/gpu/GrDirectContext.h",
19 "$_include/gpu/GrDriverBugWorkarounds.h",
20 "$_include/gpu/GrRecordingContext.h",
[all …]
/third_party/mesa3d/src/gallium/drivers/tegra/
Dtegra_context.c44 context->gpu->destroy(context->gpu); in tegra_destroy()
84 context->gpu->draw_vbo(context->gpu, pinfo, drawid_offset, pindirect, draws, num_draws); in tegra_draw_vbo()
95 context->gpu->render_condition(context->gpu, query, condition, mode); in tegra_render_condition()
104 return context->gpu->create_query(context->gpu, query_type, index); in tegra_create_query()
114 return context->gpu->create_batch_query(context->gpu, num_queries, in tegra_create_batch_query()
123 context->gpu->destroy_query(context->gpu, query); in tegra_destroy_query()
131 return context->gpu->begin_query(context->gpu, query); in tegra_begin_query()
139 return context->gpu->end_query(context->gpu, query); in tegra_end_query()
150 return context->gpu->get_query_result(context->gpu, query, wait, in tegra_get_query_result()
165 context->gpu->get_query_result_resource(context->gpu, query, wait, in tegra_get_query_result_resource()
[all …]
Dtegra_screen.c53 screen->gpu->destroy(screen->gpu); in tegra_screen_destroy()
80 return screen->gpu->get_param(screen->gpu, param); in tegra_screen_get_param()
88 return screen->gpu->get_paramf(screen->gpu, param); in tegra_screen_get_paramf()
97 return screen->gpu->get_shader_param(screen->gpu, shader, param); in tegra_screen_get_shader_param()
108 return screen->gpu->get_video_param(screen->gpu, profile, entrypoint, in tegra_screen_get_video_param()
120 return screen->gpu->get_compute_param(screen->gpu, ir_type, param, in tegra_screen_get_compute_param()
129 return screen->gpu->get_timestamp(screen->gpu); in tegra_screen_get_timestamp()
142 return screen->gpu->is_format_supported(screen->gpu, format, target, in tegra_screen_is_format_supported()
155 return screen->gpu->is_video_format_supported(screen->gpu, format, profile, in tegra_screen_is_video_format_supported()
165 return screen->gpu->can_create_resource(screen->gpu, template); in tegra_screen_can_create_resource()
[all …]
/third_party/mesa3d/src/virtio/vulkan/
Dvn_renderer_virtgpu.c137 sim_syncobj_create(struct virtgpu *gpu, bool signaled) in sim_syncobj_create() argument
161 int ret = drmIoctl(gpu->fd, DRM_IOCTL_VIRTGPU_EXECBUFFER, &args); in sim_syncobj_create()
182 sim_syncobj_destroy(struct virtgpu *gpu, uint32_t syncobj_handle) in sim_syncobj_destroy() argument
268 sim_syncobj_lookup(struct virtgpu *gpu, uint32_t syncobj_handle) in sim_syncobj_lookup() argument
283 sim_syncobj_reset(struct virtgpu *gpu, uint32_t syncobj_handle) in sim_syncobj_reset() argument
285 struct sim_syncobj *syncobj = sim_syncobj_lookup(gpu, syncobj_handle); in sim_syncobj_reset()
297 sim_syncobj_query(struct virtgpu *gpu, in sim_syncobj_query() argument
301 struct sim_syncobj *syncobj = sim_syncobj_lookup(gpu, syncobj_handle); in sim_syncobj_query()
314 sim_syncobj_signal(struct virtgpu *gpu, in sim_syncobj_signal() argument
318 struct sim_syncobj *syncobj = sim_syncobj_lookup(gpu, syncobj_handle); in sim_syncobj_signal()
[all …]
/third_party/skia/third_party/externals/angle2/src/gpu_info_util/
DSystemInfo_vulkan.cpp165 GPUDeviceInfo &gpu = info->gpus[i]; in GetSystemInfoVulkanWithICD() local
166 gpu.vendorId = properties.vendorID; in GetSystemInfoVulkanWithICD()
167 gpu.deviceId = properties.deviceID; in GetSystemInfoVulkanWithICD()
175 gpu.driverVendor = "Advanced Micro Devices, Inc"; in GetSystemInfoVulkanWithICD()
176 gpu.driverVersion = FormatString("0x%x", properties.driverVersion); in GetSystemInfoVulkanWithICD()
177 gpu.detailedDriverVersion.major = properties.driverVersion; in GetSystemInfoVulkanWithICD()
180 gpu.driverVendor = "Arm Holdings"; in GetSystemInfoVulkanWithICD()
181 gpu.driverVersion = FormatString("0x%x", properties.driverVersion); in GetSystemInfoVulkanWithICD()
182 gpu.detailedDriverVersion.major = properties.driverVersion; in GetSystemInfoVulkanWithICD()
185 gpu.driverVendor = "Broadcom"; in GetSystemInfoVulkanWithICD()
[all …]
/third_party/flutter/skia/src/gpu/vk/
DGrVkCommandBuffer.cpp43 void GrVkCommandBuffer::freeGPUData(GrVkGpu* gpu) const { in freeGPUData()
48 fTrackedResources[i]->unref(gpu); in freeGPUData()
53 fTrackedRecycledResources[i]->recycle(const_cast<GrVkGpu*>(gpu)); in freeGPUData()
57 GR_VK_CALL(gpu->vkInterface(), FreeCommandBuffers(gpu->device(), fCmdPool->vkCommandPool(), in freeGPUData()
61 this->onFreeGPUData(gpu); in freeGPUData()
80 void GrVkCommandBuffer::releaseResources(GrVkGpu* gpu) { in releaseResources() argument
86 fTrackedResources[i]->unref(gpu); in releaseResources()
90 fTrackedRecycledResources[i]->recycle(const_cast<GrVkGpu*>(gpu)); in releaseResources()
106 this->onReleaseResources(gpu); in releaseResources()
113 void GrVkCommandBuffer::pipelineBarrier(const GrVkGpu* gpu, in pipelineBarrier() argument
[all …]
DGrVkMemory.cpp33 bool GrVkMemory::AllocAndBindBufferMemory(const GrVkGpu* gpu, in AllocAndBindBufferMemory() argument
38 GrVkMemoryAllocator* allocator = gpu->memoryAllocator(); in AllocAndBindBufferMemory()
65 VkResult err = GR_VK_CALL(gpu->vkInterface(), BindBufferMemory(gpu->device(), buffer, in AllocAndBindBufferMemory()
69 FreeBufferMemory(gpu, type, *alloc); in AllocAndBindBufferMemory()
76 void GrVkMemory::FreeBufferMemory(const GrVkGpu* gpu, GrVkBuffer::Type type, in FreeBufferMemory() argument
79 GrVkMemoryAllocator* allocator = gpu->memoryAllocator(); in FreeBufferMemory()
82 GR_VK_CALL(gpu->vkInterface(), FreeMemory(gpu->device(), alloc.fMemory, nullptr)); in FreeBufferMemory()
88 bool GrVkMemory::AllocAndBindImageMemory(const GrVkGpu* gpu, in AllocAndBindImageMemory() argument
93 GrVkMemoryAllocator* allocator = gpu->memoryAllocator(); in AllocAndBindImageMemory()
97 GR_VK_CALL(gpu->vkInterface(), GetImageMemoryRequirements(gpu->device(), image, &memReqs)); in AllocAndBindImageMemory()
[all …]
DGrVkBuffer.cpp22 const GrVkBuffer::Resource* GrVkBuffer::Create(const GrVkGpu* gpu, const Desc& desc) { in Create() argument
23 SkASSERT(!gpu->protectedContext() || (gpu->protectedContext() == desc.fDynamic)); in Create()
61 err = VK_CALL(gpu, CreateBuffer(gpu->device(), &bufInfo, nullptr, &buffer)); in Create()
66 if (!GrVkMemory::AllocAndBindBufferMemory(gpu, in Create()
76 VK_CALL(gpu, DestroyBuffer(gpu->device(), buffer, nullptr)); in Create()
77 GrVkMemory::FreeBufferMemory(gpu, desc.fType, alloc); in Create()
84 void GrVkBuffer::addMemoryBarrier(const GrVkGpu* gpu, in addMemoryBarrier() argument
103 gpu->addBufferMemoryBarrier(this->resource(), srcStageMask, dstStageMask, byRegion, in addMemoryBarrier()
107 void GrVkBuffer::Resource::freeGPUData(GrVkGpu* gpu) const { in freeGPUData()
110 VK_CALL(gpu, DestroyBuffer(gpu->device(), fBuffer, nullptr)); in freeGPUData()
[all …]
DGrVkCommandBuffer.h42 void pipelineBarrier(const GrVkGpu* gpu,
50 void bindInputBuffer(GrVkGpu* gpu, uint32_t binding, const GrVkVertexBuffer* vbuffer);
52 void bindIndexBuffer(GrVkGpu* gpu, const GrVkIndexBuffer* ibuffer);
54 void bindPipeline(const GrVkGpu* gpu, const GrVkPipeline* pipeline);
56 void bindDescriptorSets(const GrVkGpu* gpu,
67 void setViewport(const GrVkGpu* gpu,
72 void setScissor(const GrVkGpu* gpu,
77 void setBlendConstants(const GrVkGpu* gpu, const float blendConstants[4]);
80 void clearAttachments(const GrVkGpu* gpu,
86 void drawIndexed(const GrVkGpu* gpu,
[all …]
DGrVkCommandPool.cpp14 GrVkCommandPool* GrVkCommandPool::Create(const GrVkGpu* gpu) { in Create() argument
18 if (gpu->protectedContext()) { in Create()
26 gpu->queueIndex(), // queueFamilyIndex in Create()
30 gpu->vkInterface(), in Create()
31 CreateCommandPool(gpu->device(), &cmdPoolInfo, nullptr, &pool)); in Create()
32 return new GrVkCommandPool(gpu, pool); in Create()
35 GrVkCommandPool::GrVkCommandPool(const GrVkGpu* gpu, VkCommandPool commandPool) in GrVkCommandPool() argument
37 fPrimaryCommandBuffer.reset(GrVkPrimaryCommandBuffer::Create(gpu, this)); in GrVkCommandPool()
41 GrVkGpu* gpu) { in findOrCreateSecondaryCommandBuffer() argument
47 result.reset(GrVkSecondaryCommandBuffer::Create(gpu, this)); in findOrCreateSecondaryCommandBuffer()
[all …]
/third_party/flutter/skia/third_party/externals/angle2/src/gpu_info_util/
DSystemInfo_android.cpp175 GPUDeviceInfo &gpu = info->gpus[i]; in GetSystemInfo() local
176 gpu.vendorId = properties.vendorID; in GetSystemInfo()
177 gpu.deviceId = properties.deviceID; in GetSystemInfo()
185 gpu.driverVendor = "Advanced Micro Devices, Inc"; in GetSystemInfo()
186 gpu.driverVersion = FormatString("0x%x", properties.driverVersion); in GetSystemInfo()
187 gpu.detailedDriverVersion.major = properties.driverVersion; in GetSystemInfo()
190 gpu.driverVendor = "Arm Holdings"; in GetSystemInfo()
191 gpu.driverVersion = FormatString("0x%x", properties.driverVersion); in GetSystemInfo()
192 gpu.detailedDriverVersion.major = properties.driverVersion; in GetSystemInfo()
195 gpu.driverVendor = "Imagination Technologies Limited"; in GetSystemInfo()
[all …]
/third_party/skia/src/gpu/vk/
DGrVkCommandBuffer.cpp42 void GrVkCommandBuffer::freeGPUData(const GrGpu* gpu, VkCommandPool cmdPool) const { in freeGPUData() argument
52 GrVkGpu* vkGpu = (GrVkGpu*)gpu; in freeGPUData()
76 void GrVkCommandBuffer::pipelineBarrier(const GrVkGpu* gpu, in pipelineBarrier() argument
126 this->submitPipelineBarriers(gpu); in pipelineBarrier()
142 this->submitPipelineBarriers(gpu, true); in pipelineBarrier()
146 void GrVkCommandBuffer::submitPipelineBarriers(const GrVkGpu* gpu, bool forSelfDependency) { in submitPipelineBarriers() argument
160 GR_VK_CALL(gpu->vkInterface(), CmdPipelineBarrier( in submitPipelineBarriers()
177 void GrVkCommandBuffer::bindInputBuffer(GrVkGpu* gpu, uint32_t binding, in bindInputBuffer() argument
186 GR_VK_CALL(gpu->vkInterface(), CmdBindVertexBuffers(fCmdBuffer, in bindInputBuffer()
196 void GrVkCommandBuffer::bindIndexBuffer(GrVkGpu* gpu, sk_sp<const GrBuffer> buffer) { in bindIndexBuffer() argument
[all …]
DGrVkMemory.cpp16 bool GrVkMemory::AllocAndBindBufferMemory(GrVkGpu* gpu, in AllocAndBindBufferMemory() argument
20 GrVkMemoryAllocator* allocator = gpu->memoryAllocator(); in AllocAndBindBufferMemory()
24 bool shouldPersistentlyMapCpuToGpu = gpu->vkCaps().shouldPersistentlyMapCpuToGpuBuffers(); in AllocAndBindBufferMemory()
35 if (!gpu->checkVkResult(result)) { in AllocAndBindBufferMemory()
42 GR_VK_CALL_RESULT(gpu, err, BindBufferMemory(gpu->device(), buffer, alloc->fMemory, in AllocAndBindBufferMemory()
45 FreeBufferMemory(gpu, *alloc); in AllocAndBindBufferMemory()
52 void GrVkMemory::FreeBufferMemory(const GrVkGpu* gpu, const GrVkAlloc& alloc) { in FreeBufferMemory() argument
54 GrVkMemoryAllocator* allocator = gpu->memoryAllocator(); in FreeBufferMemory()
58 bool GrVkMemory::AllocAndBindImageMemory(GrVkGpu* gpu, in AllocAndBindImageMemory() argument
62 GrVkMemoryAllocator* allocator = gpu->memoryAllocator(); in AllocAndBindImageMemory()
[all …]
DGrVkCommandBuffer.h39 void pipelineBarrier(const GrVkGpu* gpu,
47 void bindInputBuffer(GrVkGpu* gpu, uint32_t binding, sk_sp<const GrBuffer> buffer);
49 void bindIndexBuffer(GrVkGpu* gpu, sk_sp<const GrBuffer> buffer);
51 void bindPipeline(const GrVkGpu* gpu, sk_sp<const GrVkPipeline> pipeline);
53 void bindDescriptorSets(const GrVkGpu* gpu,
61 void pushConstants(const GrVkGpu* gpu, VkPipelineLayout layout,
65 void setViewport(const GrVkGpu* gpu,
70 void setScissor(const GrVkGpu* gpu,
75 void setBlendConstants(const GrVkGpu* gpu, const float blendConstants[4]);
78 void clearAttachments(const GrVkGpu* gpu,
[all …]
DGrVkImage.cpp18 sk_sp<GrVkImage> GrVkImage::MakeStencil(GrVkGpu* gpu, in MakeStencil() argument
24 return GrVkImage::Make(gpu, in MakeStencil()
36 sk_sp<GrVkImage> GrVkImage::MakeMSAA(GrVkGpu* gpu, in MakeMSAA() argument
50 return GrVkImage::Make(gpu, in MakeMSAA()
62 sk_sp<GrVkImage> GrVkImage::MakeTexture(GrVkGpu* gpu, in MakeTexture() argument
80 return GrVkImage::Make(gpu, in MakeTexture()
92 static bool make_views(GrVkGpu* gpu, in make_views() argument
110 gpu, info.fImage, info.fFormat, viewType, 1, info.fYcbcrConversionInfo); in make_views()
117 *textureView = GrVkImageView::Make(gpu, in make_views()
130 sk_sp<GrVkImage> GrVkImage::Make(GrVkGpu* gpu, in Make() argument
[all …]
/third_party/mesa3d/src/broadcom/common/
Dv3d_cpu_tiling.h32 void *gpu, uint32_t gpu_stride) in v3d_load_utile() argument
53 : [gpu] "r"(gpu), in v3d_load_utile()
78 : [gpu] "r"(gpu), in v3d_load_utile()
102 : [gpu] "r"(gpu), in v3d_load_utile()
127 : [gpu] "r"(gpu), in v3d_load_utile()
135 memcpy(cpu, gpu + gpu_offset, gpu_stride); in v3d_load_utile()
141 v3d_store_utile(void *gpu, uint32_t gpu_stride, in v3d_store_utile() argument
163 : [gpu] "r"(gpu), in v3d_store_utile()
186 : [gpu] "r"(gpu), in v3d_store_utile()
208 : [gpu] "r"(gpu), in v3d_store_utile()
[all …]
/third_party/flutter/build/skia/ohos/
DBUILD.gn652 # Skia gpu config
675 "$flutter_root/skia/src/gpu/GrAHardwareBufferImageGenerator.cpp",
676 "$flutter_root/skia/src/gpu/GrAHardwareBufferUtils.cpp",
677 "$flutter_root/skia/src/gpu/GrAuditTrail.cpp",
678 "$flutter_root/skia/src/gpu/GrBackendSurface.cpp",
679 "$flutter_root/skia/src/gpu/GrBackendTextureImageGenerator.cpp",
680 "$flutter_root/skia/src/gpu/GrBitmapTextureMaker.cpp",
681 "$flutter_root/skia/src/gpu/GrBlurUtils.cpp",
682 "$flutter_root/skia/src/gpu/GrBufferAllocPool.cpp",
683 "$flutter_root/skia/src/gpu/GrCaps.cpp",
[all …]
/third_party/flutter/skia/src/gpu/mtl/
DGrMtlTextureRenderTarget.mm8 #include "src/gpu/mtl/GrMtlGpu.h"
9 #include "src/gpu/mtl/GrMtlTextureRenderTarget.h"
10 #include "src/gpu/mtl/GrMtlUtil.h"
16 GrMtlTextureRenderTarget::GrMtlTextureRenderTarget(GrMtlGpu* gpu,
23 : GrSurface(gpu, {desc.fWidth, desc.fHeight}, desc.fConfig, GrProtected::kNo)
24 , GrMtlTexture(gpu, desc, resolveTexture, mipMapsStatus)
25 , GrMtlRenderTarget(gpu, desc, sampleCnt, colorTexture, resolveTexture) {
29 GrMtlTextureRenderTarget::GrMtlTextureRenderTarget(GrMtlGpu* gpu,
34 : GrSurface(gpu, {desc.fWidth, desc.fHeight}, desc.fConfig, GrProtected::kNo)
35 , GrMtlTexture(gpu, desc, colorTexture, mipMapsStatus)
[all …]
/third_party/skia/src/gpu/d3d/
DGrD3DCpuDescriptorManager.cpp12 GrD3DCpuDescriptorManager::GrD3DCpuDescriptorManager(GrD3DGpu* gpu) in GrD3DCpuDescriptorManager() argument
13 : fRTVDescriptorPool(gpu, D3D12_DESCRIPTOR_HEAP_TYPE_RTV) in GrD3DCpuDescriptorManager()
14 , fDSVDescriptorPool(gpu, D3D12_DESCRIPTOR_HEAP_TYPE_DSV) in GrD3DCpuDescriptorManager()
15 , fShaderViewDescriptorPool(gpu, D3D12_DESCRIPTOR_HEAP_TYPE_CBV_SRV_UAV) in GrD3DCpuDescriptorManager()
16 , fSamplerDescriptorPool(gpu, D3D12_DESCRIPTOR_HEAP_TYPE_SAMPLER) {} in GrD3DCpuDescriptorManager()
19 GrD3DGpu* gpu, ID3D12Resource* textureResource) { in createRenderTargetView() argument
20 const GrD3DDescriptorHeap::CPUHandle& descriptor = fRTVDescriptorPool.allocateHandle(gpu); in createRenderTargetView()
21 gpu->device()->CreateRenderTargetView(textureResource, nullptr, descriptor.fHandle); in createRenderTargetView()
31 GrD3DGpu* gpu, ID3D12Resource* textureResource) { in createDepthStencilView() argument
32 const GrD3DDescriptorHeap::CPUHandle& descriptor = fDSVDescriptorPool.allocateHandle(gpu); in createDepthStencilView()
[all …]
DGrD3DTextureRenderTarget.cpp14 GrD3DGpu* gpu, in GrD3DTextureRenderTarget() argument
25 : GrSurface(gpu, dimensions, info.fProtected) in GrD3DTextureRenderTarget()
27 , GrD3DTexture(gpu, dimensions, info, state, shaderResourceView, mipmapStatus) in GrD3DTextureRenderTarget()
28 , GrD3DRenderTarget(gpu, in GrD3DTextureRenderTarget()
41 GrD3DGpu* gpu, in GrD3DTextureRenderTarget() argument
49 : GrSurface(gpu, dimensions, info.fProtected) in GrD3DTextureRenderTarget()
51 , GrD3DTexture(gpu, dimensions, info, state, shaderResourceView, mipmapStatus) in GrD3DTextureRenderTarget()
52 , GrD3DRenderTarget(gpu, dimensions, info, state, renderTargetView) { in GrD3DTextureRenderTarget()
57 GrD3DGpu* gpu, in GrD3DTextureRenderTarget() argument
68 : GrSurface(gpu, dimensions, info.fProtected) in GrD3DTextureRenderTarget()
[all …]
DGrD3DTexture.cpp17 GrD3DTexture::GrD3DTexture(GrD3DGpu* gpu, in GrD3DTexture() argument
24 : GrSurface(gpu, dimensions, info.fProtected) in GrD3DTexture()
26 , INHERITED(gpu, dimensions, info.fProtected, GrTextureType::k2D, mipmapStatus) in GrD3DTexture()
35 GrD3DTexture::GrD3DTexture(GrD3DGpu* gpu, SkISize dimensions, const GrD3DTextureResourceInfo& info, in GrD3DTexture() argument
40 : GrSurface(gpu, dimensions, info.fProtected) in GrD3DTexture()
42 , INHERITED(gpu, dimensions, info.fProtected, GrTextureType::k2D, mipmapStatus) in GrD3DTexture()
52 GrD3DTexture::GrD3DTexture(GrD3DGpu* gpu, in GrD3DTexture() argument
58 : GrSurface(gpu, dimensions, info.fProtected) in GrD3DTexture()
60 , INHERITED(gpu, dimensions, info.fProtected, GrTextureType::k2D, mipmapStatus) in GrD3DTexture()
65 sk_sp<GrD3DTexture> GrD3DTexture::MakeNewTexture(GrD3DGpu* gpu, SkBudgeted budgeted, in MakeNewTexture() argument
[all …]
/third_party/mesa3d/src/etnaviv/drm/
Detnaviv_gpu.c49 struct etna_gpu *gpu; in etna_gpu_new() local
51 gpu = calloc(1, sizeof(*gpu)); in etna_gpu_new()
52 if (!gpu) { in etna_gpu_new()
57 gpu->dev = dev; in etna_gpu_new()
58 gpu->core = core; in etna_gpu_new()
60 gpu->model = get_param(dev, core, ETNAVIV_PARAM_GPU_MODEL); in etna_gpu_new()
61 gpu->revision = get_param(dev, core, ETNAVIV_PARAM_GPU_REVISION); in etna_gpu_new()
63 if (!gpu->model) in etna_gpu_new()
66 INFO_MSG(" GPU model: 0x%x (rev %x)", gpu->model, gpu->revision); in etna_gpu_new()
68 return gpu; in etna_gpu_new()
[all …]
/third_party/libdrm/etnaviv/
Detnaviv_gpu.c49 struct etna_gpu *gpu; in etna_gpu_new() local
51 gpu = calloc(1, sizeof(*gpu)); in etna_gpu_new()
52 if (!gpu) { in etna_gpu_new()
57 gpu->dev = dev; in etna_gpu_new()
58 gpu->core = core; in etna_gpu_new()
60 gpu->model = get_param(dev, core, ETNAVIV_PARAM_GPU_MODEL); in etna_gpu_new()
61 gpu->revision = get_param(dev, core, ETNAVIV_PARAM_GPU_REVISION); in etna_gpu_new()
63 if (!gpu->model) in etna_gpu_new()
66 INFO_MSG(" GPU model: 0x%x (rev %x)", gpu->model, gpu->revision); in etna_gpu_new()
68 return gpu; in etna_gpu_new()
[all …]

12345678910>>...41