summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2011-07-08 13:02:28 -0700
committerEric Anholt <[email protected]>2011-07-11 09:27:27 -0700
commit6e17a01e427bb621f606b4237fae58c446de9a70 (patch)
tree94eac0878665ca9bcc71eaab91f5e45e488e8470 /src/mesa/drivers
parent93c7a5da1121a4aebff2fc889af229cbfb7006f5 (diff)
i965/gen6: Add state dumping for the scissor packet.
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/dri/i965/brw_state_dump.c16
1 files changed, 16 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 391f73dea64..e78e48f9ee9 100644
--- a/src/mesa/drivers/dri/i965/brw_state_dump.c
+++ b/src/mesa/drivers/dri/i965/brw_state_dump.c
@@ -354,6 +354,19 @@ static void dump_blend_state(struct brw_context *brw, uint32_t offset)
batch_out(brw, name, offset, 1, "\n");
}
+static void
+dump_scissor(struct brw_context *brw, uint32_t offset)
+{
+ const char *name = "SCISSOR";
+ struct intel_context *intel = &brw->intel;
+ struct gen6_scissor_rect *scissor = intel->batch.bo->virtual + offset;
+
+ batch_out(brw, name, offset, 0, "xmin %d, ymin %d\n",
+ scissor->xmin, scissor->ymin);
+ batch_out(brw, name, offset, 1, "xmax %d, ymax %d\n",
+ scissor->xmax, scissor->ymax);
+}
+
static void dump_binding_table(struct brw_context *brw, uint32_t offset,
uint32_t size)
{
@@ -477,6 +490,9 @@ dump_state_batch(struct brw_context *brw)
case AUB_TRACE_SAMPLER_DEFAULT_COLOR:
dump_sdc(brw, offset);
break;
+ case AUB_TRACE_SCISSOR_STATE:
+ dump_scissor(brw, offset);
+ break;
default:
break;
}