st/mesa: do not init limits when compute shaders are not supported
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 15 Feb 2016 21:40:46 +0000 (22:40 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 16 Feb 2016 19:53:35 +0000 (20:53 +0100)
commit09446cf5f605d23102321d386a99a8c7d329e1e5
tree02642eda557e8fd1eec785828ef7b196d55872cb
parentf28d80fabfca97b24b3e716e8fb1836abdc32643
st/mesa: do not init limits when compute shaders are not supported

When the number of uniform blocks is less than 12,
ARB_uniform_buffer_object can't be enabled and the maximum GL version
is not even 3.1...

This fixes a regression introduced in 7c79c1e (st/mesa: add compute
shader state) if the maximum number of uniform blocks allowed for
compute shaders is less than 12. This happens on Kepler but this might
also affect other Gallium drivers.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reported-by: Tobias Klausmann <tobias.johannes.klausmann@mni.thm.de>
Tested-by: Tobias Klausmann <tobias.johannes.klausmann@mni.thm.de>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Tobias Klausmann <tobias.johannes.klausmann@mni.thm.de>
src/mesa/state_tracker/st_extensions.c