diff --git a/src/intel/vulkan/i915/anv_gem.c b/src/intel/vulkan/i915/anv_gem.c index a159844aa31..e15c468fadf 100644 --- a/src/intel/vulkan/i915/anv_gem.c +++ b/src/intel/vulkan/i915/anv_gem.c @@ -29,7 +29,7 @@ int anv_i915_gem_get_tiling(struct anv_device *device, uint32_t gem_handle) { if (!device->info->has_tiling_uapi) - return -1; + return I915_TILING_NONE; struct drm_i915_gem_get_tiling get_tiling = { .handle = gem_handle, diff --git a/src/intel/vulkan/i915/anv_kmd_backend.c b/src/intel/vulkan/i915/anv_kmd_backend.c index 253abfd959e..790bac39d51 100644 --- a/src/intel/vulkan/i915/anv_kmd_backend.c +++ b/src/intel/vulkan/i915/anv_kmd_backend.c @@ -169,10 +169,15 @@ i915_gem_mmap_offset(struct anv_device *device, struct anv_bo *bo, }; if (intel_ioctl(device->fd, DRM_IOCTL_I915_GEM_MMAP_OFFSET, &gem_mmap)) return MAP_FAILED; - +#ifdef __x86_64__ return mmap(placed_addr, size, PROT_READ | PROT_WRITE, (placed_addr != NULL ? MAP_FIXED : 0) | MAP_SHARED, device->fd, gem_mmap.offset); +#else + return mmap64(placed_addr, size, PROT_READ | PROT_WRITE, + (placed_addr != NULL ? MAP_FIXED : 0) | MAP_SHARED, + device->fd, gem_mmap.offset); +#endif } static void *