Module: Mesa
Branch: master
Commit: 8205cce00730a834ab6da8afa25341db17914510
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=8205cce00730a834ab6da8afa25341db17914510

Author: Timur Kristóf <[email protected]>
Date:   Tue Mar 16 20:10:51 2021 +0100

aco: Use ASSERTED to avoid unused variable warning.

Signed-off-by: Timur Kristóf <[email protected]>
Reviewed-by: Rhys Perry <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9632>

---

 src/amd/compiler/aco_insert_exec_mask.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/amd/compiler/aco_insert_exec_mask.cpp 
b/src/amd/compiler/aco_insert_exec_mask.cpp
index 49367e39830..20df892d49a 100644
--- a/src/amd/compiler/aco_insert_exec_mask.cpp
+++ b/src/amd/compiler/aco_insert_exec_mask.cpp
@@ -234,7 +234,7 @@ void handle_exact_loops(wqm_ctx& ctx, exec_ctx& exec_ctx, 
unsigned preheader)
    }
    assert(parent_branch >= 0);
 
-   Block& branch = exec_ctx.program->blocks[parent_branch];
+   ASSERTED Block& branch = exec_ctx.program->blocks[parent_branch];
    assert(branch.kind & block_kind_branch);
    if (ctx.branch_wqm[parent_branch]) {
       /* The branch can't be done in Exact because some other blocks in it

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to