diff options
author | Roland Scheidegger <[email protected]> | 2015-12-19 03:37:17 +0100 |
---|---|---|
committer | Roland Scheidegger <[email protected]> | 2016-01-07 01:57:21 +0100 |
commit | 892e2d1395375c6f904af5250371c8d2784c8762 (patch) | |
tree | 62d8b8387356d868942271cc7edf2993c86a58f4 /src/gallium/drivers/softpipe/sp_setup.h | |
parent | b64d008052a0111e3170169c4bed08693d94b220 (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_setup.h')
-rw-r--r-- | src/gallium/drivers/softpipe/sp_setup.h | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/src/gallium/drivers/softpipe/sp_setup.h b/src/gallium/drivers/softpipe/sp_setup.h index 191494acbb8..8bb50b98fec 100644 --- a/src/gallium/drivers/softpipe/sp_setup.h +++ b/src/gallium/drivers/softpipe/sp_setup.h @@ -30,11 +30,19 @@ struct setup_context; struct softpipe_context; +struct sp_setup_info { + unsigned valid; + struct { + unsigned interp:8; /**< INTERP_X */ + unsigned src_index:8; + } attrib[PIPE_MAX_SHADER_OUTPUTS]; +}; + void -sp_setup_tri( struct setup_context *setup, - const float (*v0)[4], - const float (*v1)[4], - const float (*v2)[4] ); +sp_setup_tri(struct setup_context *setup, + const float (*v0)[4], + const float (*v1)[4], + const float (*v2)[4]); void sp_setup_line(struct setup_context *setup, |