Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(197)

Unified Diff: gpu/command_buffer/service/texture_manager.cc

Issue 2164723003: Fix gpu mipmap support on ChromeOS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gpu/BUILD.gn ('k') | gpu/command_buffer/tests/gl_bgra_mipmap_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/texture_manager.cc
diff --git a/gpu/command_buffer/service/texture_manager.cc b/gpu/command_buffer/service/texture_manager.cc
index f6a75dd40e91325cd5bc88ee00c8f5b83fb822d3..8b22a77573a6355ba6f7cc0f30f637423c10756c 100644
--- a/gpu/command_buffer/service/texture_manager.cc
+++ b/gpu/command_buffer/service/texture_manager.cc
@@ -2882,7 +2882,14 @@ GLenum TextureManager::AdjustTexInternalFormat(
GetCompatibilitySwizzle(format);
if (swizzle)
return swizzle->dest_format;
+
+ // Compatibility format substitutions that do not require swizzling
+ if (format == GL_BGRA_EXT)
+ return GL_RGBA;
+ if (format == GL_BGRA8_EXT)
+ return GL_RGBA8;
piman 2016/07/19 20:32:30 This transformation should already happen at a low
Justin Novosad 2016/07/19 21:45:25 Thanks for pointing this out. I did a bit of inves
piman 2016/07/19 21:56:08 Ah, Ozone indeed does use the ES backend of Mesa.
}
+
return format;
}
« no previous file with comments | « gpu/BUILD.gn ('k') | gpu/command_buffer/tests/gl_bgra_mipmap_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698