Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds struct kgsl_gpuobj_import_dma_buf cast #150

Merged
merged 3 commits into from
Dec 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions third_party/freedreno/wrap/wrap-syscall.c
Original file line number Diff line number Diff line change
Expand Up @@ -1337,8 +1337,7 @@ static void kgsl_ioclt_gpuobj_import_pre(int fd,
struct kgsl_gpuobj_import *param)
{
if (param->type == KGSL_USER_MEM_TYPE_DMABUF) {
struct kgsl_gpuobj_import_dma_buf *import_dmabuf;
import_dmabuf->fd = param->priv;
struct kgsl_gpuobj_import_dma_buf *import_dmabuf = (struct kgsl_gpuobj_import_dma_buf *)param->priv;

printf("\t\tdmabuf_fd:\t%u\n", import_dmabuf->fd);
}
Expand Down