winsys/amdgpu: init 'r' before using it
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Fixes: 471c82d21e
("winsys/amdgpu: flatten huge if and reorder code in amdgpu_cs_submit_ib")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18758>
This commit is contained in:

committed by
Marge Bot

parent
58829d9f11
commit
7483e50404
@@ -1610,6 +1610,8 @@ static void amdgpu_cs_submit_ib(void *job, void *gdata, int thread_index)
|
||||
* quite often, but it eventually succeeds after enough attempts. This happens frequently
|
||||
* with dEQP using NGG streamout.
|
||||
*/
|
||||
r = 0;
|
||||
|
||||
do {
|
||||
/* Wait 1 ms and try again. */
|
||||
if (r == -ENOMEM)
|
||||
|
Reference in New Issue
Block a user