diff options
author | Chia-I Wu <[email protected]> | 2013-06-06 11:28:02 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2013-06-07 11:13:16 +0800 |
commit | 2d82885d3cd9c5ab90e4777da8dfd723da273cd8 (patch) | |
tree | 8994f1566557fdc8a92b914c6b02ee73bcd06bf4 /src/gallium/drivers/ilo/ilo_shader.c | |
parent | 39e947569e5c0e159045aa5771e0ee5509eedee4 (diff) |
ilo: add emit_SURFACE_STATE() for sampler views
Introduce ilo_view_cso and initialize it in create_sampler_view(). Add
emit_SURFACE_STATE() to GPE, which can emit SURFACE_STATE from
ilo_view_surface.
Diffstat (limited to 'src/gallium/drivers/ilo/ilo_shader.c')
-rw-r--r-- | src/gallium/drivers/ilo/ilo_shader.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gallium/drivers/ilo/ilo_shader.c b/src/gallium/drivers/ilo/ilo_shader.c index 754b59baec2..9c692f26e60 100644 --- a/src/gallium/drivers/ilo/ilo_shader.c +++ b/src/gallium/drivers/ilo/ilo_shader.c @@ -77,10 +77,8 @@ ilo_shader_variant_init(struct ilo_shader_variant *variant, variant->num_sampler_views = info->num_samplers; for (i = 0; i < info->num_samplers; i++) { - const struct pipe_sampler_view *view = - ilo->view[info->type].states[i]; - const struct ilo_sampler_cso *sampler = - ilo->sampler[info->type].cso[i]; + const struct pipe_sampler_view *view = ilo->view[info->type].states[i]; + const struct ilo_sampler_cso *sampler = ilo->sampler[info->type].cso[i]; if (view) { variant->sampler_view_swizzles[i].r = view->swizzle_r; |