summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeonsi/si_pipe.h
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2015-08-29 14:54:58 +0200
committerMarek Olšák <[email protected]>2015-09-01 21:51:14 +0200
commit12b205341acd2d95887099e14a217902fe21a476 (patch)
tree035b8973bd40845199e897cd0ef221ced92c9dd2 /src/gallium/drivers/radeonsi/si_pipe.h
parent0c2eed0edec877584c9362bd9cb9004ff10a8b91 (diff)
radeonsi: convert clip state into an atom
Reducing calloc overhead. Reviewed-by: Alex Deucher <[email protected]> Acked-by: Christian König <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_pipe.h')
-rw-r--r--src/gallium/drivers/radeonsi/si_pipe.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_pipe.h b/src/gallium/drivers/radeonsi/si_pipe.h
index 9be4aa7d5b5..829acf735f6 100644
--- a/src/gallium/drivers/radeonsi/si_pipe.h
+++ b/src/gallium/drivers/radeonsi/si_pipe.h
@@ -131,6 +131,11 @@ struct si_framebuffer {
bool dirty_zsbuf;
};
+struct si_clip_state {
+ struct r600_atom atom;
+ struct pipe_clip_state state;
+};
+
struct si_scissors {
struct r600_atom atom;
unsigned dirty_mask;
@@ -184,6 +189,7 @@ struct si_context {
struct si_scissors scissors;
struct si_viewports viewports;
+ struct si_clip_state clip_state;
struct r600_atom clip_regs;
struct r600_atom msaa_sample_locs;
struct r600_atom msaa_config;