mesa: Add assert to check number of vector elements
authorJan Vesely <jan.vesely@rutgers.edu>
Wed, 14 Jan 2015 21:12:06 +0000 (16:12 -0500)
committerJosé Fonseca <jfonseca@vmware.com>
Wed, 21 Jan 2015 14:06:02 +0000 (14:06 +0000)
commit3c3e60e050ea0850fcfeb5c4c2aa4f954d54d665
tree1567635ba061bc56edd011da23c14d890a858a73
parent3cb10cce371cb62e0c4a988ab939bf640b75ebab
mesa: Add assert to check number of vector elements

The below code crashes when vector_elements <= 0
Fixes Warray-bounds warnings

Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/mesa/program/ir_to_mesa.cpp
src/mesa/state_tracker/st_glsl_to_tgsi.cpp