GPUOpen-LibrariesAndSDKs / RadeonProRenderBlenderAddon

This hardware-agnostic rendering plug-in for Blender uses accurate ray-tracing technology to produce images and animations of your scenes, and provides real-time interactive rendering and continuous adjustment of effects.
https://gpuopen.com/radeon-prorender-suite/
Apache License 2.0
480 stars 56 forks source link

RPRBLND-2242: Enable 4GB gpu and non HW RT GPU in Hybrid Pro. #610

Closed VascoPi closed 1 year ago

VascoPi commented 1 year ago

PURPOSE

Enable 4GB gpu and non HW RT GPU in Hybrid Pro.

EFFECT OF CHANGE

Added option for GPUs with 4Gb VRAM and less. image

TECHNICAL STEPS

Added viewport_hybrid_low_mem bool property to separate final and viewport properties. Added condition for context init if viewport_hybrid_low_mem or hybrid_low_mem is enabled. Set hybridpro context props:

CONTEXT_CREATEPROP_HYBRID_STAGING_MEMORY_SIZE = 32Mb
CONTEXT_CREATEPROP_HYBRID_SCRATCH_MEMORY_SIZE = 16Mb

Set hybrid context props: CONTEXT_CREATEPROP_HYBRID_ACC_MEMORY_SIZE = 1Gb

NOTES FOR REVIEWERS

Should be reviewed with https://github.com/GPUOpen-LibrariesAndSDKs/RadeonProRenderBlenderAddon/pull/586