[gtk/wip/chergert/glproto] remove simple batch merging
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/chergert/glproto] remove simple batch merging
- Date: Tue, 16 Feb 2021 23:53:33 +0000 (UTC)
commit 39bec235ad1ac977d1b4795e4f98ab7f830e5cbc
Author: Christian Hergert <chergert redhat com>
Date: Tue Feb 16 16:01:51 2021 -0800
remove simple batch merging
this doesnt make sense because it will never hit now that we always have
full uniform state.
we'll need something else to see how we can find merge targets going
forward, but this isn't it.
gsk/next/gskglcommandqueue.c | 24 +-----------------------
1 file changed, 1 insertion(+), 23 deletions(-)
---
diff --git a/gsk/next/gskglcommandqueue.c b/gsk/next/gskglcommandqueue.c
index 26f6328fcc..06d2f89cbe 100644
--- a/gsk/next/gskglcommandqueue.c
+++ b/gsk/next/gskglcommandqueue.c
@@ -485,29 +485,7 @@ gsk_gl_command_queue_end_draw (GskGLCommandQueue *self)
else
last_batch = NULL;
- /* Do simple chaining of draw to last batch. */
- /* TODO: Use merging capabilities for out-or-order batching */
-#if 0
- if (batch->draw.uniform_count == 0 &&
- batch->draw.bind_count == 0 &&
- last_batch != NULL &&
- last_batch->any.kind == GSK_GL_COMMAND_KIND_DRAW &&
- last_batch->any.program == batch->any.program &&
- last_batch->any.viewport.width == batch->any.viewport.width &&
- last_batch->any.viewport.height == batch->any.viewport.height &&
- last_batch->draw.framebuffer == batch->draw.framebuffer &&
- last_batch->draw.vbo_offset + last_batch->draw.vbo_count == batch->draw.vbo_offset)
- {
- last_batch->draw.vbo_count += batch->draw.vbo_count;
- discard_batch (self);
- }
- else
- {
- enqueue_batch (self);
- }
-#else
- enqueue_batch (self);
-#endif
+ enqueue_batch (self);
self->in_draw = FALSE;
self->program_info = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]