lima: support rectangle texture
authorIcenowy Zheng <icenowy@aosc.io>
Thu, 26 Sep 2019 03:10:18 +0000 (11:10 +0800)
committerVasily Khoruzhick <anarsoul@gmail.com>
Thu, 26 Sep 2019 16:52:22 +0000 (16:52 +0000)
commita1ff8dbb1e4f526605abe94c5631272e4ab5a7db
tree03e1daae4e95a60fbd846c09d55ef0292c89b461
parenteb03141f52fe9f620d941006077ce2cefff84e65
lima: support rectangle texture

As Vasily discovered, the bit 7 of the word 1 of the texture descriptor
is set when reloading the framebuffer, to use framebuffer-based offset
rather than normalized one. This bit also works for regular textures to
enable accessing with non-normalized offset.

Add support for rectangle texture by setting this bit for
PIPE_TEXTURE_RECT.

Suggested-by: Vasily Khoruzhick <anarsoul@gmail.com>
Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
Reviewed-by: Vasily Khoruzhick <anarsoul@gmail.com>
src/gallium/drivers/lima/lima_draw.c
src/gallium/drivers/lima/lima_screen.c
src/gallium/drivers/lima/lima_texture.c
src/gallium/drivers/lima/lima_texture.h