iris: Fix assert when using vertex attrib without buffer binding
authorDanylo Piliaiev <danylo.piliaiev@globallogic.com>
Thu, 4 Apr 2019 12:04:50 +0000 (15:04 +0300)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 4 Apr 2019 22:57:24 +0000 (22:57 +0000)
commitb19494c54e704ce23f5d0523c321fbffc0f70494
tree51e2eeede31e0a6c10c17512268a251f0f4ad93e
parent61cc37937140dc441bd0625233f82ef84085f967
iris: Fix assert when using vertex attrib without buffer binding

The GL 4.5 spec says:
 "If any enabled array’s buffer binding is zero when DrawArrays or
  one of the other drawing commands defined in section 10.4 is called,
  the result is undefined."

The result is undefined but it should not crash.

Fixes: gl-3.1-vao-broken-attrib
Signed-off-by: Danylo Piliaiev <danylo.piliaiev@globallogic.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/gallium/drivers/iris/iris_state.c