i965: Prevent coverity warning
authorRobert Foss <robert.foss@collabora.com>
Wed, 1 Feb 2017 16:24:39 +0000 (11:24 -0500)
committerEric Engestrom <eric.engestrom@imgtec.com>
Wed, 1 Feb 2017 16:47:05 +0000 (16:47 +0000)
commit25f2d3c1d3328ed4e95547e89dddbe73c423fc9e
tree0b7f451b08f0c9eb4df68033a6f567e8f8a8e614
parent875b15eec4c1a0cab986f5eccfc54e3c0df02f7c
i965: Prevent coverity warning

Add assert checking that num_sources is never larger than 3.

This prevents Coverity from concluding that the unhandled
cases of num_sources not being 0-3 are relevant.

Coverity-Id: 1399480-1399489
Signed-off-by: Robert Foss <robert.foss@collabora.com>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/mesa/drivers/dri/i965/brw_eu_validate.c