r600g: don't reserve more stack space than required v5
authorVadim Girlin <vadimgirlin@gmail.com>
Tue, 2 Apr 2013 15:33:40 +0000 (19:33 +0400)
committerVadim Girlin <vadimgirlin@gmail.com>
Tue, 2 Apr 2013 15:34:14 +0000 (19:34 +0400)
commit9be624b3ef32ae6311010cf05531e12051b647dc
treec4a771f66690477f9e0c794acd831383e3b5233d
parent7e04227f3967fd4c4dd7a088cb42197d916925a5
r600g: don't reserve more stack space than required v5

Reduced stack size allows to run more threads in some cases,
improving performance for the shaders that use stack (that is, for the
shaders with control flow instructions). E.g. with unigine-based apps.

v4: implement exact computation taking into account wavefront size
v5: add cases for RV620, RS880

Signed-off-by: Vadim Girlin <vadimgirlin@gmail.com>
src/gallium/drivers/r600/r600_asm.c
src/gallium/drivers/r600/r600_asm.h
src/gallium/drivers/r600/r600_shader.c