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

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

Issue 2767063002: 16-bit video upload to float: intermediate R16_EXT and copy to float. (Closed)
Patch Set: Nit. Created 3 years, 8 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/command_buffer/service/feature_info.h ('k') | gpu/command_buffer/service/feature_info_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/feature_info.cc
diff --git a/gpu/command_buffer/service/feature_info.cc b/gpu/command_buffer/service/feature_info.cc
index 32e72c69f32652768c47c267509af2b3df97b8d9..14be4fd1628f63a875ec6bf458fbeed63d6f0531 100644
--- a/gpu/command_buffer/service/feature_info.cc
+++ b/gpu/command_buffer/service/feature_info.cc
@@ -1293,6 +1293,19 @@ void FeatureInfo::InitializeFeatures() {
}
UMA_HISTOGRAM_BOOLEAN("GPU.TextureRG", feature_flags_.ext_texture_rg);
+ if (gl_version_info_->is_desktop_core_profile ||
+ extensions.Contains("GL_EXT_texture_norm16")) {
+ feature_flags_.ext_texture_norm16 = true;
+ AddExtensionString("GL_EXT_texture_norm16");
+
+ // Note: EXT_texture_norm16 is not exposed through WebGL API so we validate
+ // only the combinations used internally.
+ validators_.texture_format.AddValue(GL_RED_EXT);
+ validators_.texture_internal_format.AddValue(GL_R16_EXT);
+ validators_.texture_internal_format.AddValue(GL_RED_EXT);
+ validators_.texture_unsized_internal_format.AddValue(GL_RED_EXT);
+ }
+
bool has_opengl_dual_source_blending =
gl_version_info_->IsAtLeastGL(3, 3) ||
(gl_version_info_->IsAtLeastGL(3, 2) &&
« no previous file with comments | « gpu/command_buffer/service/feature_info.h ('k') | gpu/command_buffer/service/feature_info_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698