radeonsi: compute scissor from viewport in set_viewport_states
authorMarek Olšák <marek.olsak@amd.com>
Sun, 10 Apr 2016 01:29:57 +0000 (03:29 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 12 Apr 2016 12:29:49 +0000 (14:29 +0200)
commitcb21f8a97cdd5ae240aecdfa417b60b2c0dd6789
tree49ba0d9e92e80e16c3896f0e9c84b7ad3ad00696
parent5b6a0b7fc02c27c334cf932cfdfd7bedef5a5198
radeonsi: compute scissor from viewport in set_viewport_states

and clamp it right before emitting. This is a prerequisite for computing
the guard band.

Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Reviewed-by: Grigori Goronzy <greg@chown.ath.cx>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/radeonsi/si_pipe.h
src/gallium/drivers/radeonsi/si_state.c