summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r600/r600_pipe.h
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2012-09-10 00:56:45 +0200
committerMarek Olšák <[email protected]>2012-09-13 20:18:44 +0200
commit1bce17ee01fb2ad77e37a600c2cacda57d0067ef (patch)
tree9fd51779ab7d541bd948698ed9c781f5dd148281 /src/gallium/drivers/r600/r600_pipe.h
parent3bffd8a5eb30d993c7f56a12b9936e17fb4523de (diff)
r600g: put constant buffer state into an array indexed by shader type
to easily and robustly handle multiple shader stages Reviewed-by: Jerome Glisse <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r600/r600_pipe.h')
-rw-r--r--src/gallium/drivers/r600/r600_pipe.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gallium/drivers/r600/r600_pipe.h b/src/gallium/drivers/r600/r600_pipe.h
index 8fb0972bfd0..57861358b35 100644
--- a/src/gallium/drivers/r600/r600_pipe.h
+++ b/src/gallium/drivers/r600/r600_pipe.h
@@ -372,8 +372,7 @@ struct r600_context {
struct r600_vertexbuf_state vertex_buffer_state;
/** Vertex buffers for compute shaders */
struct r600_vertexbuf_state cs_vertex_buffer_state;
- struct r600_constbuf_state vs_constbuf_state;
- struct r600_constbuf_state ps_constbuf_state;
+ struct r600_constbuf_state constbuf_state[PIPE_SHADER_TYPES];
struct r600_textures_info vs_samplers;
struct r600_textures_info ps_samplers;
struct r600_seamless_cube_map seamless_cube_map;