[Tizen] Revert "Do not render NativeTexture for non-default render pass tag" 38/318238/1 accepted/tizen/9.0/unified/20250117.022455
authorEunki, Hong <eunkiki.hong@samsung.com>
Tue, 14 Jan 2025 10:56:35 +0000 (19:56 +0900)
committerEunki, Hong <eunkiki.hong@samsung.com>
Tue, 14 Jan 2025 10:56:40 +0000 (19:56 +0900)
This reverts commit 0900168e11441d1d0586a0d27c3c9da826051a2a.

Change-Id: I8ad7ad404a5f6ba0b338e0d3944db01b0eda1dd2

dali/internal/render/renderers/render-renderer.cpp
dali/internal/render/renderers/render-renderer.h

index 9358f20f057406f02a8d6f42f9eaa4efdd64acc6..a24911722f5220784872adfb69c704e14b951268 100644 (file)
@@ -79,8 +79,6 @@ namespace Render
 {
 namespace
 {
-constexpr uint32_t DEFAULT_RENDER_PASS_TAG = 0u;
-
 Dali::Internal::MemoryPoolObjectAllocator<Renderer>& GetRenderRendererMemoryPool()
 {
   static Dali::Internal::MemoryPoolObjectAllocator<Renderer> gRenderRendererMemoryPool;
@@ -200,7 +198,7 @@ void Renderer::SetDrawCommands(Dali::DevelRenderer::DrawCommand* pDrawCommands,
   mDrawCommands.insert(mDrawCommands.end(), pDrawCommands, pDrawCommands + size);
 }
 
-bool Renderer::BindTextures(Graphics::CommandBuffer& commandBuffer, uint32_t renderPassTag)
+bool Renderer::BindTextures(Graphics::CommandBuffer& commandBuffer)
 {
   uint32_t textureUnit = 0;
 
@@ -218,11 +216,6 @@ bool Renderer::BindTextures(Graphics::CommandBuffer& commandBuffer, uint32_t ren
     {
       if((*textures)[i] && (*textures)[i]->GetGraphicsObject())
       {
-        // NOTE : Due to DDK bug, we should not render NativeTexture on shadowmap. Should be fixed in future! 2024-12-31. eunkiki.hong
-        if(renderPassTag != DEFAULT_RENDER_PASS_TAG && (*textures)[i]->IsNativeImage())
-        {
-          return false;
-        }
         Graphics::Texture* graphicsTexture = (*textures)[i]->GetGraphicsObject();
         // if the sampler exists,
         //   if it's default, delete the graphics object
@@ -589,7 +582,7 @@ bool Renderer::Render(Graphics::CommandBuffer&                             comma
   bool drawn = false;
 
   // Check all textures are prepared first.
-  if(!BindTextures(commandBuffer, instruction.mRenderPassTag))
+  if(!BindTextures(commandBuffer))
   {
     return drawn;
   }
index d2a8c2f2208e8fcb9fb6a096c9900d2acd70f20a..3f638a3b6ed74985b36422f2afc6a1f73adf2df9 100644 (file)
@@ -573,7 +573,7 @@ private:
    *
    * @return True if all textures are bounded successfully. False otherwise.
    */
-  bool BindTextures(Graphics::CommandBuffer& commandBuffer, uint32_t renderPassTag);
+  bool BindTextures(Graphics::CommandBuffer& commandBuffer);
 
   /**
    * Prepare a pipeline for this renderer.