diff options
author | Jeroen Bakker <jeroen@blender.org> | 2022-05-11 16:19:10 +0300 |
---|---|---|
committer | Jeroen Bakker <jeroen@blender.org> | 2022-05-11 16:22:01 +0300 |
commit | edd892166d48077290759c3299e2433638f85aa1 (patch) | |
tree | 3c6c51cc561bdf9d84f2a4181f5edd0f1c1aa6d2 /source/blender/blenkernel | |
parent | a3f9862262c0ef192ece6ca8241b67cda9925b32 (diff) |
Fix T97330: GPU Subdiv compiler error.
GLSL has different max number of ssbo per glsl stage.
This patch checks if the number of compute ssbo blocks matches
our requirements for the GPU Subdiv, before enabling it.
Some platforms allow more ssbo bindings then blocks per stage.
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r-- | source/blender/blenkernel/intern/subdiv_modifier.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/subdiv_modifier.c b/source/blender/blenkernel/intern/subdiv_modifier.c index 83772f153d9..3692a3cc4f7 100644 --- a/source/blender/blenkernel/intern/subdiv_modifier.c +++ b/source/blender/blenkernel/intern/subdiv_modifier.c @@ -77,7 +77,7 @@ static bool is_subdivision_evaluation_possible_on_gpu(void) return false; } - if (GPU_max_shader_storage_buffer_bindings() < MAX_GPU_SUBDIV_SSBOS) { + if (GPU_max_compute_shader_storage_blocks() < MAX_GPU_SUBDIV_SSBOS) { return false; } |