summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/draw/draw_private.h
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2023-06-07 15:39:11 +1000
committerMarge Bot <emma+marge@anholt.net>2023-06-08 02:10:54 +0000
commitb1faeae4fe85d118e6017f7bb8e5e2d13de04a28 (patch)
treebf0cd2b1ef66a3c52b6c8a5b549fd23fee8089e2 /src/gallium/auxiliary/draw/draw_private.h
parent73f7948298611d4c15e74799a832d6b0c0f114a0 (diff)
draw: repack some members of context.
this just fills a hole in Reviewed-by: Roland Scheidegger <sroland@vmware.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23487>
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_private.h')
-rw-r--r--src/gallium/auxiliary/draw/draw_private.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/gallium/auxiliary/draw/draw_private.h b/src/gallium/auxiliary/draw/draw_private.h
index e0cc8b51e9d..2bd3e1ddc2a 100644
--- a/src/gallium/auxiliary/draw/draw_private.h
+++ b/src/gallium/auxiliary/draw/draw_private.h
@@ -177,11 +177,12 @@ struct draw_context
/* Current active frontend */
struct draw_pt_front_end *frontend;
enum mesa_prim prim;
+ ubyte vertices_per_patch;
+ boolean rebind_parameters;
+
unsigned opt; /**< bitmask of PT_x flags */
unsigned eltSize; /* saved eltSize for flushing */
unsigned viewid; /* saved viewid for flushing */
- ubyte vertices_per_patch;
- boolean rebind_parameters;
struct {
struct draw_pt_middle_end *fetch_shade_emit;
@@ -208,6 +209,9 @@ struct draw_context
struct pipe_vertex_element vertex_element[PIPE_MAX_ATTRIBS];
unsigned nr_vertex_elements;
+ boolean test_fse; /* enable FSE even though its not correct (eg for softpipe) */
+ boolean no_fse; /* disable FSE even when it is correct */
+
/* user-space vertex data, buffers */
struct {
/** vertex element/index buffer (ex: glDrawElements) */
@@ -233,9 +237,6 @@ struct draw_context
/* pointer to planes */
float (*planes)[DRAW_TOTAL_CLIP_PLANES][4];
} user;
-
- boolean test_fse; /* enable FSE even though its not correct (eg for softpipe) */
- boolean no_fse; /* disable FSE even when it is correct */
} pt;
struct {
@@ -260,6 +261,8 @@ struct draw_context
boolean guard_band_points_lines_xy;
boolean dump_vs;
+ boolean identity_viewport;
+ boolean bypass_viewport;
/** Depth format and bias related settings. */
boolean floating_point_depth;
@@ -274,8 +277,6 @@ struct draw_context
void *rasterizer_no_cull[2][2][2];
struct pipe_viewport_state viewports[PIPE_MAX_VIEWPORTS];
- boolean identity_viewport;
- boolean bypass_viewport;
/** Vertex shader state */
struct {
@@ -382,10 +383,10 @@ struct draw_context
struct pipe_query_data_pipeline_statistics statistics;
boolean collect_statistics;
+ bool collect_primgen;
float default_outer_tess_level[4];
float default_inner_tess_level[2];
- bool collect_primgen;
struct draw_assembler *ia;