diff options
author | Chia-I Wu <[email protected]> | 2013-12-20 14:45:59 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2014-01-08 18:11:34 +0800 |
commit | 011fde4bf2b4337cb07ddc1af8b4398fef9b3648 (patch) | |
tree | ea0a06252ab814934fb9bddd93d939f1b3165cdc /src/gallium/drivers/ilo/ilo_gpe.h | |
parent | 0a2a221d019651c98dabe6773e56118ae0009f8d (diff) |
ilo: offset to layers only when necessary
GEN6 has several requirements regarding the LOD/Depth/Width/Height of the
render targets and the depth buffer. We used to offset to the layers in
question unconditionally to meet the requirements. With this commit,
offseting is done only when the requirements are not met.
Diffstat (limited to 'src/gallium/drivers/ilo/ilo_gpe.h')
-rw-r--r-- | src/gallium/drivers/ilo/ilo_gpe.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gallium/drivers/ilo/ilo_gpe.h b/src/gallium/drivers/ilo/ilo_gpe.h index 9347d889d83..d8ddd06eed0 100644 --- a/src/gallium/drivers/ilo/ilo_gpe.h +++ b/src/gallium/drivers/ilo/ilo_gpe.h @@ -257,7 +257,9 @@ struct ilo_fb_state { struct pipe_framebuffer_state state; struct ilo_zs_surface null_zs; + unsigned num_samples; + bool offset_to_layers; }; struct ilo_global_binding { @@ -525,4 +527,9 @@ ilo_gpe_init_fs_cso(const struct ilo_dev_info *dev, } } +void +ilo_gpe_init_fb(const struct ilo_dev_info *dev, + const struct pipe_framebuffer_state *state, + struct ilo_fb_state *fb); + #endif /* ILO_GPE_H */ |