freedreno/a6xx: set guardband clip
authorRob Clark <robdclark@gmail.com>
Mon, 19 Nov 2018 15:24:40 +0000 (10:24 -0500)
committerRob Clark <robdclark@gmail.com>
Tue, 27 Nov 2018 20:44:02 +0000 (15:44 -0500)
commitd47d77d49d59cb25656480c745977f35a0f55d70
tree0d8a69f7e9c75c5a2a51a9347143d7ba98c0a681
parent2773919f06fe1c590eff8e777709099174b7fb1c
freedreno/a6xx: set guardband clip

On older gens, the CLIP_ADJ bitfields were actually 3.6 fixed point.
Which might make more sense.  Although this formula comes up with values
pretty close to what blob does for various viewport sizes (for at least
a5xx and a6xx), and seems to work.

Signed-off-by: Rob Clark <robdclark@gmail.com>
src/gallium/drivers/freedreno/a6xx/fd6_emit.c
src/gallium/drivers/freedreno/freedreno_context.h
src/gallium/drivers/freedreno/freedreno_state.c
src/gallium/drivers/freedreno/freedreno_util.h