diff options
author | Chia-I Wu <[email protected]> | 2013-12-21 00:31:33 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2014-01-08 18:11:34 +0800 |
commit | 0a2a221d019651c98dabe6773e56118ae0009f8d (patch) | |
tree | 4b46f10fd285fa338425631be0f113c3703d22db /src/gallium/drivers/ilo/ilo_state.c | |
parent | 8d9f5d57e25af3de0e35e5c7f3c0bff03b080ba7 (diff) |
ilo: allow ilo_zs_surface to skip layer offsetting
Make offset to layer optional in ilo_gpe_init_zs_surface.
Diffstat (limited to 'src/gallium/drivers/ilo/ilo_state.c')
-rw-r--r-- | src/gallium/drivers/ilo/ilo_state.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/ilo/ilo_state.c b/src/gallium/drivers/ilo/ilo_state.c index 8437ab171c5..4953e52ec68 100644 --- a/src/gallium/drivers/ilo/ilo_state.c +++ b/src/gallium/drivers/ilo/ilo_state.c @@ -1000,7 +1000,7 @@ ilo_create_surface(struct pipe_context *pipe, 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); + true, &surf->u.zs); } return &surf->base; @@ -1189,8 +1189,8 @@ ilo_init_states(struct ilo_context *ilo) { ilo_gpe_set_scissor_null(ilo->dev, &ilo->scissor); - ilo_gpe_init_zs_surface(ilo->dev, NULL, - PIPE_FORMAT_NONE, 0, 0, 1, &ilo->fb.null_zs); + ilo_gpe_init_zs_surface(ilo->dev, NULL, PIPE_FORMAT_NONE, + 0, 0, 1, false, &ilo->fb.null_zs); ilo->dirty = ILO_DIRTY_ALL; } |