Module: Mesa
Branch: main
Commit: 9e2572903bc84eefc82eb7fc180098414bb6a621
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=9e2572903bc84eefc82eb7fc180098414bb6a621

Author: Karmjit Mahil <[email protected]>
Date:   Mon Jan 23 23:54:06 2023 +0000

pvr: Remove component_alignment

We don't support output register subdivision so no need to keep
track of how many bytes have been allocated within the output regs.

Signed-off-by: Karmjit Mahil <[email protected]>
Reviewed-by: Frank Binns <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21386>

---

 src/imagination/vulkan/pvr_hw_pass.h | 5 -----
 src/imagination/vulkan/pvr_pass.c    | 1 -
 2 files changed, 6 deletions(-)

diff --git a/src/imagination/vulkan/pvr_hw_pass.h 
b/src/imagination/vulkan/pvr_hw_pass.h
index ca8d47d865e..8f1eac7a38e 100644
--- a/src/imagination/vulkan/pvr_hw_pass.h
+++ b/src/imagination/vulkan/pvr_hw_pass.h
@@ -63,11 +63,6 @@ struct usc_mrt_desc {
     */
    uint32_t intermediate_size;
 
-   /* Number of bytes allocated for each component in the output registers (as
-    * opposed to the pixel format).
-    */
-   uint32_t component_alignment;
-
    /* Mask of the bits from each dword which are read by the PBE. */
    uint32_t valid_mask[PVR_USC_RENDER_TARGET_MAXIMUM_SIZE_IN_DWORDS];
 
diff --git a/src/imagination/vulkan/pvr_pass.c 
b/src/imagination/vulkan/pvr_pass.c
index 2e3ccf2d956..23f751b32f8 100644
--- a/src/imagination/vulkan/pvr_pass.c
+++ b/src/imagination/vulkan/pvr_pass.c
@@ -666,7 +666,6 @@ VkResult pvr_CreateRenderPass2(VkDevice _device,
             mrt_resources[last].reg.offset = 0U;
             mrt_resources[last].intermediate_size = 4U;
             mrt_resources[last].mrt_desc.intermediate_size = 4U;
-            mrt_resources[last].mrt_desc.component_alignment = 4U;
             mrt_resources[last].mrt_desc.priority = 0U;
             mrt_resources[last].mrt_desc.valid_mask[0U] = ~0;
             mrt_resources[last].mrt_desc.valid_mask[1U] = ~0;

Reply via email to