From ba118bb3bc4ddc4b694ed7d3b3247d9adac67868 Mon Sep 17 00:00:00 2001 From: James Glanville Date: Tue, 2 May 2023 15:46:45 +0100 Subject: [PATCH] pvr: Adjust clear's region clip words Co-Authored-By: : Karmjit Mahil Signed-off-by: James Glanville Signed-off-by: Karmjit Mahil Reviewed-by: Frank Binns Part-of: --- src/imagination/csbgen/rogue_ppp.xml | 3 +++ src/imagination/vulkan/pvr_clear.c | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/imagination/csbgen/rogue_ppp.xml b/src/imagination/csbgen/rogue_ppp.xml index 37ffea6915b..61605e64218 100644 --- a/src/imagination/csbgen/rogue_ppp.xml +++ b/src/imagination/csbgen/rogue_ppp.xml @@ -168,6 +168,9 @@ SOFTWARE. + + + diff --git a/src/imagination/vulkan/pvr_clear.c b/src/imagination/vulkan/pvr_clear.c index 8ed1bdf956e..fee7b11e58a 100644 --- a/src/imagination/vulkan/pvr_clear.c +++ b/src/imagination/vulkan/pvr_clear.c @@ -121,9 +121,13 @@ static void pvr_device_setup_graphics_static_clear_ppp_templates( template->config.pds_state = NULL; template->config.region_clip0 = CS_HEADER(TA_REGION_CLIP0); - template->config.region_clip0.mode = PVRX(TA_REGION_CLIP_MODE_NONE); + template->config.region_clip0.mode = PVRX(TA_REGION_CLIP_MODE_OUTSIDE); + template->config.region_clip0.left = 0; + template->config.region_clip0.right = PVRX(TA_REGION_CLIP_MAX); template->config.region_clip1 = CS_HEADER(TA_REGION_CLIP1); + template->config.region_clip1.top = 0; + template->config.region_clip1.bottom = PVRX(TA_REGION_CLIP_MAX); template->config.output_sel = CS_HEADER(TA_OUTPUT_SEL); template->config.output_sel.vtxsize = 4;