diff options
author | Chia-I Wu <[email protected]> | 2014-09-06 12:20:55 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2014-09-09 13:31:37 +0800 |
commit | d2acd673135318585fb956a2723a9a1ba89577d7 (patch) | |
tree | 97f5be7cf4bde77d96e7d95b454ddf7f3e6602f4 /src/gallium/drivers/ilo/ilo_shader.h | |
parent | 55f80a3290cb0e07db780265369eb504573b4e62 (diff) |
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.
Diffstat (limited to 'src/gallium/drivers/ilo/ilo_shader.h')
-rw-r--r-- | src/gallium/drivers/ilo/ilo_shader.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/gallium/drivers/ilo/ilo_shader.h b/src/gallium/drivers/ilo/ilo_shader.h index d12b086ec81..45e6af2090e 100644 --- a/src/gallium/drivers/ilo/ilo_shader.h +++ b/src/gallium/drivers/ilo/ilo_shader.h @@ -70,6 +70,7 @@ struct ilo_kernel_routing { }; struct intel_bo; +struct ilo_builder; struct ilo_context; struct ilo_rasterizer_state; struct ilo_shader_cache; @@ -90,10 +91,12 @@ void ilo_shader_cache_remove(struct ilo_shader_cache *shc, struct ilo_shader_state *shader); -int +void ilo_shader_cache_upload(struct ilo_shader_cache *shc, - struct intel_bo *bo, unsigned offset, - bool incremental); + struct ilo_builder *builder); + +void +ilo_shader_cache_invalidate(struct ilo_shader_cache *shc); struct ilo_shader_state * ilo_shader_create_vs(const struct ilo_dev_info *dev, |