Skip to content

Commit

Permalink
src: Increase num_render_targets to 32 for Chromium
Browse files Browse the repository at this point in the history
  • Loading branch information
antkir committed Jan 27, 2024
1 parent 42f563e commit f025920
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vabackend.c
Original file line number Diff line number Diff line change
Expand Up @@ -1010,8 +1010,8 @@ static VAStatus nvCreateContext(
}

if (drv->surfaceCount == 0 && num_render_targets == 0) {
LOG("0 surfaces have been passed to vaCreateContext, this might cause errors. Setting surface count to 16");
num_render_targets = 16;
LOG("0 surfaces have been passed to vaCreateContext, this might cause errors. Setting surface count to 32");
num_render_targets = 32;
}

int surfaceCount = drv->surfaceCount != 0 ? drv->surfaceCount : num_render_targets;
Expand Down

0 comments on commit f025920

Please sign in to comment.