openfimg: compiler: Fix swizzle merging

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
openfimg: compiler: Force any writes to PS outputs to be saturated

It seems like per fragment does not like values out of bounds.

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
openfimg: compiler: Add comments to implementation of LIT TGSI opcode

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
openfimg: compiler: Do not use _LIT variants of instructions

Nobody knows how they differ from normal ones...

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
openfimg: compiler: Store rounded up immediate count in output struct

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
openfimg: Add PIPE_CAP_MAX_VIEWPORTS query

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
openfimg: vertex: Get rid of transient data structure

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
openfimg: vertex: Remove unused field from of_vertex_info struct

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
openfimg: emit: Use u_bit_scan

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
openfimg: emit: Add more safety measures to emit_constants

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
openfimg: compiler: Drop few unsupported texture formats

The hardware only supports ABGR/XBGR and BGRA/BGRX natively as texture
targets. ARGB/XRGB and RGBA/RGBX could be probably emulated as
swizzles in pixel shader...

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
openfimg: compiler: Distinguish between ABGR and BGRA textures

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
openfimg: compiler: Fix silly bug in shader override

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