[virglrenderer-devel] [PATCH 1/2] renderer: add program to end of list.
Dave Airlie
airlied at gmail.com
Tue Mar 8 00:47:38 UTC 2016
From: Dave Airlie <airlied at redhat.com>
This seems to do better in xonotic traces, we at least don't
traverse as much of the list to pick up the shaders.
I think we should be using a hash table here really.
---
src/vrend_renderer.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/vrend_renderer.c b/src/vrend_renderer.c
index 64a2d78..ee45c23 100644
--- a/src/vrend_renderer.c
+++ b/src/vrend_renderer.c
@@ -905,7 +905,7 @@ static struct vrend_linked_shader_program *add_shader_program(struct vrend_conte
sprog->id = prog_id;
- list_add(&sprog->head, &ctx->sub->programs);
+ list_addtail(&sprog->head, &ctx->sub->programs);
if (fs->key.pstipple_tex)
sprog->fs_stipple_loc = glGetUniformLocation(prog_id, "pstipple_sampler");
--
2.5.0
More information about the virglrenderer-devel
mailing list