SWDEV-390626 - Support surface Apis
Change-Id: I1691b82d597bfd722d562778f919ebf8ca530e90
[ROCm/clr commit: 53742adc08]
This commit is contained in:
1 parent
56dedad98b
commit
769f1e166e
3 files changed
+11
-12
No files matched your search
@@ -44,6 +44,10 @@ hipError_t ihipCreateSurfaceObject(hipSurfaceObject_t* pSurfObject,
|
||||
const hipResourceDesc* pResDesc) {
|
||||
amd::Device* device = hip::getCurrentDevice()->devices()[0];
|
||||
const device::Info& info = device->info();
|
||||
if (!info.imageSupport_) {
|
||||
LogPrintfError("Texture not supported on the device %s", info.name_);
|
||||
return hipErrorNotSupported;
|
||||
}
|
||||
|
||||
// Validate input params
|
||||
if (pSurfObject == nullptr || pResDesc == nullptr) {
|
||||
|
||||
Reference in new issue
Block a user