nv50: rework nv50_compute_validate_program()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 15 Mar 2016 13:58:20 +0000 (14:58 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 18 Mar 2016 23:09:09 +0000 (00:09 +0100)
commit5ed387675d61e739b548fde9ff40d284160d6269
treef681a7150accb314f17d519bdbf5fce5031ffee9
parenta07ebc1993069306a1c80db8de726a8981e62092
nv50: rework nv50_compute_validate_program()

Reduce the amount of duplicated code by re-using
nv50_program_validate(). While we are at it, change the prototype to
return void. We don't check anymore if the translation fails but
improving the state validation is a long process.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Pierre Moreau <pierre.morrow@free.fr>
Tested-by: Pierre Moreau <pierre.morrow@free.fr>
src/gallium/drivers/nouveau/nv50/nv50_compute.c
src/gallium/drivers/nouveau/nv50/nv50_context.h
src/gallium/drivers/nouveau/nv50/nv50_shader_state.c