hk: Fix hk_ia_update arguments order
Fix defect reported by Coverity Scan.
Arguments in wrong order (SWAPPED_ARGUMENTS)
swapped_arguments: The positions of arguments in the call to
hk_ia_update do not match the ordering of the parameters:stat_c_inv is
passed to c_prims.stat_c_prims is passed to c_inv.
Fixes: a3b796ba19 ("libagx,hk: handle pipeline stats queries without a GS")
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32853>
This commit is contained in:
@@ -3438,7 +3438,7 @@ hk_draw(struct hk_cmd_buffer *cmd, uint16_t draw_id, struct agx_draw draw_)
|
||||
|
||||
if (ia_stats) {
|
||||
hk_ia_update(cmd, ccs, draw, stat_ia_verts, stat_ia_prims, stat_vs_inv,
|
||||
stat_c_inv, stat_c_prims);
|
||||
stat_c_prims, stat_c_inv);
|
||||
}
|
||||
|
||||
if (tess) {
|
||||
|
||||
Reference in New Issue
Block a user