diff options
author | Axel Davy <[email protected]> | 2016-09-17 14:16:41 +0200 |
---|---|---|
committer | Axel Davy <[email protected]> | 2016-10-10 23:43:49 +0200 |
commit | 3bf02d383fe94a69dfec3ff54ede3e3b2e9dff6b (patch) | |
tree | fc45cd758c5ceffcbe95f053430a1a778ecf9c8f /src/gallium/state_trackers/nine/device9.h | |
parent | f8c8f4424405c4789a044470e64df810720358c8 (diff) |
st/nine: Partial software vertex processing support
Software Vertex Processing allows:
. Less limitations for shaders (more loops, etc)
. Less limitations for ff (more enabled lights, 255
matrices for VertexBlend)
In particular shaders can get more constants.
This patch implements support for this (not using software
rendering, but hardware rendering, as llvmpipe and dx10+ hw
have the same limits...)
This is considered a second class path. Even apps asking for
"Mixed Vertex processing" (ie the ability to switch to swvp
on demand) do not use the feature much. Some just initialize
more constants than the normal limit at the start of the
application, but never use more than the normal limit.
When the apps do not need the software vertex processing
features, they do not seem to turn it on. This means it is
ok if that path is slow.
Thus no care has been made to make the path optimized.
Signed-off-by: Axel Davy <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/nine/device9.h')
-rw-r--r-- | src/gallium/state_trackers/nine/device9.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/nine/device9.h b/src/gallium/state_trackers/nine/device9.h index f2fd164cc12..b6aa5e06531 100644 --- a/src/gallium/state_trackers/nine/device9.h +++ b/src/gallium/state_trackers/nine/device9.h @@ -48,6 +48,7 @@ struct NineDevice9 { struct NineUnknown base; boolean ex; + boolean may_swvp; /* G3D context */ struct pipe_screen *screen; |