r600g: fix calculation for gpr allocation
authorDave Airlie <airlied@redhat.com>
Tue, 1 Sep 2015 02:29:58 +0000 (12:29 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 1 Sep 2015 06:43:22 +0000 (16:43 +1000)
commit0de53ccc8cbee0f63ba25c9e72664b3cbd31be54
tree3e10dbe0d5a36dd0f529f7313d06b9e7983fdf8b
parentf8a938814e8cdbf65153c277f257df8e22fae9c5
r600g: fix calculation for gpr allocation

I've been chasing a geom shader hang on rv635 since I wrote
r600 geom code, and finally I hacked some values from fglrx
in and I could run texelfetch without failures.

This is totally my fault as well, maths fail 101.

This makes geom shaders on r600 not fail heavily.

Cc: "10.6" "11.0" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/r600/r600_state.c