From fe2c4764e6427d6b2d0da45137e05e2b728335ca Mon Sep 17 00:00:00 2001 From: Harrand Date: Wed, 13 Nov 2024 20:29:11 +0000 Subject: [PATCH] [test] fixed a couple of test failures due to API changes and bugs --- test/tz/gpu_graphics_renderer_test.cpp | 2 +- test/tz/matrix_test.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/tz/gpu_graphics_renderer_test.cpp b/test/tz/gpu_graphics_renderer_test.cpp index 4edcbc27e9..1610a497ce 100644 --- a/test/tz/gpu_graphics_renderer_test.cpp +++ b/test/tz/gpu_graphics_renderer_test.cpp @@ -36,8 +36,8 @@ int tz_main() })); tz::gpu::graph_handle graph = tz_must(tz::gpu::graph_builder{} - .set_flags(tz::gpu::graph_flag::present_after) .add_pass(pass) + .add_pass(tz::gpu::present_pass) .build()); for(std::size_t i = 0; i < 64; i++) diff --git a/test/tz/matrix_test.cpp b/test/tz/matrix_test.cpp index ca12b9eab7..97bb4fded9 100644 --- a/test/tz/matrix_test.cpp +++ b/test/tz/matrix_test.cpp @@ -17,7 +17,7 @@ void test_matrix_constructor() auto iden_matrix = matrix_t::iden(); matrix_t expected_identity = matrix_t::zero(); for (std::size_t i = 0; i < N; ++i) - expected_identity[i * N] = T{1}; // Diagonal elements = 1 + expected_identity[i * N + i] = T{1}; // Diagonal elements = 1 tz_assert(iden_matrix == expected_identity, "iden() failed. Expected identity matrix"); }