st/nine: Implement dummy vbo behaviour when vs is missing inputs
authorTiziano Bacocco <tizbac2@gmail.com>
Fri, 30 Jan 2015 12:51:44 +0000 (13:51 +0100)
committerAxel Davy <axel.davy@ens.fr>
Thu, 5 Feb 2015 23:07:20 +0000 (00:07 +0100)
commit17abefa12be1d5e7d436bfbb082c3eba19adf26c
tree74543bf82c0b26cd1a1756d0da880ca14fe010cd
parent90585cbc9aef27904efc86dbfbd8743d27a6f599
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 <axel.davy@ens.fr>
Signed-off-by: Tiziano Bacocco <tizbac2@gmail.com>
src/gallium/state_trackers/nine/device9.c
src/gallium/state_trackers/nine/device9.h
src/gallium/state_trackers/nine/nine_state.c
src/gallium/state_trackers/nine/nine_state.h