GPU: Rename gpu_extensions to gpu_capabilities
This makes more sense as this module has more to it than just GL extensions.
This commit is contained in:
@@ -46,7 +46,7 @@
|
||||
|
||||
#include "BLF_api.h"
|
||||
|
||||
#include "GPU_extensions.h"
|
||||
#include "GPU_capabilities.h"
|
||||
#include "GPU_immediate.h"
|
||||
|
||||
#include "blf_internal.h"
|
||||
|
@@ -39,7 +39,7 @@
|
||||
#include "BKE_image.h"
|
||||
#include "BKE_main.h"
|
||||
|
||||
#include "GPU_extensions.h"
|
||||
#include "GPU_capabilities.h"
|
||||
#include "GPU_state.h"
|
||||
#include "GPU_texture.h"
|
||||
|
||||
|
@@ -26,7 +26,7 @@
|
||||
|
||||
#include "BKE_global.h" /* for G.debug_value */
|
||||
|
||||
#include "GPU_extensions.h"
|
||||
#include "GPU_capabilities.h"
|
||||
#include "GPU_platform.h"
|
||||
#include "GPU_state.h"
|
||||
#include "GPU_texture.h"
|
||||
|
@@ -41,8 +41,8 @@
|
||||
#include "eevee_lightcache.h"
|
||||
#include "eevee_private.h"
|
||||
|
||||
#include "GPU_capabilities.h"
|
||||
#include "GPU_context.h"
|
||||
#include "GPU_extensions.h"
|
||||
|
||||
#include "WM_api.h"
|
||||
#include "WM_types.h"
|
||||
|
@@ -36,7 +36,7 @@
|
||||
#include "BKE_object.h"
|
||||
#include "MEM_guardedalloc.h"
|
||||
|
||||
#include "GPU_extensions.h"
|
||||
#include "GPU_capabilities.h"
|
||||
#include "GPU_material.h"
|
||||
#include "GPU_texture.h"
|
||||
#include "GPU_uniform_buffer.h"
|
||||
|
@@ -32,7 +32,7 @@
|
||||
|
||||
#include "eevee_private.h"
|
||||
|
||||
#include "GPU_extensions.h"
|
||||
#include "GPU_capabilities.h"
|
||||
#include "GPU_platform.h"
|
||||
#include "GPU_state.h"
|
||||
|
||||
|
@@ -38,7 +38,7 @@
|
||||
|
||||
#include "DEG_depsgraph_query.h"
|
||||
|
||||
#include "GPU_extensions.h"
|
||||
#include "GPU_capabilities.h"
|
||||
#include "GPU_framebuffer.h"
|
||||
#include "GPU_state.h"
|
||||
|
||||
|
@@ -32,7 +32,7 @@
|
||||
|
||||
#include "MEM_guardedalloc.h"
|
||||
|
||||
#include "GPU_extensions.h"
|
||||
#include "GPU_capabilities.h"
|
||||
#include "GPU_material.h"
|
||||
#include "GPU_shader.h"
|
||||
|
||||
|
@@ -28,7 +28,7 @@
|
||||
|
||||
#include "DEG_depsgraph_query.h"
|
||||
|
||||
#include "GPU_extensions.h"
|
||||
#include "GPU_capabilities.h"
|
||||
#include "GPU_material.h"
|
||||
#include "GPU_texture.h"
|
||||
|
||||
|
@@ -44,7 +44,7 @@
|
||||
|
||||
#include "DEG_depsgraph_query.h"
|
||||
|
||||
#include "GPU_extensions.h"
|
||||
#include "GPU_capabilities.h"
|
||||
#include "GPU_material.h"
|
||||
#include "GPU_texture.h"
|
||||
#include "eevee_private.h"
|
||||
|
@@ -31,8 +31,6 @@
|
||||
|
||||
#include "DRW_render.h"
|
||||
|
||||
#include "GPU_extensions.h"
|
||||
|
||||
#include "workbench_engine.h"
|
||||
#include "workbench_private.h"
|
||||
|
||||
|
@@ -35,8 +35,6 @@
|
||||
|
||||
#include "ED_view3d.h"
|
||||
|
||||
#include "GPU_extensions.h"
|
||||
|
||||
#include "workbench_engine.h"
|
||||
#include "workbench_private.h"
|
||||
|
||||
|
@@ -59,7 +59,7 @@
|
||||
#include "bmesh.h"
|
||||
|
||||
#include "GPU_batch.h"
|
||||
#include "GPU_extensions.h"
|
||||
#include "GPU_capabilities.h"
|
||||
|
||||
#include "DRW_render.h"
|
||||
|
||||
|
@@ -37,7 +37,7 @@
|
||||
#include "BKE_displist_tangent.h"
|
||||
|
||||
#include "GPU_batch.h"
|
||||
#include "GPU_extensions.h"
|
||||
#include "GPU_capabilities.h"
|
||||
|
||||
#include "draw_cache_inline.h"
|
||||
|
||||
|
@@ -64,7 +64,7 @@
|
||||
#include "ED_space_api.h"
|
||||
#include "ED_view3d.h"
|
||||
|
||||
#include "GPU_extensions.h"
|
||||
#include "GPU_capabilities.h"
|
||||
#include "GPU_framebuffer.h"
|
||||
#include "GPU_immediate.h"
|
||||
#include "GPU_matrix.h"
|
||||
|
@@ -29,7 +29,6 @@
|
||||
|
||||
#include "BKE_global.h"
|
||||
|
||||
#include "GPU_extensions.h"
|
||||
#include "GPU_platform.h"
|
||||
#include "GPU_shader.h"
|
||||
#include "GPU_state.h"
|
||||
|
@@ -34,7 +34,7 @@
|
||||
|
||||
#include "DEG_depsgraph_query.h"
|
||||
|
||||
#include "GPU_extensions.h"
|
||||
#include "GPU_capabilities.h"
|
||||
#include "GPU_material.h"
|
||||
#include "GPU_shader.h"
|
||||
|
||||
|
@@ -89,7 +89,7 @@
|
||||
#include "UI_resources.h"
|
||||
#include "UI_view2d.h"
|
||||
|
||||
#include "GPU_extensions.h"
|
||||
#include "GPU_capabilities.h"
|
||||
|
||||
#include "screen_intern.h" /* own module include */
|
||||
|
||||
|
@@ -90,7 +90,7 @@
|
||||
#include "ED_view3d.h"
|
||||
#include "ED_view3d_offscreen.h"
|
||||
|
||||
#include "GPU_extensions.h"
|
||||
#include "GPU_capabilities.h"
|
||||
#include "GPU_init_exit.h"
|
||||
|
||||
#include "WM_api.h"
|
||||
|
@@ -64,7 +64,7 @@
|
||||
|
||||
#include "UI_resources.h"
|
||||
|
||||
#include "GPU_extensions.h"
|
||||
#include "GPU_capabilities.h"
|
||||
|
||||
#define MAX_INFO_NUM_LEN 16
|
||||
|
||||
|
@@ -59,11 +59,11 @@ set(SRC
|
||||
intern/gpu_batch_presets.c
|
||||
intern/gpu_batch_utils.c
|
||||
intern/gpu_buffers.c
|
||||
intern/gpu_capabilities.cc
|
||||
intern/gpu_codegen.c
|
||||
intern/gpu_context.cc
|
||||
intern/gpu_debug.cc
|
||||
intern/gpu_drawlist.cc
|
||||
intern/gpu_extensions.cc
|
||||
intern/gpu_framebuffer.cc
|
||||
intern/gpu_immediate.cc
|
||||
intern/gpu_immediate_util.c
|
||||
@@ -107,11 +107,11 @@ set(SRC
|
||||
GPU_batch_presets.h
|
||||
GPU_batch_utils.h
|
||||
GPU_buffers.h
|
||||
GPU_capabilities.h
|
||||
GPU_common.h
|
||||
GPU_context.h
|
||||
GPU_debug.h
|
||||
GPU_drawlist.h
|
||||
GPU_extensions.h
|
||||
GPU_framebuffer.h
|
||||
GPU_glew.h
|
||||
GPU_immediate.h
|
||||
@@ -134,10 +134,10 @@ set(SRC
|
||||
|
||||
intern/gpu_backend.hh
|
||||
intern/gpu_batch_private.hh
|
||||
intern/gpu_capabilities_private.hh
|
||||
intern/gpu_codegen.h
|
||||
intern/gpu_context_private.hh
|
||||
intern/gpu_drawlist_private.hh
|
||||
intern/gpu_extensions_private.hh
|
||||
intern/gpu_framebuffer_private.hh
|
||||
intern/gpu_immediate_private.hh
|
||||
intern/gpu_index_buffer_private.hh
|
||||
|
@@ -19,6 +19,10 @@
|
||||
|
||||
/** \file
|
||||
* \ingroup gpu
|
||||
*
|
||||
* GPU Capabilities & workarounds
|
||||
* This module expose the reported implementation limits & enabled
|
||||
* workaround for drivers that needs specific codepaths.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
@@ -27,32 +31,23 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* GPU extensions support */
|
||||
|
||||
int GPU_max_texture_size(void);
|
||||
int GPU_max_texture_3d_size(void);
|
||||
int GPU_max_texture_layers(void);
|
||||
int GPU_max_textures(void);
|
||||
int GPU_max_textures_vert(void);
|
||||
int GPU_max_textures_geom(void);
|
||||
int GPU_max_textures_frag(void);
|
||||
float GPU_max_texture_anisotropy(void);
|
||||
int GPU_max_color_texture_samples(void);
|
||||
int GPU_max_cube_map_size(void);
|
||||
int GPU_max_ubo_binds(void);
|
||||
int GPU_max_ubo_size(void);
|
||||
|
||||
int GPU_texture_size_with_limit(int res);
|
||||
|
||||
bool GPU_mip_render_workaround(void);
|
||||
bool GPU_depth_blitting_workaround(void);
|
||||
bool GPU_use_main_context_workaround(void);
|
||||
bool GPU_crappy_amd_driver(void);
|
||||
|
||||
int GPU_texture_size_with_limit(int res);
|
||||
|
||||
bool GPU_mem_stats_supported(void);
|
||||
void GPU_mem_stats_get(int *totalmem, int *freemem);
|
||||
|
||||
void GPU_code_generate_glsl_lib(void);
|
||||
|
||||
bool GPU_stereo_quadbuffer_support(void);
|
||||
|
||||
#ifdef __cplusplus
|
@@ -30,7 +30,6 @@
|
||||
|
||||
#include "GPU_batch.h"
|
||||
#include "GPU_batch_presets.h"
|
||||
#include "GPU_extensions.h"
|
||||
#include "GPU_matrix.h"
|
||||
#include "GPU_platform.h"
|
||||
#include "GPU_shader.h"
|
||||
|
@@ -26,9 +26,9 @@
|
||||
|
||||
#include "DNA_userdef_types.h"
|
||||
|
||||
#include "GPU_extensions.h"
|
||||
#include "GPU_capabilities.h"
|
||||
|
||||
#include "gpu_extensions_private.hh"
|
||||
#include "gpu_capabilities_private.hh"
|
||||
|
||||
#include "gl_backend.hh" /* TODO remove */
|
||||
|
@@ -40,7 +40,7 @@
|
||||
|
||||
#include "BKE_material.h"
|
||||
|
||||
#include "GPU_extensions.h"
|
||||
#include "GPU_capabilities.h"
|
||||
#include "GPU_material.h"
|
||||
#include "GPU_shader.h"
|
||||
#include "GPU_uniform_buffer.h"
|
||||
|
@@ -28,7 +28,7 @@
|
||||
#include "BLI_utildefines.h"
|
||||
|
||||
#include "GPU_batch.h"
|
||||
#include "GPU_extensions.h"
|
||||
#include "GPU_capabilities.h"
|
||||
#include "GPU_shader.h"
|
||||
#include "GPU_texture.h"
|
||||
|
||||
|
@@ -36,7 +36,7 @@
|
||||
|
||||
#include "DNA_space_types.h"
|
||||
|
||||
#include "GPU_extensions.h"
|
||||
#include "GPU_capabilities.h"
|
||||
#include "GPU_matrix.h"
|
||||
#include "GPU_platform.h"
|
||||
#include "GPU_shader.h"
|
||||
|
@@ -35,7 +35,6 @@
|
||||
|
||||
#include "DNA_space_types.h"
|
||||
|
||||
#include "GPU_extensions.h"
|
||||
#include "GPU_matrix.h"
|
||||
#include "GPU_platform.h"
|
||||
#include "GPU_shader.h"
|
||||
|
@@ -30,7 +30,6 @@
|
||||
|
||||
#include "BKE_global.h"
|
||||
|
||||
#include "GPU_extensions.h"
|
||||
#include "GPU_glew.h"
|
||||
#include "GPU_state.h"
|
||||
|
||||
|
@@ -32,8 +32,6 @@
|
||||
|
||||
#include "GPU_material.h"
|
||||
|
||||
#include "GPU_extensions.h"
|
||||
|
||||
#include "GPU_uniform_buffer.h"
|
||||
#include "gpu_uniform_buffer_private.hh"
|
||||
|
||||
|
@@ -23,7 +23,7 @@
|
||||
|
||||
#include "BKE_global.h"
|
||||
|
||||
#include "gpu_extensions_private.hh"
|
||||
#include "gpu_capabilities_private.hh"
|
||||
#include "gpu_platform_private.hh"
|
||||
|
||||
#include "glew-mx.h"
|
||||
|
@@ -29,8 +29,6 @@
|
||||
|
||||
#include "glew-mx.h"
|
||||
|
||||
#include "GPU_extensions.h"
|
||||
|
||||
#include "gpu_batch_private.hh"
|
||||
#include "gpu_shader_private.hh"
|
||||
|
||||
|
@@ -27,7 +27,7 @@
|
||||
#include "BLI_assert.h"
|
||||
|
||||
#include "GPU_batch.h"
|
||||
#include "GPU_extensions.h"
|
||||
#include "GPU_capabilities.h"
|
||||
|
||||
#include "glew-mx.h"
|
||||
|
||||
|
@@ -23,7 +23,7 @@
|
||||
|
||||
#include "BKE_global.h"
|
||||
|
||||
#include "GPU_extensions.h"
|
||||
#include "GPU_capabilities.h"
|
||||
|
||||
#include "gl_backend.hh"
|
||||
#include "gl_framebuffer.hh"
|
||||
|
@@ -25,7 +25,6 @@
|
||||
|
||||
#include "BLI_string.h"
|
||||
|
||||
#include "GPU_extensions.h"
|
||||
#include "GPU_platform.h"
|
||||
|
||||
#include "gl_backend.hh"
|
||||
|
@@ -25,7 +25,7 @@
|
||||
#include "BLI_math_base.h"
|
||||
#include "BLI_math_bits.h"
|
||||
|
||||
#include "GPU_extensions.h"
|
||||
#include "GPU_capabilities.h"
|
||||
|
||||
#include "glew-mx.h"
|
||||
|
||||
|
@@ -25,7 +25,7 @@
|
||||
|
||||
#include "DNA_userdef_types.h"
|
||||
|
||||
#include "GPU_extensions.h"
|
||||
#include "GPU_capabilities.h"
|
||||
#include "GPU_framebuffer.h"
|
||||
#include "GPU_platform.h"
|
||||
|
||||
|
@@ -25,8 +25,6 @@
|
||||
|
||||
#include "BLI_string.h"
|
||||
|
||||
#include "GPU_extensions.h"
|
||||
|
||||
#include "gpu_backend.hh"
|
||||
#include "gpu_context_private.hh"
|
||||
|
||||
|
@@ -30,7 +30,7 @@
|
||||
|
||||
#include "BKE_global.h"
|
||||
|
||||
#include "GPU_extensions.h"
|
||||
#include "GPU_capabilities.h"
|
||||
#include "GPU_texture.h"
|
||||
|
||||
#include "IMB_colormanagement.h"
|
||||
|
@@ -100,7 +100,7 @@ const EnumPropertyItem rna_enum_bake_pass_type_items[] = {
|
||||
# include "BKE_context.h"
|
||||
# include "BKE_report.h"
|
||||
|
||||
# include "GPU_extensions.h"
|
||||
# include "GPU_capabilities.h"
|
||||
# include "GPU_shader.h"
|
||||
# include "IMB_colormanagement.h"
|
||||
|
||||
|
@@ -188,7 +188,7 @@ static const EnumPropertyItem rna_enum_userdef_viewport_aa_items[] = {
|
||||
|
||||
# include "DEG_depsgraph.h"
|
||||
|
||||
# include "GPU_extensions.h"
|
||||
# include "GPU_capabilities.h"
|
||||
# include "GPU_select.h"
|
||||
# include "GPU_texture.h"
|
||||
|
||||
|
@@ -40,7 +40,7 @@
|
||||
|
||||
#include "ED_screen.h"
|
||||
|
||||
#include "GPU_extensions.h"
|
||||
#include "GPU_capabilities.h"
|
||||
#include "GPU_immediate.h"
|
||||
#include "GPU_texture.h"
|
||||
#include "GPU_viewport.h"
|
||||
|
Reference in New Issue
Block a user