From cf41fae96b3d796ce80b2d1ad76b5c84a0669314 Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Wed, 19 Jun 2013 09:56:05 +0800 Subject: ilo: rework shader cache The new code makes the shader cache manages all shaders and be able to upload all of them to a caller-provided bo as a whole. Previously, we uploaded only the bound shaders. When a different set of shaders is bound, we had to allocate a new kernel bo to upload if the current one is busy. --- src/gallium/drivers/ilo/ilo_context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gallium/drivers/ilo/ilo_context.c') diff --git a/src/gallium/drivers/ilo/ilo_context.c b/src/gallium/drivers/ilo/ilo_context.c index 394081092ec..d3e900661ee 100644 --- a/src/gallium/drivers/ilo/ilo_context.c +++ b/src/gallium/drivers/ilo/ilo_context.c @@ -124,7 +124,7 @@ ilo_context_create(struct pipe_screen *screen, void *priv) ilo->dev = &is->dev; ilo->cp = ilo_cp_create(ilo->winsys, is->dev.has_llc); - ilo->shader_cache = ilo_shader_cache_create(ilo->winsys); + ilo->shader_cache = ilo_shader_cache_create(); if (ilo->cp) ilo->hw3d = ilo_3d_create(ilo->cp, ilo->dev); -- cgit v1.2.3