Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/rutabaga_gfx/src/rutabaga_core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ struct RutabagaCapsetInfo {
pub name: &'static str,
}

const RUTABAGA_CAPSETS: [RutabagaCapsetInfo; 9] = [
const RUTABAGA_CAPSETS: [RutabagaCapsetInfo; 10] = [
RutabagaCapsetInfo {
capset_id: RUTABAGA_CAPSET_VIRGL,
component: RutabagaComponentType::VirglRenderer,
Expand Down Expand Up @@ -307,6 +307,11 @@ const RUTABAGA_CAPSETS: [RutabagaCapsetInfo; 9] = [
component: RutabagaComponentType::Gfxstream,
name: "gfxstream-composer",
},
RutabagaCapsetInfo {
capset_id: RUTABAGA_CAPSET_APIR,
component: RutabagaComponentType::VirglRenderer,
name: "apir",
},
];

pub fn calculate_capset_mask<'a, I: Iterator<Item = &'a str>>(context_names: I) -> u64 {
Expand Down Expand Up @@ -1273,6 +1278,7 @@ impl RutabagaBuilder {
push_capset(RUTABAGA_CAPSET_VIRGL2);
push_capset(RUTABAGA_CAPSET_VENUS);
push_capset(RUTABAGA_CAPSET_DRM);
push_capset(RUTABAGA_CAPSET_APIR);
}

#[cfg(feature = "gfxstream")]
Expand Down
1 change: 1 addition & 0 deletions src/rutabaga_gfx/src/rutabaga_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ pub const RUTABAGA_CAPSET_DRM: u32 = 6;
pub const RUTABAGA_CAPSET_GFXSTREAM_MAGMA: u32 = 7;
pub const RUTABAGA_CAPSET_GFXSTREAM_GLES: u32 = 8;
pub const RUTABAGA_CAPSET_GFXSTREAM_COMPOSER: u32 = 9;
pub const RUTABAGA_CAPSET_APIR: u32 = 10;

/// An error generated while using this crate.
#[sorted]
Expand Down