diff options
author | Icecream95 <[email protected]> | 2020-05-14 15:58:04 +1200 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-06-16 12:59:10 +0000 |
commit | ec628aba76e3526d85938ec12870267c34806a1d (patch) | |
tree | eeb060cc1177de3b88be38cdcbd65eea891f0bee /src/panfrost | |
parent | fd92dc6b17b8e796928942a4dc96d1b9ad054358 (diff) |
panfrost: Implement ARB_depth_clamp
This significantly improves the quality of shadows in OpenMW.
Reviewed-by: Alyssa Rosenzweig <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5453>
Diffstat (limited to 'src/panfrost')
-rw-r--r-- | src/panfrost/include/panfrost-job.h | 3 | ||||
-rw-r--r-- | src/panfrost/pandecode/decode.c | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/panfrost/include/panfrost-job.h b/src/panfrost/include/panfrost-job.h index 0fef5e420b5..f7b864e0d64 100644 --- a/src/panfrost/include/panfrost-job.h +++ b/src/panfrost/include/panfrost-job.h @@ -104,6 +104,9 @@ enum mali_func { #define MALI_DEPTH_WRITEMASK (1 << 11) +#define MALI_DEPTH_CLIP_NEAR (1 << 12) +#define MALI_DEPTH_CLIP_FAR (1 << 13) + /* Next flags to unknown2_4 */ #define MALI_STENCIL_TEST (1 << 0) diff --git a/src/panfrost/pandecode/decode.c b/src/panfrost/pandecode/decode.c index 8358603feaf..76352173b93 100644 --- a/src/panfrost/pandecode/decode.c +++ b/src/panfrost/pandecode/decode.c @@ -226,6 +226,8 @@ static const struct pandecode_flag_info u3_flag_info[] = { FLAG_INFO(CAN_DISCARD), FLAG_INFO(HAS_BLEND_SHADER), FLAG_INFO(DEPTH_WRITEMASK), + FLAG_INFO(DEPTH_CLIP_NEAR), + FLAG_INFO(DEPTH_CLIP_FAR), {} }; |