Skip to content

lima: implement zsbuf reload

Vasily Khoruzhick requested to merge anarsoul/mesa:lima-zsbuf-reload into master

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.

This MR also disables Z16 format since we don't know how to reload Z16 buffers yet. Blob seems to use Z24 in dEQP tests that need depth reload, e.g.:

http://imkreisrum.de/deqp/deqp-complete-dumps_mali400-r7p0_on-allwinner-a20/results/dEQP-GLES2.functional/fbo/dEQP-GLES2.functional.fbo.render.recreate_colorbuffer.rebind_rbo_rgb565_depth_component16/dEQP-GLES2.functional.fbo.render.recreate_colorbuffer.rebind_rbo_rgb565_depth_component16.dump.0001

Edited by Vasily Khoruzhick

Merge request reports