openfimg: Use fd_bo_cpu_prep() for resource synchronization

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
openfimg: Emit framebuffer and texture states after submission

Due to naive implementation of buffer synchronization in kernel driver,
it is necessary to re-emit framebuffer, texture and vertex texture
states in every submit.

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
openfimg: Use helpers to prepare values for clip registers

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
openfimg: Emit scissor state when rasterizer state changed too

There is a scissor enable bit in rasterizer state, so whenever it
changes scissor must be reconfigured either to scissor state or to full
framebuffer.

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
openfimg: Init few more fields in FBCTL register

Alpha threshold and constant alpha do not depend on any state, so they
should be always set to some reasonable defaults.

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
openfimg: Disable fences implementation

Now as cpu_prep() infrastructure is in place it is not needed for buffer
synchronization.

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
openfimg: Fix values of some caps

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
openfimg; Fix depth buffer clearing

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>