summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/ilo/ilo_gpe.h
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2013-06-26 18:50:01 +0800
committerChia-I Wu <[email protected]>2013-06-26 21:50:26 +0800
commitc610b67972b4a06a25699623d1134b197ae277e0 (patch)
tree520cf079a990e1ddbe6de7a3849073f768541bf9 /src/gallium/drivers/ilo/ilo_gpe.h
parent9aebad618c0aab527a0b838ce0a79ffa6dd426bb (diff)
ilo: use a bitmask for enabled constant buffers
Looping over 4 * 13 constant buffers while in most cases only two are enabled is stupid.
Diffstat (limited to 'src/gallium/drivers/ilo/ilo_gpe.h')
-rw-r--r--src/gallium/drivers/ilo/ilo_gpe.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/ilo/ilo_gpe.h b/src/gallium/drivers/ilo/ilo_gpe.h
index aa979f31a09..1f5f47cacaa 100644
--- a/src/gallium/drivers/ilo/ilo_gpe.h
+++ b/src/gallium/drivers/ilo/ilo_gpe.h
@@ -221,6 +221,7 @@ struct ilo_cbuf_cso {
struct ilo_cbuf_state {
struct ilo_cbuf_cso cso[ILO_MAX_CONST_BUFFERS];
+ uint32_t enabled_mask;
unsigned count;
};