#include "draw/draw_vbuf.h"
#include "util/u_rect.h"
+#include "util/u_pack_color.h"
#define LP_SETUP_NEW_FS 0x01
#define LP_SETUP_NEW_CONSTANTS 0x02
#define LP_SETUP_NEW_BLEND_COLOR 0x04
#define LP_SETUP_NEW_SCISSOR 0x08
+#define LP_SETUP_NEW_VIEWPORTS 0x10
struct lp_setup_variant;
/** Max number of scenes */
-#define MAX_SCENES 2
+/* XXX: make multiple scenes per context work, see lp_setup_rasterize_scene */
+#define MAX_SCENES 1
struct lp_scene *scene; /**< current scene being built */
struct lp_fence *last_fence;
- struct llvmpipe_query *active_query[PIPE_QUERY_TYPES];
+ struct llvmpipe_query *active_queries[LP_MAX_ACTIVE_BINNED_QUERIES];
+ unsigned active_binned_queries;
- boolean subdivide_large_triangles;
boolean flatshade_first;
boolean ccw_is_frontface;
boolean scissor_test;
boolean point_size_per_vertex;
boolean rasterizer_discard;
unsigned cullmode;
+ unsigned bottom_edge_rule;
float pixel_offset;
float line_width;
float point_size;
float psize;
+ unsigned viewport_index_slot;
+ unsigned layer_slot;
+ int face_slot;
struct pipe_framebuffer_state fb;
struct u_rect framebuffer;
- struct u_rect scissor;
- struct u_rect draw_region; /* intersection of fb & scissor */
+ struct u_rect scissors[PIPE_MAX_VIEWPORTS];
+ struct u_rect draw_regions[PIPE_MAX_VIEWPORTS]; /* intersection of fb & scissor */
+ struct lp_jit_viewport viewports[PIPE_MAX_VIEWPORTS];
struct {
unsigned flags;
- union lp_rast_cmd_arg color; /**< lp_rast_clear_color() cmd */
- unsigned zsmask;
- unsigned zsvalue; /**< lp_rast_clear_zstencil() cmd */
+ union util_color color_val[PIPE_MAX_COLOR_BUFS];
+ uint64_t zsmask;
+ uint64_t zsvalue; /**< lp_rast_clear_zstencil() cmd */
} clear;
enum setup_state {
lp_setup_bin_triangle( struct lp_setup_context *setup,
struct lp_rast_triangle *tri,
const struct u_rect *bbox,
- int nr_planes );
+ int nr_planes,
+ unsigned scissor_index );
#endif