Mesa (master): i965: Add cache unit -> bo name mapping for more gen6 state objects.

Eric Anholt anholt at kemper.freedesktop.org
Fri May 28 20:23:52 UTC 2010


Module: Mesa
Branch: master
Commit: 828f648ac3b6d32a643cd1188ffbf45a1c7153a3
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=828f648ac3b6d32a643cd1188ffbf45a1c7153a3

Author: Eric Anholt <eric at anholt.net>
Date:   Fri May 28 12:50:55 2010 -0700

i965: Add cache unit -> bo name mapping for more gen6 state objects.

This will help in bufmgr debugging and aub dumping.

---

 src/mesa/drivers/dri/i965/brw_state_cache.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_state_cache.c b/src/mesa/drivers/dri/i965/brw_state_cache.c
index c08cb45..c4431b5 100644
--- a/src/mesa/drivers/dri/i965/brw_state_cache.c
+++ b/src/mesa/drivers/dri/i965/brw_state_cache.c
@@ -386,11 +386,14 @@ brw_init_non_surface_cache(struct brw_context *brw)
    brw_init_cache_id(cache, "CLIP_UNIT", BRW_CLIP_UNIT);
 
    brw_init_cache_id(cache, "CLIP_PROG", BRW_CLIP_PROG);
+   brw_init_cache_id(cache, "CLIP_VP", BRW_CLIP_VP);
 
    brw_init_cache_id(cache, "GS_UNIT", BRW_GS_UNIT);
 
    brw_init_cache_id(cache, "GS_PROG", BRW_GS_PROG);
    brw_init_cache_id(cache, "BLEND_STATE", BRW_BLEND_STATE);
+   brw_init_cache_id(cache, "COLOR_CALC_STATE", BRW_COLOR_CALC_STATE);
+   brw_init_cache_id(cache, "DEPTH_STENCIL_STATE", BRW_DEPTH_STENCIL_STATE);
 }
 
 




More information about the mesa-commit mailing list