@@ -691,6 +691,42 @@ LZT_TEST_F(
691
691
lzt::free_memory (buff_out_top);
692
692
}
693
693
694
+ LZT_TEST_F (
695
+ zeCommandListAppendImageCopyTests,
696
+ GivenDeviceImageAndHostImageWhenAppendingImageCopyFromMemoryUsingCopyEngineAndDeviceMemoryWithNonNullRegionsThenImageIsCorrectAndSuccessIsReturned) {
697
+ if (!(lzt::image_support ())) {
698
+ GTEST_SKIP ();
699
+ }
700
+ void *buff_in_top = lzt::allocate_device_memory (image_size);
701
+ void *buff_out_bot = lzt::allocate_device_memory (image_size);
702
+ void *buff_in_bot = lzt::allocate_device_memory (image_size);
703
+ void *buff_out_top = lzt::allocate_device_memory (image_size);
704
+ test_image_mem_copy_use_regions (buff_in_bot, buff_in_top, buff_out_bot,
705
+ buff_out_top, false , true );
706
+ lzt::free_memory (buff_in_bot);
707
+ lzt::free_memory (buff_in_top);
708
+ lzt::free_memory (buff_out_bot);
709
+ lzt::free_memory (buff_out_top);
710
+ }
711
+
712
+ LZT_TEST_F (
713
+ zeCommandListAppendImageCopyTests,
714
+ GivenDeviceImageAndHostImageWhenAppendingImageCopyFromMemoryToImmediateCmdListUsingCopyEngineAndDeviceMemoryWithNonNullRegionsThenImageIsCorrectAndSuccessIsReturned) {
715
+ if (!(lzt::image_support ())) {
716
+ GTEST_SKIP ();
717
+ }
718
+ void *buff_in_top = lzt::allocate_device_memory (image_size);
719
+ void *buff_out_bot = lzt::allocate_device_memory (image_size);
720
+ void *buff_in_bot = lzt::allocate_device_memory (image_size);
721
+ void *buff_out_top = lzt::allocate_device_memory (image_size);
722
+ test_image_mem_copy_use_regions (buff_in_bot, buff_in_top, buff_out_bot,
723
+ buff_out_top, true , true );
724
+ lzt::free_memory (buff_in_bot);
725
+ lzt::free_memory (buff_in_top);
726
+ lzt::free_memory (buff_out_bot);
727
+ lzt::free_memory (buff_out_top);
728
+ }
729
+
694
730
LZT_TEST_F (
695
731
zeCommandListAppendImageCopyTests,
696
732
GivenDeviceImageAndHostImageWhenAppendingImageCopyFromMemoryUsingDeviceMemoryWithNullRegionsThenImageIsCorrectAndSuccessIsReturned) {
@@ -717,6 +753,32 @@ LZT_TEST_F(
717
753
lzt::free_memory (buff_out);
718
754
}
719
755
756
+ LZT_TEST_F (
757
+ zeCommandListAppendImageCopyTests,
758
+ GivenDeviceImageAndHostImageWhenAppendingImageCopyFromMemoryUsingCopyEngineAndDeviceMemoryWithNullRegionsThenImageIsCorrectAndSuccessIsReturned) {
759
+ if (!(lzt::image_support ())) {
760
+ GTEST_SKIP ();
761
+ }
762
+ void *buff_in = lzt::allocate_device_memory (image_size);
763
+ void *buff_out = lzt::allocate_device_memory (image_size);
764
+ test_image_mem_copy_no_regions (buff_in, buff_out, false , true );
765
+ lzt::free_memory (buff_in);
766
+ lzt::free_memory (buff_out);
767
+ }
768
+
769
+ LZT_TEST_F (
770
+ zeCommandListAppendImageCopyTests,
771
+ GivenDeviceImageAndHostImageWhenAppendingImageCopyFromMemoryToImmediateCmdListUsingCopyEngineAndDeviceMemoryWithNullRegionsThenImageIsCorrectAndSuccessIsReturned) {
772
+ if (!(lzt::image_support ())) {
773
+ GTEST_SKIP ();
774
+ }
775
+ void *buff_in = lzt::allocate_device_memory (image_size);
776
+ void *buff_out = lzt::allocate_device_memory (image_size);
777
+ test_image_mem_copy_no_regions (buff_in, buff_out, true , true );
778
+ lzt::free_memory (buff_in);
779
+ lzt::free_memory (buff_out);
780
+ }
781
+
720
782
LZT_TEST_F (
721
783
zeCommandListAppendImageCopyTests,
722
784
GivenDeviceImageAndHostImageWhenAppendingImageCopyFromMemoryUsingSharedMemoryWithNonNullRegionsThenImageIsCorrectAndSuccessIsReturned) {
@@ -753,6 +815,42 @@ LZT_TEST_F(
753
815
lzt::free_memory (buff_out_top);
754
816
}
755
817
818
+ LZT_TEST_F (
819
+ zeCommandListAppendImageCopyTests,
820
+ GivenDeviceImageAndHostImageWhenAppendingImageCopyFromMemoryUsingCopyEngineAndSharedMemoryWithNonNullRegionsThenImageIsCorrectAndSuccessIsReturned) {
821
+ if (!(lzt::image_support ())) {
822
+ GTEST_SKIP ();
823
+ }
824
+ void *buff_in_top = lzt::allocate_shared_memory (image_size);
825
+ void *buff_out_bot = lzt::allocate_shared_memory (image_size);
826
+ void *buff_in_bot = lzt::allocate_shared_memory (image_size);
827
+ void *buff_out_top = lzt::allocate_shared_memory (image_size);
828
+ test_image_mem_copy_use_regions (buff_in_bot, buff_in_top, buff_out_bot,
829
+ buff_out_top, false , true );
830
+ lzt::free_memory (buff_in_bot);
831
+ lzt::free_memory (buff_in_top);
832
+ lzt::free_memory (buff_out_bot);
833
+ lzt::free_memory (buff_out_top);
834
+ }
835
+
836
+ LZT_TEST_F (
837
+ zeCommandListAppendImageCopyTests,
838
+ GivenDeviceImageAndHostImageWhenAppendingImageCopyFromMemoryToImmediateCmdListUsingCopyEngineAndSharedMemoryWithNonNullRegionsThenImageIsCorrectAndSuccessIsReturned) {
839
+ if (!(lzt::image_support ())) {
840
+ GTEST_SKIP ();
841
+ }
842
+ void *buff_in_top = lzt::allocate_shared_memory (image_size);
843
+ void *buff_out_bot = lzt::allocate_shared_memory (image_size);
844
+ void *buff_in_bot = lzt::allocate_shared_memory (image_size);
845
+ void *buff_out_top = lzt::allocate_shared_memory (image_size);
846
+ test_image_mem_copy_use_regions (buff_in_bot, buff_in_top, buff_out_bot,
847
+ buff_out_top, true , true );
848
+ lzt::free_memory (buff_in_bot);
849
+ lzt::free_memory (buff_in_top);
850
+ lzt::free_memory (buff_out_bot);
851
+ lzt::free_memory (buff_out_top);
852
+ }
853
+
756
854
LZT_TEST_F (
757
855
zeCommandListAppendImageCopyTests,
758
856
GivenDeviceImageAndHostImageWhenAppendingImageCopyFromMemoryUsingSharedMemoryWithNullRegionsThenImageIsCorrectAndSuccessIsReturned) {
@@ -779,6 +877,32 @@ LZT_TEST_F(
779
877
lzt::free_memory (buff_out);
780
878
}
781
879
880
+ LZT_TEST_F (
881
+ zeCommandListAppendImageCopyTests,
882
+ GivenDeviceImageAndHostImageWhenAppendingImageCopyFromMemoryUsingCopyEngineAndSharedMemoryWithNullRegionsThenImageIsCorrectAndSuccessIsReturned) {
883
+ if (!(lzt::image_support ())) {
884
+ GTEST_SKIP ();
885
+ }
886
+ void *buff_in = lzt::allocate_shared_memory (image_size);
887
+ void *buff_out = lzt::allocate_shared_memory (image_size);
888
+ test_image_mem_copy_no_regions (buff_in, buff_out, false , true );
889
+ lzt::free_memory (buff_in);
890
+ lzt::free_memory (buff_out);
891
+ }
892
+
893
+ LZT_TEST_F (
894
+ zeCommandListAppendImageCopyTests,
895
+ GivenDeviceImageAndHostImageWhenAppendingImageCopyFromMemoryToImmediateCmdListUsingCopyEngineAndSharedMemoryWithNullRegionsThenImageIsCorrectAndSuccessIsReturned) {
896
+ if (!(lzt::image_support ())) {
897
+ GTEST_SKIP ();
898
+ }
899
+ void *buff_in = lzt::allocate_shared_memory (image_size);
900
+ void *buff_out = lzt::allocate_shared_memory (image_size);
901
+ test_image_mem_copy_no_regions (buff_in, buff_out, true , true );
902
+ lzt::free_memory (buff_in);
903
+ lzt::free_memory (buff_out);
904
+ }
905
+
782
906
LZT_TEST_F (
783
907
zeCommandListAppendImageCopyTests,
784
908
GivenDeviceImageAndHostImageWhenAppendingImageCopyFromMemoryUsingSharedSystemMemoryWithNonNullRegionsThenImageIsCorrectAndSuccessIsReturnedWithSharedSystemAllocator) {
@@ -817,8 +941,6 @@ LZT_TEST_F(
817
941
lzt::aligned_free (buff_out_top);
818
942
}
819
943
820
-
821
-
822
944
LZT_TEST_F (
823
945
zeCommandListAppendImageCopyTests,
824
946
GivenDeviceImageAndHostImageWhenAppendingImageCopyFromMemoryToImmediateCmdListUsingSharedSystemMemoryWithNonNullRegionsThenImageIsCorrectAndSuccessIsReturnedWithSharedSystemAllocator) {
0 commit comments