summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/softpipe/sp_context.h
diff options
context:
space:
mode:
authorRoland Scheidegger <[email protected]>2015-12-19 03:37:17 +0100
committerRoland Scheidegger <[email protected]>2016-01-07 01:57:21 +0100
commit892e2d1395375c6f904af5250371c8d2784c8762 (patch)
tree62d8b8387356d868942271cc7edf2993c86a58f4 /src/gallium/drivers/softpipe/sp_context.h
parentb64d008052a0111e3170169c4bed08693d94b220 (diff)
softpipe: don't abuse the draw vertex_info struct for something different
softpipe would calculate two "vertex layouts". The second one was however just used for internal purposes, draw would know nothing about it even though it looked exactly the same as the other one we tell draw about. So, store that information separately as this was just confusing. Reviewed-by: Brian Paul <[email protected]> Reviewed-by: Edward O'Callaghan <[email protected]>
Diffstat (limited to 'src/gallium/drivers/softpipe/sp_context.h')
-rw-r--r--src/gallium/drivers/softpipe/sp_context.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/softpipe/sp_context.h b/src/gallium/drivers/softpipe/sp_context.h
index 8e5e24217a5..188cdeaf76f 100644
--- a/src/gallium/drivers/softpipe/sp_context.h
+++ b/src/gallium/drivers/softpipe/sp_context.h
@@ -37,6 +37,7 @@
#include "draw/draw_vertex.h"
#include "sp_quad_pipe.h"
+#include "sp_setup.h"
/** Do polygon stipple in the draw module? */
@@ -117,7 +118,7 @@ struct softpipe_context {
unsigned const_buffer_size[PIPE_SHADER_TYPES][PIPE_MAX_CONSTANT_BUFFERS];
/** Vertex format */
- struct vertex_info vertex_info;
+ struct sp_setup_info setup_info;
struct vertex_info vertex_info_vbuf;
/** Which vertex shader output slot contains point size */