From 4228cf37467688dc4f6a10c8d2c42c6243f789e9 Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Wed, 29 May 2013 15:43:38 +0800 Subject: ilo: switch to ilo states for shaders and resources Define and use struct ilo_sampler_state; struct ilo_view_state; struct ilo_cbuf_state; struct ilo_resource_state; struct ilo_global_binding; in ilo_context. --- src/gallium/drivers/ilo/ilo_shader.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/gallium/drivers/ilo/ilo_shader.c') diff --git a/src/gallium/drivers/ilo/ilo_shader.c b/src/gallium/drivers/ilo/ilo_shader.c index 86268b1a9f0..76ba7f04c66 100644 --- a/src/gallium/drivers/ilo/ilo_shader.c +++ b/src/gallium/drivers/ilo/ilo_shader.c @@ -72,15 +72,15 @@ ilo_shader_variant_init(struct ilo_shader_variant *variant, break; } - num_views = ilo->sampler_views[info->type].num_views; + num_views = ilo->view[info->type].count; assert(info->num_samplers <= num_views); variant->num_sampler_views = info->num_samplers; for (i = 0; i < info->num_samplers; i++) { const struct pipe_sampler_view *view = - ilo->sampler_views[info->type].views[i]; + ilo->view[info->type].states[i]; const struct pipe_sampler_state *sampler = - ilo->samplers[info->type].samplers[i]; + ilo->sampler[info->type].states[i]; if (view) { variant->sampler_view_swizzles[i].r = view->swizzle_r; -- cgit v1.2.3