#include "util/format/u_format.h"
#include "util/u_prim.h"
#include "util/u_prim_restart.h"
+#include "util/u_draw.h"
#include "indices/u_primconvert.h"
#include "tgsi/tgsi_parse.h"
#include "tgsi/tgsi_from_mesa.h"
if (!panfrost_render_condition_check(ctx))
return;
+ /* Emulate indirect draws when debugging */
+ if (dev->debug & PAN_DBG_NOINDIRECT && indirect && indirect->buffer) {
+ assert(num_draws == 1);
+ util_draw_indirect(pipe, info, indirect);
+ return;
+ }
+
/* Do some common setup */
struct panfrost_batch *batch = panfrost_get_batch_for_fbo(ctx);
{"nocrc", PAN_DBG_NO_CRC, "Disable transaction elimination"},
{"msaa16", PAN_DBG_MSAA16, "Enable MSAA 8x and 16x support"},
{"panblit", PAN_DBG_PANBLIT, "Use pan_blitter instead of u_blitter"},
+ {"noindirect", PAN_DBG_NOINDIRECT, "Emulate indirect draws on the CPU"},
DEBUG_NAMED_VALUE_END
};
#define PAN_DBG_NO_AFBC 0x0200
#define PAN_DBG_MSAA16 0x0400
#define PAN_DBG_PANBLIT 0x0800
+#define PAN_DBG_NOINDIRECT 0x1000
#endif /* PAN_UTIL_H */