| 1 |
/* |
| 2 |
* Copyright 2023 Google LLC |
| 3 |
* SPDX-License-Identifier: MIT |
| 4 |
*/ |
| 5 |
|
| 6 |
#include "FuchsiaVirtGpu.h" |
| 7 |
#include "util/log.h" |
| 8 |
|
| 9 |
FuchsiaVirtGpuResource::FuchsiaVirtGpuResource(int64_t deviceHandle, uint32_t blobHandle, |
| 10 |
uint32_t resourceHandle, uint64_t size) {} |
| 11 |
|
| 12 |
FuchsiaVirtGpuResource::~FuchsiaVirtGpuResource(void) {} |
| 13 |
|
| 14 |
uint32_t FuchsiaVirtGpuResource::getBlobHandle() const { |
| 15 |
mesa_loge("%s: unimplemented", __func__); |
| 16 |
return 0; |
| 17 |
} |
| 18 |
|
| 19 |
uint32_t FuchsiaVirtGpuResource::getResourceHandle() const { |
| 20 |
mesa_loge("%s: unimplemented", __func__); |
| 21 |
return 0; |
| 22 |
} |
| 23 |
|
| 24 |
uint64_t FuchsiaVirtGpuResource::getSize() const { |
| 25 |
mesa_loge("%s: unimplemented", __func__); |
| 26 |
return 0; |
| 27 |
} |
| 28 |
|
| 29 |
VirtGpuResourceMappingPtr FuchsiaVirtGpuResource::createMapping(void) { |
| 30 |
mesa_loge("%s: unimplemented", __func__); |
| 31 |
return nullptr; |
| 32 |
} |
| 33 |
|
| 34 |
int FuchsiaVirtGpuResource::wait() { return -1; } |
| 35 |
|
| 36 |
int FuchsiaVirtGpuResource::exportBlob(struct VirtGpuExternalHandle& handle) { |
| 37 |
mesa_loge("%s: unimplemented", __func__); |
| 38 |
return 0; |
| 39 |
} |
| 40 |
|
| 41 |
int FuchsiaVirtGpuResource::transferFromHost(uint32_t offset, uint32_t size) { |
| 42 |
mesa_loge("%s: unimplemented", __func__); |
| 43 |
return 0; |
| 44 |
} |
| 45 |
|
| 46 |
int FuchsiaVirtGpuResource::transferToHost(uint32_t offset, uint32_t size) { |
| 47 |
mesa_loge("%s: unimplemented", __func__); |
| 48 |
return 0; |
| 49 |
} |