From d2acd673135318585fb956a2723a9a1ba89577d7 Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Sat, 6 Sep 2014 12:20:55 +0800 Subject: ilo: use ilo_builder for kernels and STATE_BASE_ADDRESS Remove instruction buffer management from ilo_3d and adapt ilo_shader_cache to upload kernels to ilo_builder. To be able to do that, we also let ilo_builder manage STATE_BASE_ADDRESS. --- src/gallium/drivers/ilo/ilo_cp.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/gallium/drivers/ilo/ilo_cp.h') diff --git a/src/gallium/drivers/ilo/ilo_cp.h b/src/gallium/drivers/ilo/ilo_cp.h index bdc75c63d87..7935a529522 100644 --- a/src/gallium/drivers/ilo/ilo_cp.h +++ b/src/gallium/drivers/ilo/ilo_cp.h @@ -34,6 +34,7 @@ #include "ilo_common.h" struct ilo_cp; +struct ilo_shader_cache; typedef void (*ilo_cp_callback)(struct ilo_cp *cp, void *data); @@ -47,6 +48,7 @@ struct ilo_cp_owner { */ struct ilo_cp { struct intel_winsys *winsys; + struct ilo_shader_cache *shader_cache; struct intel_context *render_ctx; ilo_cp_callback flush_callback; @@ -68,7 +70,9 @@ struct ilo_cp { }; struct ilo_cp * -ilo_cp_create(const struct ilo_dev_info *dev, struct intel_winsys *winsys); +ilo_cp_create(const struct ilo_dev_info *dev, + struct intel_winsys *winsys, + struct ilo_shader_cache *shc); void ilo_cp_destroy(struct ilo_cp *cp); -- cgit v1.2.3