openfimg: Remove copies of resource width and height in sampler view

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
openfimg: Disable PIPE_CAP_PREFER_BLIT_BASED_TEXTURE_TRANSFER for now

There is something bad going on with mipmaps otherwise.

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
openfimg: Handle src and dst levels in copy region

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
openfimg: Count active samplers and sampler views correctly

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
openfimg: Align mipmap on 16 pixel boundary

This gives us 64 bytes on 4 cpp formats and 16 bytes on 1 cpp formats,
whcih should be enough for anyone.

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
openfimg: compiler: Better error handling

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
openfimg: Enable mipmapping when base level is non-zero

If context has mipmapping disabled, sampler is set to use single level
by having same first and last levels.

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
openfimg: compiler: Fix if condition test

It is src0.x != 0.0, not == 0.0.

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