diff options
author | Tiziano Bacocco <[email protected]> | 2015-01-30 13:51:44 +0100 |
---|---|---|
committer | Axel Davy <[email protected]> | 2015-02-06 00:07:20 +0100 |
commit | 17abefa12be1d5e7d436bfbb082c3eba19adf26c (patch) | |
tree | 74543bf82c0b26cd1a1756d0da880ca14fe010cd /src/gallium/state_trackers/nine/device9.h | |
parent | 90585cbc9aef27904efc86dbfbd8743d27a6f599 (diff) |
st/nine: Implement dummy vbo behaviour when vs is missing inputs
Use a dummy vertex buffer object when vs inputs have no corresponding
entries in the vertex declaration. This dummy buffer will give to the
shader float4(0,0,0,0).
This fixes several artifacts on some games.
Signed-off-by: Axel Davy <[email protected]>
Signed-off-by: Tiziano Bacocco <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/nine/device9.h')
-rw-r--r-- | src/gallium/state_trackers/nine/device9.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/nine/device9.h b/src/gallium/state_trackers/nine/device9.h index 54da9e3a624..f412088ca08 100644 --- a/src/gallium/state_trackers/nine/device9.h +++ b/src/gallium/state_trackers/nine/device9.h @@ -123,6 +123,10 @@ struct NineDevice9 struct nine_range_pool range_pool; struct hud_context *hud; /* NULL if hud is disabled */ + + /* dummy vbo (containing 0 0 0 0) to bind if vertex shader input + * is not bound to anything by the vertex declaration */ + struct pipe_resource *dummy_vbo; }; static INLINE struct NineDevice9 * NineDevice9( void *data ) |