Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
AgeCommit message (Collapse)Author
2022-02-06GPU: move gpu_shader_shared_utils.h to the public section of the moduleClément Foucault
This is then easier to include in other modules.
2022-02-06Merge branch 'blender-v3.1-release'Clément Foucault
2022-02-05GPUTexture: Fix missing/wrong cases in to_data_format()Clément Foucault
2022-02-05GPU: Enable CLOG for gpu when `--debug-gpu` option is setClément Foucault
This is because all of the debug printing is done through CLog now. Without it the is little point in this option.
2022-02-05GL: Fix compute shader label errorClément Foucault
2022-02-05DRW: Fix memory leak in UniformArrayBufferClément Foucault
2022-02-05GLShaderInterface: Fix SSBO using the ubo maskClément Foucault
This might head lead to a crash when a shader uses both ubo and ssbo.
2022-02-05BLF: Cleanup blf_glyph_cache_find & blf_font_sizeHarley Acheson
Removes unnecessary calls to blf_glyph_cache_find, simplifies blf_font_size, and reduces calls to it. blf_glyph_cache_new and blf_glyph_cache_find made static. See D13374 for more details. Differential Revision: https://developer.blender.org/D13374 Reviewed by Campbell Barton
2022-02-05BLF: Default Size as FloatHarley Acheson
Allowing setting and storing of the default font size as float. See D13230 for more details. Differential Revision: https://developer.blender.org/D13230 Reviewed by Campbell Barton
2022-02-05Partially pevert "Fix error in b1b1a74af15b4eaa0757ad88acfbcac73b9a64fe"Germano Cavalcante
This partially reverts commit 81d2eda2bf8a0d73ed7bbf077c9fa4ffcf54aa6c. That commit introduced unrelated changes.
2022-02-05BLF: Removal of blf_font_draw_ascii DeclarationHarley Acheson
Removal of declaration of unused blf_font_draw_ascii See D13624 for more details. Differential Revision: https://developer.blender.org/D13624 Reviewed by Campbell Barton
2022-02-05BLF: Save fixed_width value in cacheHarley Acheson
Cache the font size's ideal fixed width column size in the glyph cache rather than the font itself to improve performance. See D13226 for more details. Differential Revision: https://developer.blender.org/D13226 Reviewed by Campbell Barton
2022-02-05BLF: blf_glyph_cache_free Made StaticHarley Acheson
blf_glyph_cache_free does not need to be public. See D13395 for more details. Differential Revision: https://developer.blender.org/D13395 Reviewed by Campbell Barton
2022-02-05Fix error in b1b1a74af15b4eaa0757ad88acfbcac73b9a64feGermano Cavalcante
`op` --> `op->customdata`
2022-02-05Cleanup: set 'op->customdata' out of 'viewops_data_create'Germano Cavalcante
Setting the `op->customdata` out of `viewops_data_create` makes the usage of the function clearer thus making the code easier to read.
2022-02-05Cleanup: merge functions with similar usageGermano Cavalcante
`viewops_data_alloc` allocates and stores some pointers in `ViewOpsData` while `viewops_data_create` reuses already stored pointers and also stores others in `ViewOpsData`. The similar names and usages can confuse and in this case it also creates a dependency on the order in which these functions are called. Merging these functions simplifies usage and deduplicates code.
2022-02-04Cleanup: Grammar in comments and tooltipsHans Goudey
- "own" -> "its own" - "it's" -> "its" - Use proper plural
2022-02-04Fix: Remove incorrect assert in mesh modifier evaluationHans Goudey
Since we have a node that sets a mesh's auto smooth angle (unfortunately, in retrospect), we generally can't assume at all that value is the same as whatever input mesh. Similar asserts were removed previously in 8216b759e9557c786. While the attempt at assertions to clarify assumptions is noble, this one doesn't make sense anymore. I found this while investigating T95479. Differential Revision: https://developer.blender.org/D14009
2022-02-04GLShader: Fix several low importance issuesClément Foucault
- Fix image.format conversion to string - Fix warnings about ARB_conservative_depth not found even if GL > 4.2 - Add `array(type)` define for portable array definition
2022-02-04GPUShader: Improve error/warning logging experienceClément Foucault
Thanks to the new `ShaderCreateInfo` we now include source files without any modification. This let us query which are the source files passed to the `print_log` function. The log will now include a file with row and column number which is interpreted as a link in most IDE. DEBUG_CONTEXT_LINES will add more lines around the error lines for more context. This is also useful if the error line is imprecise (because of driver bugs) and the reported line is not sufficient to know the location of the error. The DEBUG_DEPENDENCIES option will display the list of included files in the shader sources. Note that it will not print generated source. This commit also fixes some issues with unhelpful logs, bogus row & column numbers, other error format, and bug if row was 0.
2022-02-04GPUShader: Cleanup dependency system to not remove string allocationClément Foucault
Source files are now only referenced and listed for the driver to ingest. Shader sources now includes generated data if any. Also cleans up gpu_shader_dependency_get_builtins casts.
2022-02-04GL: Add all image types in binding setup.Clément Foucault
2022-02-04GPUFramebuffer: Bump max attachment count to 8Clément Foucault
This is needed by eevee-rewrite
2022-02-04GPUShaderCreateInfo: Merge changes from eevee-rewriteClément Foucault
This includes multiple commits: - Fix crash when using std::cerr for error output - Add auto_resource_location which overrides all resources location (not vert input) - Improve codestyle of error reporting. - Add type conversion to string and to `eGPUType` - Add comparison operator (will be used for hash collision resolution). - Add members related to generated code (codegen)
2022-02-04GPUState: Add more barrier typesClément Foucault
This will be useful when compute shader will be used more. Refer to the opengl documentation for their meaning. https://www.khronos.org/registry/OpenGL-Refpages/gl4/html/glMemoryBarrier.xhtml
2022-02-04Cleanup: Remove unused "init" node tree flagHans Goudey
The value of this flag was set, but not used anywhere. Differential Revision: https://developer.blender.org/D13519
2022-02-04Merge branch 'blender-v3.1-release'Clément Foucault
2022-02-04Workbench: Fix unreported heavily quantized mesh due to driver issueClément Foucault
Detected on `amdgpu-pro` libGL implementation. The workaround is to not use explicit location for vertex attributes. This is not a real problem as we don't rely on them for now.
2022-02-04Fix: Incorrect default distance for merge by distance nodeHans Goudey
This was an oversight in the patch that added this node, the default merge distance is meant to be the same as the weld modifier, 0.001m, meaning by in most situations it removes vertices generally at the same location.
2022-02-04Fix T94410: stopping Cycles render in 3D viewport quad view keeps using CPUBrecht Van Lommel
Only one of the four renders was being stopped.
2022-02-04DRW: Fix a commentClément Foucault
2022-02-04Cleanup: Overlay: Remove uneeded UBO bindsClément Foucault
2022-02-04DRW: Add DRW_UNUSED_RESOURCE_TRACKING for ubo and ssboClément Foucault
When uncommented, this option will make any call binding a resource that is not present in the shader produce a warning message with its origin.
2022-02-04DRW: Add compute_ref calls, barriers calls, and vertex_buffer_refClément Foucault
- Compute ref let the size of dispatch be modified just before drawing. - Barrier call makes it possible to chain multiple compute passes in one pass. - DRW_shgroup_vertex_buffer_ref is the analog of DRW_shgroup_uniform_block_ref.
2022-02-04DRW: Fix bug in cubemap creation in draw::TextureClément Foucault
The order of if clause made impossible to create a cubemap.
2022-02-04Fix T95471: baking normals wrong after recent MVert normals refactorBrecht Van Lommel
2022-02-04Fix: Remove incorrect assert in mesh modifier evaluationHans Goudey
Since we have a node that sets a mesh's auto smooth angle (unfortunately, in retrospect), we generally can't assume at all that value is the same as whatever input mesh. Similar asserts were removed previously in 8216b759e9557c786. While the attempt at assertions to clarify assumptions is noble, this one doesn't make sense anymore. I found this while investigating T95479. Differential Revision: https://developer.blender.org/D14009
2022-02-04Attributes: Infrastructure for generic 8-bit integer data typeHans Goudey
This commit adds infrastructure for 8 bit signed integer attributes. This can be useful given the discussion in T94193, where we want to store spline type, Bezier handle type, and other small enums as attributes. This is only exposed in the interface in the attribute lists, so it shouldn't be an option in geometry nodes, at least for now. I expect that this type won't be used directly very often, it should mostly be cast to an enum type. However, with support for 8 bit integers, it also makes sense to add things like mixing implementations for consistency. Differential Revision: https://developer.blender.org/D13721
2022-02-04Cleanup: avoid generating some functions in all translation unitsJacques Lucke
Every translation unit that included the modified headers generated some extra code, even though it was not used. This adds unnecessary compile time overhead and is annoying when investigating the generated assembly.
2022-02-04macOS: support building blender-thumbnailerAnkit Meel
It was missing framework flags added in `setup_platform_linker_flags`. Keep it off until QuickLook Thumbnailing is implemented. Differential Revision: https://developer.blender.org/D13997
2022-02-04Merge branch 'blender-v3.1-release'Sergey Sharybin
2022-02-04Fix T95467: Textures disappear when going to Edit Mesh on Solid Texture modeSergey Sharybin
The check for existence of custom data layers did not take wrapper nature of mesh into account. Quickest and safest for 3.1 solution is to take care of branching of checks in the draw manager. Ideally both wrapper and mesh access will happen via the same public API without branching in the "user" code. That is something outside of the fix for the coming release though. Differential Revision: https://developer.blender.org/D14013
2022-02-04Merge branch 'blender-v3.1-release'Clément Foucault
# Conflicts: # source/blender/draw/engines/workbench/workbench_effect_cavity.c
2022-02-04Cleanup: Removed Object type specific 'make_local' callback.Bastien Montagne
This callback was only needed to allow specific handling of proxies, now that theses have been removed the generic `BKE_lib_id_make_local_generic` code works for objects as well.
2022-02-04Image Editor: Fix slowdown with 8b colormanaged images.Jeroen Bakker
Byte images are converted to float. Due to an issue how VSE cache is freeing its images we cannot store these float buffers what leads to recalculating it for each change in the image editor. This fix will reduce the slowdown to areas that have the root cause of the memory leak, so the buffers can be reused between refreshes. NOTE: The root cause should still be fixed. Thanks for reporting Sybren!
2022-02-04Fix wrong use of region size without pixel-size appliedJulian Eisel
Didn't cause visible issues, because the layout uses spacers to right-align text, which happens to use the region size with pixel-size applied for calculations.
2022-02-04View3D: move some of the early returns from operators to the poll functionGermano Cavalcante
Some navigation operators check flags like `RV3D_LOCK_ROTATION` in the invoke function to see if the operation can be performed. As the comment indicates, these checks should be in the poll function. This avoids redundant initialization. Note that this brings functional changes as now operators with context `EXEC_DEFAULT` will also be affected by the flag. (There doesn't seem to be a problem with the current code). Differential Revision: https://developer.blender.org/D14005
2022-02-04Fix: Missing translations from operator descriptionsHans Goudey
The strings in the `get_description` functions for operators need translation, they are not found by the translation system automatically, and there is no translation applied afterwards either (as far as I could tell). Some used `N_` before, but most did nothing. Differential Revision: https://developer.blender.org/D14011
2022-02-04Fix T81541: Symmetrize Transform Constraint, Y rotational axis unexpected ↵Sebastian Parborg
results The case where Y rotation is mapped to Y rotation was not handled. This is now fixed. Also added an automated test to make sure that the symmetrize operator functions as intended. Reviewed By: Sybren Differential Revision: http://developer.blender.org/D9214
2022-02-04Cleanup: Workbench: Remove unused resources in cavity shadersClément Foucault
This avoid uneeded resource binds.