Bug 5274280: Enable 8_Platform_Specific/Tegra/EGLSync_CUDAEvent_Interop

This commit is contained in:
shawnz
2025-05-12 15:02:31 +08:00
parent 2ec9cf394a
commit 8f33cc6094
3 changed files with 5 additions and 4 deletions

View File

@@ -17,7 +17,7 @@ else()
endif()
# Include directories and libraries
include_directories(../../../Common)
include_directories(../../../../Common)
find_package(EGL)
find_package(X11)

View File

@@ -259,7 +259,8 @@ void checkSync(int argc, char **argv)
unsigned char *pSurf_read = NULL, *pSurf_write = NULL;
int integrated;
CUresult status = CUDA_SUCCESS;
CUresult status = CUDA_SUCCESS;
CUctxCreateParams ctxCreateParams = {};
// Init values for variables
x = y = 0;
@@ -269,7 +270,7 @@ void checkSync(int argc, char **argv)
}
device = findCudaDeviceDRV(argc, (const char **)argv);
if (CUDA_SUCCESS != (status = cuCtxCreate(&context, 0, device))) {
if (CUDA_SUCCESS != (status = cuCtxCreate(&context, &ctxCreateParams, 0, device))) {
printf("failed to create CUDA context\n");
}
cuCtxPushCurrent(context);