diff options
author | Chia-I Wu <[email protected]> | 2013-06-03 15:25:48 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2013-06-07 11:13:16 +0800 |
commit | 5354dc742899c498a97fe6f64cc5d9237beb1e9f (patch) | |
tree | 0e6e88d3de023d20dee84a1cb54fcbbb926adf28 /src/gallium/drivers/ilo/ilo_gpe.h | |
parent | 2d82885d3cd9c5ab90e4777da8dfd723da273cd8 (diff) |
ilo: use emit_SURFACE_STATE() for constant buffers
Introduce ilo_cbuf_cso and initialize it in set_constant_buffer(). As
ilo_view_surface is embedded in ilo_cbuf_cso, switch to emit_SURFACE_STATE()
for constant buffers and remove emit_cbuf_SURFACE_STATE().
Diffstat (limited to 'src/gallium/drivers/ilo/ilo_gpe.h')
-rw-r--r-- | src/gallium/drivers/ilo/ilo_gpe.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gallium/drivers/ilo/ilo_gpe.h b/src/gallium/drivers/ilo/ilo_gpe.h index 1b5a38f5d3c..9103b261c20 100644 --- a/src/gallium/drivers/ilo/ilo_gpe.h +++ b/src/gallium/drivers/ilo/ilo_gpe.h @@ -179,8 +179,13 @@ struct ilo_view_state { unsigned count; }; +struct ilo_cbuf_cso { + struct pipe_resource *resource; + struct ilo_view_surface surface; +}; + struct ilo_cbuf_state { - struct pipe_constant_buffer states[ILO_MAX_CONST_BUFFERS]; + struct ilo_cbuf_cso cso[ILO_MAX_CONST_BUFFERS]; unsigned count; }; |