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

Author: Yogesh Mohan Marimuthu <[email protected]>
Date:   Sat Dec  9 17:48:35 2023 +0530

winsys/amdgpu: rename requested_size_dw to projected_size_dw

Reviewed-by: Marek Olšák <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26612>

---

 src/gallium/winsys/amdgpu/drm/amdgpu_cs.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/gallium/winsys/amdgpu/drm/amdgpu_cs.c 
b/src/gallium/winsys/amdgpu/drm/amdgpu_cs.c
index bac52d58287..15cad62e144 100644
--- a/src/gallium/winsys/amdgpu/drm/amdgpu_cs.c
+++ b/src/gallium/winsys/amdgpu/drm/amdgpu_cs.c
@@ -1228,9 +1228,9 @@ static bool amdgpu_cs_check_space(struct radeon_cmdbuf 
*rcs, unsigned dw)
 
    assert(rcs->current.cdw <= rcs->current.max_dw);
 
-   unsigned requested_size_dw = rcs->prev_dw + rcs->current.cdw + dw;
+   unsigned projected_size_dw = rcs->prev_dw + rcs->current.cdw + dw;
 
-   if (requested_size_dw > IB_MAX_SUBMIT_DWORDS)
+   if (projected_size_dw > IB_MAX_SUBMIT_DWORDS)
       return false;
 
    if (rcs->current.max_dw - rcs->current.cdw >= dw)
@@ -1241,7 +1241,7 @@ static bool amdgpu_cs_check_space(struct radeon_cmdbuf 
*rcs, unsigned dw)
    /* 125% of the size for IB epilog. */
    unsigned safe_byte_size = need_byte_size + need_byte_size / 4;
    main_ib->max_check_space_size = MAX2(main_ib->max_check_space_size, 
safe_byte_size);
-   main_ib->max_ib_size_dw = MAX2(main_ib->max_ib_size_dw, requested_size_dw);
+   main_ib->max_ib_size_dw = MAX2(main_ib->max_ib_size_dw, projected_size_dw);
 
    if (!cs->has_chaining)
       return false;

Reply via email to