mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-01-04 16:50:21 +01:00
amdgpu: fix 32-on-64 support (v2)
0xffffffff was appended to the higher 32bit with (intptr_t) when use 32bit libdrm_amdgpu.so with 64bit kernel, and it caused segmentation fault for 32bit application. v2: switch to uintptr_t Signed-off-by: Jammy Zhou <Jammy.Zhou@amd.com> Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
This commit is contained in:
parent
a4c8321179
commit
14070057d8
1 changed files with 1 additions and 1 deletions
|
|
@ -194,7 +194,7 @@ int amdgpu_bo_query_info(amdgpu_bo_handle bo,
|
|||
/* Query buffer info. */
|
||||
gem_op.handle = bo->handle;
|
||||
gem_op.op = AMDGPU_GEM_OP_GET_GEM_CREATE_INFO;
|
||||
gem_op.value = (intptr_t)&bo_info;
|
||||
gem_op.value = (uintptr_t)&bo_info;
|
||||
|
||||
r = drmCommandWriteRead(bo->dev->fd, DRM_AMDGPU_GEM_OP,
|
||||
&gem_op, sizeof(gem_op));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue