lima: implement zsbuf reload
Fragment shader can write depth and stencil if we set necessary flags in RSW. In addition to that we need to use special format for Z24S8. Original format is apparently Z24X8 since we can't sample stencil in GLES2. Signed-off-by:Icenowy Zheng <icenowy@aosc.io> Signed-off-by:
Vasily Khoruzhick <anarsoul@gmail.com>
- src/gallium/drivers/lima/lima_draw.c 9 additions, 3 deletionssrc/gallium/drivers/lima/lima_draw.c
- src/gallium/drivers/lima/lima_format.c 17 additions, 3 deletionssrc/gallium/drivers/lima/lima_format.c
- src/gallium/drivers/lima/lima_format.h 1 addition, 0 deletionssrc/gallium/drivers/lima/lima_format.h
- src/gallium/drivers/lima/lima_job.c 42 additions, 9 deletionssrc/gallium/drivers/lima/lima_job.c
- src/gallium/drivers/lima/lima_resource.c 4 additions, 1 deletionsrc/gallium/drivers/lima/lima_resource.c
- src/gallium/drivers/lima/lima_resource.h 1 addition, 1 deletionsrc/gallium/drivers/lima/lima_resource.h