From edda5716eeb92a13688e8824b2ac2acc460b4928 Mon Sep 17 00:00:00 2001 From: Eunki Hong Date: Sun, 18 Dec 2022 23:47:46 +0900 Subject: [PATCH 1/1] [Tizen] Remove annoying log message Since DecoratedVisual / Text / PBR shader use #define tag, current sampler using logic might not works well. Change-Id: Ia5ab6986246e5160497372bc29d7e83b96f406b8 Signed-off-by: Eunki Hong --- .../graphics/gles-impl/gles-graphics-reflection.cpp | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/dali/internal/graphics/gles-impl/gles-graphics-reflection.cpp b/dali/internal/graphics/gles-impl/gles-graphics-reflection.cpp index b7ad58c..f3e15cb 100644 --- a/dali/internal/graphics/gles-impl/gles-graphics-reflection.cpp +++ b/dali/internal/graphics/gles-impl/gles-graphics-reflection.cpp @@ -33,6 +33,10 @@ namespace { +#if defined(DEBUG_ENABLED) +Debug::Filter* gGraphicsReflectionLogFilter = Debug::Filter::New(Debug::NoLogging, false, "LOG_GRAPHICS_REFLECTION"); +#endif + struct StringSize { const char* const mString; @@ -171,7 +175,7 @@ void ParseShaderSamplers(std::string shaderSource, std::vectorGetProgramiv(glProgram, GL_ACTIVE_ATTRIBUTE_MAX_LENGTH, &maxLength); gl->GetProgramiv(glProgram, GL_ACTIVE_ATTRIBUTES, &nAttribs); mVertexInputAttributes.clear(); mVertexInputAttributes.resize(nAttribs); - + int maxLocationValue = nAttribs - 1; name = new GLchar[maxLength]; @@ -263,6 +269,8 @@ void Reflection::BuildUniformReflection() return; } + DALI_LOG_INFO(gGraphicsReflectionLogFilter, Debug::General, "Build uniform reflection for glProgram : %u\n", glProgram); + gl->GetProgramiv(glProgram, GL_ACTIVE_UNIFORM_MAX_LENGTH, &maxLen); gl->GetProgramiv(glProgram, GL_ACTIVE_UNIFORMS, &numUniforms); @@ -374,6 +382,8 @@ void Reflection::BuildUniformBlockReflection() return; } + DALI_LOG_INFO(gGraphicsReflectionLogFilter, Debug::General, "Build uniform block reflection for glProgram : %u\n", glProgram); + gl->GetProgramiv(glProgram, GL_ACTIVE_UNIFORM_BLOCKS, &numUniformBlocks); mUniformBlocks.clear(); @@ -429,6 +439,7 @@ void Reflection::BuildUniformBlockReflection() uint32_t Reflection::GetVertexAttributeLocation(const std::string& name) const { + DALI_LOG_INFO(gGraphicsReflectionLogFilter, Debug::Verbose, "name : %s\n", name.c_str()); for(auto&& attr : mVertexInputAttributes) { if(attr.name == name) @@ -441,6 +452,7 @@ uint32_t Reflection::GetVertexAttributeLocation(const std::string& name) const Dali::Graphics::VertexInputAttributeFormat Reflection::GetVertexAttributeFormat(uint32_t location) const { + DALI_LOG_INFO(gGraphicsReflectionLogFilter, Debug::Verbose, "location : %u\n", location); if(location >= mVertexInputAttributes.size()) { return Dali::Graphics::VertexInputAttributeFormat::UNDEFINED; @@ -451,6 +463,7 @@ Dali::Graphics::VertexInputAttributeFormat Reflection::GetVertexAttributeFormat( std::string Reflection::GetVertexAttributeName(uint32_t location) const { + DALI_LOG_INFO(gGraphicsReflectionLogFilter, Debug::Verbose, "location : %u\n", location); if(location >= mVertexInputAttributes.size()) { return std::string(); -- 2.7.4