etnaviv: remove unnecessary vertex_elements_state_create error checking
authorJonathan Marek <jonathan@marek.ca>
Mon, 6 Jan 2020 02:53:36 +0000 (21:53 -0500)
committerJonathan Marek <jonathan@marek.ca>
Wed, 8 Jan 2020 17:27:35 +0000 (12:27 -0500)
commit472593e9cfcb8d5b49d2475ee677700584583812
treef5b51a5fbee722197e1aa39e149fd870e27d0028
parent76d93b437b74c4980009dcea837cb701da2304b0
etnaviv: remove unnecessary vertex_elements_state_create error checking

PIPE_CAP_MAX_VERTEX_BUFFERS already sets the maximum vertex_buffer_index.

There's no need to error on num_elements == 0 (if that can even happen).

Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
src/gallium/drivers/etnaviv/etnaviv_state.c