summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/nine
diff options
context:
space:
mode:
authorAxel Davy <[email protected]>2015-01-05 16:26:27 +0100
committerEmil Velikov <[email protected]>2015-01-22 22:16:24 +0000
commit77fcff37cfdcc762ef0e0c5da3e9ce7addc18440 (patch)
tree081ac4adf4da94e369a79094d4d0a60f157391e8 /src/gallium/state_trackers/nine
parentf8a74410f16b8a01da329975d10b631cb2a928e5 (diff)
st/nine: Change comment relating to vertex shader inputs not matching declaration
Reviewed-by: Tiziano Bacocco <[email protected]> Signed-off-by: Axel Davy <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/nine')
-rw-r--r--src/gallium/state_trackers/nine/nine_state.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/gallium/state_trackers/nine/nine_state.c b/src/gallium/state_trackers/nine/nine_state.c
index 1187a20bdb3..dad665133ac 100644
--- a/src/gallium/state_trackers/nine/nine_state.c
+++ b/src/gallium/state_trackers/nine/nine_state.c
@@ -214,11 +214,12 @@ update_vertex_elements(struct NineDevice9 *device)
if (state->stream_freq[b] & D3DSTREAMSOURCE_INSTANCEDATA)
ve[n].instance_divisor = state->stream_freq[b] & 0x7FFFFF;
} else {
- /* TODO:
- * If drivers don't want to handle this, insert a dummy buffer.
- * But on which stream ?
- */
- /* no data, disable */
+ /* TODO: msdn doesn't specify what should happen when the vertex
+ * declaration doesn't match the vertex shader inputs.
+ * Some websites say the code will pass but nothing will get rendered.
+ * We should check and implement the correct behaviour. */
+ /* Put PIPE_FORMAT_NONE.
+ * Some drivers (r300) are very unhappy with that */
ve[n].src_format = PIPE_FORMAT_NONE;
ve[n].src_offset = 0;
ve[n].instance_divisor = 0;