mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-21 16:20:39 +02:00
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:
parent
58829d9f11
commit
7483e50404
1 changed files with 2 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue