lima: add support for depth/stencil fbo attachments and textures
authorVasily Khoruzhick <anarsoul@gmail.com>
Sun, 7 Apr 2019 05:55:36 +0000 (22:55 -0700)
committerQiang Yu <yuq825@gmail.com>
Sun, 14 Apr 2019 01:16:00 +0000 (01:16 +0000)
commitfef2f10cc2ad298f179d5a5aa0a210fbea02d95f
tree884a908a3647f88aaf99f84d99238ea860a03fd3
parenta817f0fec6e3d3bbbfb8df0349c0085710b5aad4
lima: add support for depth/stencil fbo attachments and textures

Hardware supports writing back Z/S buffers and sampling from them,
so add support for that.

Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
Reviewed-by: Qiang Yu <yuq825@gmail.com>
Tested-by: Icenowy Zheng <icenowy@aosc.io>
src/gallium/drivers/lima/lima_context.c
src/gallium/drivers/lima/lima_context.h
src/gallium/drivers/lima/lima_draw.c
src/gallium/drivers/lima/lima_resource.c
src/gallium/drivers/lima/lima_screen.c
src/gallium/drivers/lima/lima_state.c
src/gallium/drivers/lima/lima_texture.c