OSDN Git Service

softpipe: don't abuse the draw vertex_info struct for something different
authorRoland Scheidegger <sroland@vmware.com>
Sat, 19 Dec 2015 02:37:17 +0000 (03:37 +0100)
committerRoland Scheidegger <sroland@vmware.com>
Thu, 7 Jan 2016 00:57:21 +0000 (01:57 +0100)
commit892e2d1395375c6f904af5250371c8d2784c8762
tree62d8b8387356d868942271cc7edf2993c86a58f4
parentb64d008052a0111e3170169c4bed08693d94b220
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 <brianp@vmware.com>
Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
src/gallium/drivers/softpipe/sp_context.h
src/gallium/drivers/softpipe/sp_setup.c
src/gallium/drivers/softpipe/sp_setup.h
src/gallium/drivers/softpipe/sp_state.h
src/gallium/drivers/softpipe/sp_state_derived.c