Skip to content

Commit

Permalink
gpu: Increase texture size limit (#41)
Browse files Browse the repository at this point in the history
In the context of VR experiences, textures are over 4k and such
limitation was a problem. Therefore, this commit increases the max
texture size to 16384.

In practice, the gpu driver bug list set this limit on Android and Linux
only.
  • Loading branch information
tiagovignatti authored and zakharvoit committed Oct 6, 2023
1 parent 5f67e8b commit 5343e53
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gpu/config/gpu_driver_bug_workarounds.cc
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ void IntSetToWorkarounds(const std::vector<int32_t>& enabled_workarounds,
NOTIMPLEMENTED();
}
}
// TODO(wolvic-chromium): VR experiences are over 4k.
if (workarounds->webgl_or_caps_max_texture_size_limit_4096)
workarounds->webgl_or_caps_max_texture_size = 4096;
workarounds->webgl_or_caps_max_texture_size = 16384;

if (workarounds->max_copy_texture_chromium_size_1048576)
workarounds->max_copy_texture_chromium_size = 1048576;
Expand Down

0 comments on commit 5343e53

Please sign in to comment.