#include "pipe/p_state.h"
#include "util/u_debug.h"
#include "intel/common/gen_debug.h"
+#include "iris_batch.h"
#include "iris_screen.h"
struct iris_bo;
struct iris_uncompiled_shader *progs[MESA_SHADER_STAGES];
+ /** The main batch for rendering */
+ struct iris_batch render_batch;
+
struct {
uint64_t dirty;
unsigned num_viewports; // XXX: can viewports + scissors be different?
struct iris_context *ice = (struct iris_context *) ctx;
iris_update_compiled_shaders(ice);
- //iris_upload_render_state(ice, &ice->batch, info);
- iris_upload_render_state(ice, NULL, info);
+ iris_upload_render_state(ice, &ice->render_batch, info);
}
transfer->layer_stride = 1;
*ptransfer = transfer;
-#if 0
if (!(usage & PIPE_TRANSFER_UNSYNCHRONIZED) &&
- iris_batch_references(&ice->batch, res->bo)) {
- iris_batch_flush(&ice->batch);
+ iris_batch_references(&ice->render_batch, res->bo)) {
+ iris_batch_flush(&ice->render_batch);
}
-#endif
if ((usage & PIPE_TRANSFER_DONTBLOCK) && iris_bo_busy(res->bo))
return NULL;