From: Eunki Hong Date: Sun, 18 Dec 2022 14:47:46 +0000 (+0900) Subject: [Tizen] Remove annoying log message X-Git-Tag: accepted/tizen/7.0/unified/20221228.170442~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=edda5716eeb92a13688e8824b2ac2acc460b4928;hp=dee58f26a76df37058912bb2f3cbfb28a3906870;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git [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 --- 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();