diff options
author | Icenowy Zheng <[email protected]> | 2020-02-07 00:53:46 +0800 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-03-18 08:36:17 +0000 |
commit | 9205762caece0c4b9ecea3d56f72c6980935633a (patch) | |
tree | 24781439690e97cf0c07e6547efe74a996d48c80 /src/gallium/drivers/lima/lima_resource.h | |
parent | dbceabed72977ffd49d84f926c59ff97554f349d (diff) |
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.
This new format also seems to use several components for storing depth
since we saw r != g != b when sampling with this format.
[vasily: - initialize clear->depth to 0xffffff if we reload depth, just
like blob does. Reloading doesn't work otherwise
- use single bitmap for reload type]
Reviewed-by: Vasily Khoruzhick <[email protected]>
Reviewed-by: Andreas Baierl <[email protected]>
Signed-off-by: Icenowy Zheng <[email protected]>
Signed-off-by: Vasily Khoruzhick <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4197>
Diffstat (limited to 'src/gallium/drivers/lima/lima_resource.h')
-rw-r--r-- | src/gallium/drivers/lima/lima_resource.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/lima/lima_resource.h b/src/gallium/drivers/lima/lima_resource.h index 0b2d150b5ee..36ea605c6b0 100644 --- a/src/gallium/drivers/lima/lima_resource.h +++ b/src/gallium/drivers/lima/lima_resource.h @@ -62,7 +62,7 @@ struct lima_resource { struct lima_surface { struct pipe_surface base; int tiled_w, tiled_h; - bool reload; + unsigned reload; }; struct lima_transfer { |