i965/gen6: Add state dumping for the scissor packet.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
93c7a5da11
commit
6e17a01e42
|
@ -354,6 +354,19 @@ static void dump_blend_state(struct brw_context *brw, uint32_t offset)
|
||||||
batch_out(brw, name, offset, 1, "\n");
|
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,
|
static void dump_binding_table(struct brw_context *brw, uint32_t offset,
|
||||||
uint32_t size)
|
uint32_t size)
|
||||||
{
|
{
|
||||||
|
@ -477,6 +490,9 @@ dump_state_batch(struct brw_context *brw)
|
||||||
case AUB_TRACE_SAMPLER_DEFAULT_COLOR:
|
case AUB_TRACE_SAMPLER_DEFAULT_COLOR:
|
||||||
dump_sdc(brw, offset);
|
dump_sdc(brw, offset);
|
||||||
break;
|
break;
|
||||||
|
case AUB_TRACE_SCISSOR_STATE:
|
||||||
|
dump_scissor(brw, offset);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue