#include <util/u_dynarray.h>
+#include <pipe/p_state.h>
+
struct lima_context;
struct lima_bo;
+struct lima_dump;
struct pipe_surface;
struct lima_submit_key {
struct pipe_surface *zsbuf;
};
+struct lima_submit_clear {
+ unsigned buffers;
+ uint32_t color_8pc;
+ uint32_t depth;
+ uint32_t stencil;
+ uint64_t color_16pc;
+};
+
+struct lima_submit_fb_info {
+ int width, height;
+ int tiled_w, tiled_h;
+ int shift_w, shift_h;
+ int block_w, block_h;
+ int shift_min;
+};
+
struct lima_submit {
int fd;
struct lima_context *ctx;
struct util_dynarray plbu_cmd_head;
unsigned resolve;
+
+ int pp_max_stack_size;
+
+ struct pipe_scissor_state damage_rect;
+
+ struct lima_submit_clear clear;
+
+ struct lima_submit_fb_info fb;
+
+ /* for dump command stream */
+ struct lima_dump *dump;
};
struct lima_submit *lima_submit_get(struct lima_context *ctx);