lima: use per submit dump file
[mesa.git] / src / gallium / drivers / lima / lima_submit.h
index 5aafff8bf9a1126b7b067ddb8610bcda23274aec..538ccfd9aff0a5dbf99afe7adaf7bc97e956e8c4 100644 (file)
 
 #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 {
@@ -38,6 +41,22 @@ 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;
@@ -52,6 +71,17 @@ struct lima_submit {
    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);