void
ilo_3d_cp_submitted(struct ilo_3d *hw3d)
{
- if (ilo_debug & ILO_DEBUG_3D)
- ilo_builder_decode(&hw3d->cp->builder);
-
/* invalidate the pipeline */
ilo_3d_pipeline_invalidate(hw3d->pipeline,
ILO_3D_PIPELINE_INVALIDATE_BATCH_BO |
enum ilo_builder_item_type item,
unsigned offset, unsigned size)
{
- if (unlikely(ilo_debug & ILO_DEBUG_3D)) {
+ if (unlikely(ilo_debug & ILO_DEBUG_BATCH)) {
if (!ilo_builder_writer_record(builder, which, item, offset, size)) {
builder->unrecoverable_error = true;
builder->writers[which].item_used = 0;
#define ILO_PRIM_MAX (PIPE_PRIM_MAX + 1)
enum ilo_debug {
- ILO_DEBUG_3D = 1 << 0,
+ ILO_DEBUG_BATCH = 1 << 0,
ILO_DEBUG_VS = 1 << 1,
ILO_DEBUG_GS = 1 << 2,
ILO_DEBUG_FS = 1 << 3,
cp->last_submitted_bo = bo;
intel_bo_reference(cp->last_submitted_bo);
+ if (ilo_debug & ILO_DEBUG_BATCH)
+ ilo_builder_decode(&cp->builder);
+
if (cp->submit_callback)
cp->submit_callback(cp, cp->submit_callback_data);
}
int ilo_debug;
static const struct debug_named_value ilo_debug_flags[] = {
- { "3d", ILO_DEBUG_3D, "Dump 3D commands and states" },
+ { "batch", ILO_DEBUG_BATCH, "Dump batch/state/surface/instruction buffers" },
{ "vs", ILO_DEBUG_VS, "Dump vertex shaders" },
{ "gs", ILO_DEBUG_GS, "Dump geometry shaders" },
{ "fs", ILO_DEBUG_FS, "Dump fragment shaders" },