commit | 7fa0250f9446ec57caab581b8cac2c011c1cb497 | [log] [tgz] |
---|---|---|
author | Dave Airlie <airlied@redhat.com> | Tue May 17 14:22:57 2016 +1000 |
committer | Dave Airlie <airlied@redhat.com> | Mon May 23 16:19:57 2016 +1000 |
tree | a7f28af88db8317e1976ac53d23d37d4cecd10ac | |
parent | 22db9b10ebd46c777a87da890f5089ad24686441 [diff] |
mesa/subroutines: count number subroutines properly. The code was implementing the ACTIVE_SUBROUTINE_UNIFORMS incorrectly, using the number of types not the number of uniforms. This is different than the locations as the locations may be sparsly allocated. This fixes: GL43-CTS.shader_subroutine.four_subroutines_with_two_uniforms Reviewed-by: Chris Forbes <chrisforbes@google.com> Signed-off-by: Dave Airlie <airlied@redhat.com>