r600g: check gpr count limit
authorVadim Girlin <vadimgirlin@gmail.com>
Mon, 9 Apr 2012 20:44:52 +0000 (00:44 +0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 9 Apr 2012 22:05:57 +0000 (18:05 -0400)
commit783e4da72aa203a645737dec81b001341951a942
tree32b139fc74f3cc97b29d126adae38c94c5cfd7e8
parent4b06280ea34ce0e2ef9ec36df792c28c3828eabd
r600g: check gpr count limit

This should help to prevent gpu lockups.
See https://bugs.freedesktop.org/show_bug.cgi?id=48472

NOTE: This is a candidate for the stable branches.

Signed-off-by: Vadim Girlin <vadimgirlin@gmail.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
src/gallium/drivers/r600/r600_shader.c