iris_init_program_cache(ice);
iris_init_batch(&ice->render_batch, screen, &ice->dbg, I915_EXEC_RENDER);
+ iris_upload_initial_gpu_state(&ice->render_batch);
return ctx;
}
void iris_setup_state_base_address(struct iris_context *ice,
struct iris_batch *batch,
struct iris_bo *instruction_bo);
+void iris_upload_initial_gpu_state(struct iris_batch *batch);
void iris_upload_render_state(struct iris_context *ice,
struct iris_batch *batch,
const struct pipe_draw_info *draw);
return (struct iris_address) { .bo = bo, .offset = offset };
}
-static void
-iris_upload_initial_gpu_state(struct iris_context *ice,
- struct iris_batch *batch)
+void
+iris_upload_initial_gpu_state(struct iris_batch *batch)
{
iris_emit_cmd(batch, GENX(3DSTATE_DRAWING_RECTANGLE), rect) {
rect.ClippedDrawingRectangleXMax = UINT16_MAX;