Skip to content

Commit

Permalink
it: use a software renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
mahkoh committed Jun 5, 2024
1 parent 5e336e1 commit 3430c36
Show file tree
Hide file tree
Showing 5 changed files with 577 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/it.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ mod test_macros;
pub mod test_backend;
mod test_client;
pub mod test_config;
mod test_gfx_api;
mod test_ifs;
mod test_logger;
mod test_mem;
Expand Down
6 changes: 4 additions & 2 deletions src/it/test_backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ use {
drm_feedback::DrmFeedback,
fixed::Fixed,
gfx_api::GfxError,
it::{test_error::TestResult, test_utils::test_expected_event::TEEH},
it::{
test_error::TestResult, test_gfx_api::TestGfxCtx, test_utils::test_expected_event::TEEH,
},
state::State,
time::now_usec,
utils::{
Expand Down Expand Up @@ -186,7 +188,7 @@ impl TestBackend {
}
};
let drm = Drm::open_existing(file);
let ctx = match self.state.create_gfx_context(&drm, None) {
let ctx = match TestGfxCtx::new(&drm) {
Ok(ctx) => ctx,
Err(e) => return Err(TestBackendError::RenderContext(e)),
};
Expand Down
Loading

0 comments on commit 3430c36

Please sign in to comment.