#if BUILDFLAG(IS_WIN)
If we don't need to put this in a unit test, just putting in the .cc file is fine.
if (GetVideoMemoryUsageAndBudget(usage, budget)) {
Since there's only one caller lets not have a complicated bool+outvar return type. Instead make the one method `HasSufficientVideoMemoryBudget()` and have it return false if not. Document the 0.85 as a constant with why it was chosen.
I could imagine instead of a percentage that we'd want to estimate how much memory will be allocated for N buffers * resolution.
I'm not as sure it makes sense to always keep us at 85% of the budget.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
As noted on the bug I can't reproduce on an NVIDIA GPU. So I wonder if this is instead a resource leak issue on Intel?
As noted on the bug I can't reproduce on an NVIDIA GPU. So I wonder if this is instead a resource leak issue on Intel?
I think it is. Maybe the right approach is to fix this in driver, instead of workaround with this CL. Let me talk to our driver team on this.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |