diff options
author | Eric Anholt <[email protected]> | 2010-11-16 07:41:40 +0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2010-11-18 09:18:47 +0800 |
commit | 3c8db58a17581504018bedf56bacef66fe30a7ba (patch) | |
tree | 4b761f43a186c412106c88600b9c2cea8eefa81f /src/mesa | |
parent | 95addca0190032d49bd576ea1c486e34c1e3c76f (diff) |
i965: Add dumping of the sampler default color.
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_state_dump.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_state_dump.c b/src/mesa/drivers/dri/i965/brw_state_dump.c index c720c95a87b..e2628874712 100644 --- a/src/mesa/drivers/dri/i965/brw_state_dump.c +++ b/src/mesa/drivers/dri/i965/brw_state_dump.c @@ -147,6 +147,7 @@ static void dump_wm_sampler_state(struct brw_context *brw) for (i = 0; i < BRW_MAX_TEX_UNIT; i++) { unsigned int offset; struct brw_sampler_state *samp; + struct brw_sampler_default_color *sdc; char name[20]; if (!ctx->Texture.Unit[i]._ReallyEnabled) { @@ -164,6 +165,16 @@ static void dump_wm_sampler_state(struct brw_context *brw) state_out(name, samp, offset, 1, "wrapping, lod\n"); state_out(name, samp, offset, 2, "default color pointer\n"); state_out(name, samp, offset, 3, "chroma key, aniso\n"); + + sprintf(name, " WM SDC%d", i); + + drm_intel_bo_map(brw->wm.sdc_bo[i], GL_FALSE); + sdc = (struct brw_sampler_default_color *)(brw->wm.sdc_bo[i]->virtual); + state_out(name, sdc, brw->wm.sdc_bo[i]->offset, 0, "r\n"); + state_out(name, sdc, brw->wm.sdc_bo[i]->offset, 1, "g\n"); + state_out(name, sdc, brw->wm.sdc_bo[i]->offset, 2, "b\n"); + state_out(name, sdc, brw->wm.sdc_bo[i]->offset, 3, "a\n"); + drm_intel_bo_unmap(brw->wm.sdc_bo[i]); } drm_intel_bo_unmap(brw->wm.sampler_bo); } |