aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2014-05-18 20:48:16 -0700
committerKenneth Graunke <[email protected]>2014-07-02 12:45:59 -0700
commita6af5602afc595b57672ae9a2020dcd4ef1319ff (patch)
treedad46439b513b15fce967349942f53ca58e6ba56 /src/mesa/drivers
parentccf787812655beb2633495d75474783c279dc318 (diff)
i965: Fix stale comments about the state cache.
This changed in the state streaming work years ago. Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/dri/i965/brw_cc.c2
-rw-r--r--src/mesa/drivers/dri/i965/brw_context.h9
2 files changed, 9 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_cc.c b/src/mesa/drivers/dri/i965/brw_cc.c
index 2f4062b9b0f..289f65b5a8a 100644
--- a/src/mesa/drivers/dri/i965/brw_cc.c
+++ b/src/mesa/drivers/dri/i965/brw_cc.c
@@ -97,7 +97,7 @@ brw_fix_xRGB_alpha(GLenum function)
}
/**
- * Creates the state cache entry for the given CC unit key.
+ * Creates a CC unit packet from the current blend state.
*/
static void upload_cc_unit(struct brw_context *brw)
{
diff --git a/src/mesa/drivers/dri/i965/brw_context.h b/src/mesa/drivers/dri/i965/brw_context.h
index bc272c5c009..f13d99cf8f5 100644
--- a/src/mesa/drivers/dri/i965/brw_context.h
+++ b/src/mesa/drivers/dri/i965/brw_context.h
@@ -230,7 +230,14 @@ struct brw_state_flags {
* State update flags signalled as the result of brw_tracked_state updates
*/
GLuint brw;
- /** State update flags signalled by brw_state_cache.c searches */
+ /**
+ * State update flags that used to be signalled by brw_state_cache.c
+ * searches.
+ *
+ * Now almost all of that state is just streamed out on demand, but the
+ * flags for those state blobs updating have stayed in the same bitfield.
+ * brw_state_cache.c still flags CACHE_NEW_*_PROG.
+ */
GLuint cache;
};