Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/opengl/gl_backend.cc
| Show First 20 Lines • Show All 234 Lines • ▼ Show 20 Lines | if (G.debug & G_DEBUG_GPU_FORCE_WORKAROUNDS) { | ||||
| printf(" renderer: %s\n", renderer); | printf(" renderer: %s\n", renderer); | ||||
| printf(" version: %s\n\n", version); | printf(" version: %s\n\n", version); | ||||
| GCaps.depth_blitting_workaround = true; | GCaps.depth_blitting_workaround = true; | ||||
| GCaps.mip_render_workaround = true; | GCaps.mip_render_workaround = true; | ||||
| GLContext::debug_layer_workaround = true; | GLContext::debug_layer_workaround = true; | ||||
| GLContext::unused_fb_slot_workaround = true; | GLContext::unused_fb_slot_workaround = true; | ||||
| /* Turn off extensions. */ | /* Turn off extensions. */ | ||||
| GCaps.shader_image_load_store_support = false; | GCaps.shader_image_load_store_support = false; | ||||
| GCaps.shader_storage_buffer_objects_support = false; | |||||
| GLContext::base_instance_support = false; | GLContext::base_instance_support = false; | ||||
| GLContext::clear_texture_support = false; | GLContext::clear_texture_support = false; | ||||
| GLContext::copy_image_support = false; | GLContext::copy_image_support = false; | ||||
| GLContext::debug_layer_support = false; | GLContext::debug_layer_support = false; | ||||
| GLContext::direct_state_access_support = false; | GLContext::direct_state_access_support = false; | ||||
| GLContext::fixed_restart_index_support = false; | GLContext::fixed_restart_index_support = false; | ||||
| GLContext::multi_bind_support = false; | GLContext::multi_bind_support = false; | ||||
| GLContext::multi_draw_indirect_support = false; | GLContext::multi_draw_indirect_support = false; | ||||
| ▲ Show 20 Lines • Show All 162 Lines • ▼ Show 20 Lines | if (GLContext::debug_layer_support == false) { | ||||
| GLContext::debug_layer_workaround = true; | GLContext::debug_layer_workaround = true; | ||||
| } | } | ||||
| /* Broken glGenerateMipmap on macOS 10.15.7 security update. */ | /* Broken glGenerateMipmap on macOS 10.15.7 security update. */ | ||||
| if (GPU_type_matches(GPU_DEVICE_INTEL, GPU_OS_MAC, GPU_DRIVER_ANY) && | if (GPU_type_matches(GPU_DEVICE_INTEL, GPU_OS_MAC, GPU_DRIVER_ANY) && | ||||
| strstr(renderer, "HD Graphics 4000")) { | strstr(renderer, "HD Graphics 4000")) { | ||||
| GLContext::generate_mipmap_workaround = true; | GLContext::generate_mipmap_workaround = true; | ||||
| } | } | ||||
| /* Buggy interface query functions cause crashes when handling SSBOs (T93680) */ | |||||
| if (GPU_type_matches(GPU_DEVICE_INTEL, GPU_OS_ANY, GPU_DRIVER_ANY) && | |||||
| (strstr(renderer, "HD Graphics 4400")|| strstr(renderer, "HD Graphics 4600"))) { | |||||
| GCaps.shader_storage_buffer_objects_support = false; | |||||
| } | |||||
| } // namespace blender::gpu | } // namespace blender::gpu | ||||
| /** Internal capabilities. */ | /** Internal capabilities. */ | ||||
| GLint GLContext::max_cubemap_size = 0; | GLint GLContext::max_cubemap_size = 0; | ||||
| GLint GLContext::max_texture_3d_size = 0; | GLint GLContext::max_texture_3d_size = 0; | ||||
| GLint GLContext::max_ubo_binds = 0; | GLint GLContext::max_ubo_binds = 0; | ||||
| GLint GLContext::max_ubo_size = 0; | GLint GLContext::max_ubo_size = 0; | ||||
| ▲ Show 20 Lines • Show All 87 Lines • Show Last 20 Lines | |||||