[Mesa-dev] [PATCH] radv: disable viewport clamping even if FS doesn't write Z

Bas Nieuwenhuizen bas at basnieuwenhuizen.nl
Wed Jun 19 09:03:48 UTC 2019


R-b

On Tue, Jun 18, 2019, 6:55 PM Samuel Pitoiset <samuel.pitoiset at gmail.com>
wrote:

> This fixes new CTS dEQP-VK.pipeline.depth_range_unrestricted.*.
>
> Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
> ---
>  src/amd/vulkan/radv_pipeline.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/src/amd/vulkan/radv_pipeline.c
> b/src/amd/vulkan/radv_pipeline.c
> index 8bc0d9b53e6..765f6105f7d 100644
> --- a/src/amd/vulkan/radv_pipeline.c
> +++ b/src/amd/vulkan/radv_pipeline.c
> @@ -2788,8 +2788,7 @@ radv_pipeline_generate_depth_stencil_state(struct
> radeon_cmdbuf *ctx_cs,
>         db_render_override |=
> S_02800C_FORCE_HIS_ENABLE0(V_02800C_FORCE_DISABLE) |
>
> S_02800C_FORCE_HIS_ENABLE1(V_02800C_FORCE_DISABLE);
>
> -       if (!pCreateInfo->pRasterizationState->depthClampEnable &&
> -           ps->info.info.ps.writes_z) {
> +       if (!pCreateInfo->pRasterizationState->depthClampEnable) {
>                 /* From VK_EXT_depth_range_unrestricted spec:
>                  *
>                  * "The behavior described in Primitive Clipping still
> applies.
> --
> 2.22.0
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20190619/bf9b5807/attachment.html>


More information about the mesa-dev mailing list