diff options
author | Chia-I Wu <[email protected]> | 2015-05-20 21:44:30 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2015-06-15 01:06:45 +0800 |
commit | 745ef2c07b23e1cf227eb26871fc464198b956e8 (patch) | |
tree | 17a02351fdc3be5fa93f11a4ad9cf2cdd4b0785f /src/gallium/drivers/ilo/ilo_state.h | |
parent | c10c1ac0cfb0ae42742f369d9f3fa2f4fba8639a (diff) |
ilo: replace ilo_view_surface with ilo_state_surface
Diffstat (limited to 'src/gallium/drivers/ilo/ilo_state.h')
-rw-r--r-- | src/gallium/drivers/ilo/ilo_state.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/gallium/drivers/ilo/ilo_state.h b/src/gallium/drivers/ilo/ilo_state.h index fd0a3156ebc..9a7d196a2a6 100644 --- a/src/gallium/drivers/ilo/ilo_state.h +++ b/src/gallium/drivers/ilo/ilo_state.h @@ -29,6 +29,8 @@ #define ILO_STATE_H #include "core/ilo_state_3d.h" +#include "core/ilo_state_surface.h" +#include "core/ilo_state_zs.h" #include "pipe/p_state.h" #include "util/u_dynarray.h" @@ -121,6 +123,39 @@ enum ilo_dirty_flags { struct ilo_context; +struct ilo_cbuf_cso { + struct pipe_resource *resource; + struct ilo_state_surface_buffer_info info; + struct ilo_state_surface surface; + + /* + * this CSO is not so constant because user buffer needs to be uploaded in + * finalize_constant_buffers() + */ + const void *user_buffer; +}; + +struct ilo_cbuf_state { + struct ilo_cbuf_cso cso[ILO_MAX_CONST_BUFFERS]; + uint32_t enabled_mask; +}; + +struct ilo_resource_state { + struct pipe_surface *states[PIPE_MAX_SHADER_RESOURCES]; + unsigned count; +}; + +struct ilo_view_cso { + struct pipe_sampler_view base; + + struct ilo_state_surface surface; +}; + +struct ilo_view_state { + struct pipe_sampler_view *states[ILO_MAX_SAMPLER_VIEWS]; + unsigned count; +}; + struct ilo_global_binding_cso { struct pipe_resource *resource; uint32_t *handle; |