diff options
author | Chia-I Wu <[email protected]> | 2015-05-17 11:55:05 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2015-06-14 15:43:20 +0800 |
commit | f9d2bbe967fb1fbbe7102c0765f067b3155f5ca6 (patch) | |
tree | 7b94b767df491ece0ed852db4d09db9c83efe1c5 /src/gallium/drivers/ilo/ilo_state.c | |
parent | 9da9cf729ff74684902cbb4b53b5cccd442df28e (diff) |
ilo: add pipe_texture_target to ilo_image
Save the target in ilo_image instead of passing it around.
Diffstat (limited to 'src/gallium/drivers/ilo/ilo_state.c')
-rw-r--r-- | src/gallium/drivers/ilo/ilo_state.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/gallium/drivers/ilo/ilo_state.c b/src/gallium/drivers/ilo/ilo_state.c index 7627fcf7c96..3865e15bfb1 100644 --- a/src/gallium/drivers/ilo/ilo_state.c +++ b/src/gallium/drivers/ilo/ilo_state.c @@ -1019,8 +1019,7 @@ ilo_create_sampler_view(struct pipe_context *pipe, "not created for sampling\n"); } - ilo_gpe_init_view_surface_for_image(dev, &tex->image, - tex->base.target, templ->format, + ilo_gpe_init_view_surface_for_image(dev, &tex->image, templ->format, templ->u.tex.first_level, templ->u.tex.last_level - templ->u.tex.first_level + 1, templ->u.tex.first_layer, @@ -1066,8 +1065,7 @@ ilo_create_surface(struct pipe_context *pipe, /* relax this? */ assert(tex->base.target != PIPE_BUFFER); - ilo_gpe_init_view_surface_for_image(dev, - &tex->image, tex->base.target, + ilo_gpe_init_view_surface_for_image(dev, &tex->image, templ->format, templ->u.tex.level, 1, templ->u.tex.first_layer, templ->u.tex.last_layer - templ->u.tex.first_layer + 1, @@ -1077,7 +1075,7 @@ ilo_create_surface(struct pipe_context *pipe, ilo_gpe_init_zs_surface(dev, &tex->image, (tex->separate_s8) ? &tex->separate_s8->image : NULL, - tex->base.target, templ->format, + templ->format, templ->u.tex.level, templ->u.tex.first_layer, templ->u.tex.last_layer - templ->u.tex.first_layer + 1, &surf->u.zs); @@ -1292,7 +1290,7 @@ ilo_state_vector_init(const struct ilo_dev *dev, { ilo_gpe_set_scissor_null(dev, &vec->scissor); - ilo_gpe_init_zs_surface(dev, NULL, NULL, PIPE_TEXTURE_2D, + ilo_gpe_init_zs_surface(dev, NULL, NULL, PIPE_FORMAT_NONE, 0, 0, 1, &vec->fb.null_zs); util_dynarray_init(&vec->global_binding.bindings); |