You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: clang/test/dpct/texture_object.cu
+51Lines changed: 51 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -437,4 +437,55 @@ void mipmap() {
437
437
// CHECK-NEXT: DPCT1007:{{[0-9]+}}: Migration of cudaTextureDesc::maxMipmapLevelClamp is not supported.
438
438
// CHECK-NEXT: */
439
439
texDesc.maxMipmapLevelClamp = 1;
440
+
441
+
CUDA_ARRAY3D_DESCRIPTOR texdesc;
442
+
unsignedint numMipmapLevels = 2;
443
+
444
+
CUmipmappedArray *pArray;
445
+
// CHECK: /*
446
+
// CHECK-NEXT: DPCT1026:{{[0-9]+}}: The call to cuMipmappedArrayCreate was removed because SYCL currently does not support mipmap image type. You can migrate the code with bindless images by specifying --use-experimental-features=bindless_images.
// CHECK-NEXT: DPCT1026:{{[0-9]+}}: The call to cuMipmappedArrayGetLevel was removed because SYCL currently does not support mipmap image type. You can migrate the code with bindless images by specifying --use-experimental-features=bindless_images.
453
+
// CHECK-NEXT: */
454
+
cuMipmappedArrayGetLevel(&level_arr, *pArray, 1);
455
+
456
+
CUtexref texRef;
457
+
// CHECK: /*
458
+
// CHECK-NEXT: DPCT1026:{{[0-9]+}}: The call to cuTexRefSetMipmappedArray was removed because SYCL currently does not support mipmap image type. You can migrate the code with bindless images by specifying --use-experimental-features=bindless_images.
459
+
// CHECK-NEXT: */
460
+
cuTexRefSetMipmappedArray(texRef, *pArray, 0);
461
+
462
+
// sycl::filter_mode fm = sycl::filtering_mode::nearest;
463
+
CUfilter_mode fm = CU_TR_FILTER_MODE_POINT;
464
+
465
+
// CHECK: /*
466
+
// CHECK-NEXT: DPCT1026:{{[0-9]+}}: The call to cuTexRefSetMipmapFilterMode was removed because SYCL currently does not support mipmap image type. You can migrate the code with bindless images by specifying --use-experimental-features=bindless_images.
467
+
// CHECK-NEXT: */
468
+
cuTexRefSetMipmapFilterMode(texRef, fm);
469
+
470
+
// CHECK: /*
471
+
// CHECK-NEXT: DPCT1026:{{[0-9]+}}: The call to cuTexRefGetMipmapFilterMode was removed because SYCL currently does not support mipmap image type. You can migrate the code with bindless images by specifying --use-experimental-features=bindless_images.
472
+
// CHECK-NEXT: */
473
+
cuTexRefGetMipmapFilterMode(&fm, texRef);
474
+
475
+
float min_clamp, max_clamp;
476
+
// CHECK: /*
477
+
// CHECK-NEXT: DPCT1026:{{[0-9]+}}: The call to cuTexRefGetMipmapLevelClamp was removed because SYCL currently does not support mipmap image type. You can migrate the code with bindless images by specifying --use-experimental-features=bindless_images.
// CHECK-NEXT: DPCT1026:{{[0-9]+}}: The call to cuTexRefGetMipmappedArray was removed because SYCL currently does not support mipmap image type. You can migrate the code with bindless images by specifying --use-experimental-features=bindless_images.
484
+
// CHECK-NEXT: */
485
+
cuTexRefGetMipmappedArray(&anotherArray, texRef);
486
+
487
+
// CHECK: /*
488
+
// CHECK-NEXT: DPCT1026:{{[0-9]+}}: The call to cuMipmappedArrayDestroy was removed because SYCL currently does not support mipmap image type. You can migrate the code with bindless images by specifying --use-experimental-features=bindless_images.
0 commit comments