Maniphest T93350

Cycles renders shows black during rendering huge resolutions
Closed, ResolvedBUG

Assigned To
Sergey Sharybin (sergey)
Authored By
Jeroen Bakker (jbakker)
Nov 24 2021, 10:16 AM
Tags
  • Render & Cycles
  • BF Blender
Subscribers
Brecht Van Lommel (brecht)
Garek (Garek)
Jeroen Bakker (jbakker)
Raimund Klink (Raimund58)
Wovchik (microcoder)

Description

System Information
Operating system: Linux-5.13.0-7620-generic-x86_64-with-glibc2.33 64 Bits
Graphics card: Radeon RX Vega (VEGA10, DRM 3.41.0, 5.13.0-7620-generic, LLVM 12.0.0) AMD 4.6 (Core Profile) Mesa 21.2.2

Blender Version
Broken:

  • version: 3.0.0 Beta, branch: master, commit date: 2021-11-24 09:05, hash: rB785503a7e4d1
  • version 3.1.0 Alpha

Worked:

  • version: 2.93.6 official release.

Short description of error
When rendering an image with a resolution of 20000x10000 makes the intermediate result fully back. The transparency checkerboard also doesn't show in this case. After rendering the image is correct.

Exact steps for others to reproduce the error

  • Start Blender
  • Set render engine to cycles
  • Set render resolution to 20000x10000
  • Disable denoising (has nothing to do with the error, except that it would be very time consuming.)
  • Press F12

I was able to render with 16000x8000

Screenshot during rendering

Revisions and Commits

rC Cycles
D13385
D13385
rB Blender
D13385
D13385

Event Timeline

Jeroen Bakker (jbakker) created this task.Nov 24 2021, 10:16 AM
Jeroen Bakker (jbakker) edited projects, added Render & Cycles; removed BF Blender.
Jeroen Bakker (jbakker) renamed this task from Cycles renders black when rendering huge resolutions to Cycles renders shows black during rendering huge resolutions.Nov 24 2021, 10:19 AM
Jeroen Bakker (jbakker) updated the task description.
Garek (Garek) added a subscriber: Garek (Garek).Nov 24 2021, 12:04 PM

Can confirm. Black shows as long as either X or Y resolution are greater than 16384 (which is 2^14).
When I switch to Eevee I get an error about texture size limit, might be related?

Sergey Sharybin (sergey) claimed this task.Nov 24 2021, 2:31 PM
Sergey Sharybin (sergey) triaged this task as High priority.
Sergey Sharybin (sergey) added a comment.Nov 24 2021, 2:39 PM

This issue indeed roots into the same limitation as @Garek (Garek) pointed out: OpenGL has a limit on the texture size and in Cycles for 3.0 we are allocating one single texture for the final result. Technically it is a regression compared to 2.93, but not sure whether there is a way around it.

Guess the proper solution is to allocate multiple texture in the BlenderDisplayDriver when the render result does not fit into limitations of the OpenGL.

Marking as high priority to allow classify whether it is something we aim to be resolved before 3.0.

Jeroen Bakker (jbakker) added a comment.Nov 24 2021, 2:44 PM

Best to keep the texture to 8Kx8K. The reported max resolution of the gl driver doesn't mean that allocation of smaller textures always work.

Dalai Felinto (dfelinto) changed the task status from Needs Triage to Confirmed.Nov 24 2021, 3:58 PM
Dalai Felinto (dfelinto) added a project: BF Blender.
Brecht Van Lommel (brecht) added a subscriber: Brecht Van Lommel (brecht).Nov 24 2021, 4:00 PM

Maybe we could allocate one texture per tile, and limit the max tile size to 8k?

Sergey Sharybin (sergey) added a comment.Nov 24 2021, 4:00 PM

Good to know.

And to clarify: this but is something what is very nice to be fixed soon, but we do not consider this a stopper for 3.0.

Sergey Sharybin (sergey) added a comment.Nov 24 2021, 4:07 PM

@Brecht Van Lommel (brecht), That is definitely a possibility, and it does sound like it is simplest/cleanest approach. I'd need to think a bit about what exactly that'd mean for the display driver and graphics interop API.

Raimund Klink (Raimund58) added a subscriber: Raimund Klink (Raimund58).Nov 24 2021, 4:55 PM
Wovchik (microcoder) added a subscriber: Wovchik (microcoder).Nov 30 2021, 5:09 AM
Brecht Van Lommel (brecht) closed this task as Resolved by committing rB5e37f70307bd: Fix T93350: Cycles renders shows black during rendering huge resolutions.Dec 7 2021, 7:02 PM
Brecht Van Lommel (brecht) added a commit: rB5e37f70307bd: Fix T93350: Cycles renders shows black during rendering huge resolutions.
Brecht Van Lommel (brecht) added a commit: rB204ae33d7555: Revert "Fix T93350: Cycles renders shows black during rendering huge….Dec 7 2021, 8:52 PM
Brecht Van Lommel (brecht) reopened this task as Confirmed.Dec 8 2021, 5:02 PM
Brecht Van Lommel (brecht) changed the subtype of this task from "Report" to "Bug".Dec 8 2021, 9:49 PM
Brecht Van Lommel (brecht) closed this task as Resolved by committing rBae28d90578be: Fix T93350: Cycles renders shows black during rendering huge resolutions.Jan 7 2022, 6:37 PM
Brecht Van Lommel (brecht) added a commit: rBae28d90578be: Fix T93350: Cycles renders shows black during rendering huge resolutions.
Brecht Van Lommel (brecht) added a commit: rCd3a486d3fb2d: Fix T93350: Cycles renders shows black during rendering huge resolutions.Jan 27 2022, 11:37 PM
Brecht Van Lommel (brecht) added a commit: rC1031647a4d63: Revert "Fix T93350: Cycles renders shows black during rendering huge….
Brecht Van Lommel (brecht) added a commit: rCd29923554a7a: Fix T93350: Cycles renders shows black during rendering huge resolutions.