mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-22 01:48:50 +08:00
Create enum for Ioctl request values
Related-To: NEO-6852 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
0bf3af37d3
commit
b3814e41b4
@@ -67,7 +67,7 @@ bool BufferObject::close() {
|
||||
|
||||
PRINT_DEBUG_STRING(DebugManager.flags.PrintBOCreateDestroyResult.get(), stdout, "Calling gem close on handle: BO-%d\n", this->handle);
|
||||
|
||||
int ret = this->drm->ioctl(DRM_IOCTL_GEM_CLOSE, &close);
|
||||
int ret = this->drm->ioctl(DrmIoctl::GemClose, &close);
|
||||
if (ret != 0) {
|
||||
int err = errno;
|
||||
PRINT_DEBUG_STRING(DebugManager.flags.PrintDebugMessages.get(), stderr, "ioctl(GEM_CLOSE) failed with %d. errno=%d(%s)\n", ret, err, strerror(err));
|
||||
@@ -101,7 +101,7 @@ bool BufferObject::setTiling(uint32_t mode, uint32_t stride) {
|
||||
setTiling.tilingMode = mode;
|
||||
setTiling.stride = stride;
|
||||
|
||||
if (this->drm->ioctl(DRM_IOCTL_I915_GEM_SET_TILING, &setTiling) != 0) {
|
||||
if (this->drm->ioctl(DrmIoctl::GemSetTiling, &setTiling) != 0) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user