diff options
author | Chia-I Wu <[email protected]> | 2013-06-26 12:26:02 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2013-06-26 16:42:45 +0800 |
commit | 3eb6754e94c623c4c2393f23aeaafa933bee154e (patch) | |
tree | 1df7b9df4f461ffc13cec2d835a3afc1a111e8b2 /src/gallium/drivers/ilo/ilo_gpe.h | |
parent | 79385950f383771b9021f7b5f016da09a80600d4 (diff) |
ilo: support PIPE_CAP_USER_CONSTANT_BUFFERS
We need it for HUD support, and will need it for push constants in the future.
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 5e313abd386..7825e58a40f 100644 --- a/src/gallium/drivers/ilo/ilo_gpe.h +++ b/src/gallium/drivers/ilo/ilo_gpe.h @@ -207,6 +207,13 @@ struct ilo_view_state { struct ilo_cbuf_cso { struct pipe_resource *resource; struct ilo_view_surface surface; + + /* + * this CSO is not so constant because user buffer needs to be uploaded in + * finalize_constant_buffers() + */ + const void *user_buffer; + unsigned user_buffer_size; }; struct ilo_cbuf_state { |