From ee6694729bdf83aaf64023eb718a8a321a30c602 Mon Sep 17 00:00:00 2001 From: Raph Levien Date: Thu, 19 May 2022 14:31:00 -0700 Subject: [PATCH] Fix query pool size This was causing harmless warnings on mac but causing rendering to fail on Pixel 6. --- piet-gpu/bin/android.rs | 2 +- piet-gpu/bin/cli.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/piet-gpu/bin/android.rs b/piet-gpu/bin/android.rs index 8254cc0..25fcaed 100644 --- a/piet-gpu/bin/android.rs +++ b/piet-gpu/bin/android.rs @@ -110,7 +110,7 @@ impl GfxState { .map(|_| session.create_semaphore()) .collect::, Error>>()?; let query_pools = (0..NUM_FRAMES) - .map(|_| session.create_query_pool(8)) + .map(|_| session.create_query_pool(12)) .collect::, Error>>()?; let submitted = Default::default(); let cmd_bufs = Default::default(); diff --git a/piet-gpu/bin/cli.rs b/piet-gpu/bin/cli.rs index abe6ae1..6d7dcda 100644 --- a/piet-gpu/bin/cli.rs +++ b/piet-gpu/bin/cli.rs @@ -232,7 +232,7 @@ fn main() -> Result<(), Error> { let session = Session::new(device); let mut cmd_buf = session.cmd_buf()?; - let query_pool = session.create_query_pool(8)?; + let query_pool = session.create_query_pool(12)?; let mut ctx = PietGpuRenderContext::new(); if let Some(input) = matches.value_of("INPUT") {