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
AgeCommit message (Collapse)Author
2020-05-07Merge branch 'blender-v2.83-release'Brecht Van Lommel
2020-05-07Fix T76510: Eevee OpenVDB render artifacts due to texture clampingBrecht Van Lommel
2020-05-05Cleanup: warningsCampbell Barton
2020-05-04Merge branch 'blender-v2.83-release'Hans Goudey
2020-05-04GPU: Set Default Buffer Size Immediate ModeJeroen Bakker
We set the default buffer size for strict buffers to 0. This increased the performance on intel but reduced the performance on old AMD cards. This patch sets back the default buffer size for strict buffers. After testing I didn't detect a slow-down anymore. Note that today new firmwares were pushed to the device what might fix some issues.
2020-05-04Revert "Possible fix for T76113: Use GL_STATIC_DRAW in immBegin"mano-wii
This reverts commit 7df51ca11a227b5e51290f8dc976972a01db5d81. Did not solve the main problem.
2020-05-03Cleanup: sort file listsCampbell Barton
2020-05-02Possible fix for T76113: Use GL_STATIC_DRAW in immBeginmano-wii
This fixes a freeze when closing temporary windows with `AMD Radeon HD 7570M` The performance is practically the same between calls (with a micro advantage for `GL_STATIC_DRAW`) I couldn't check the difference in memory usage. The ideal would be profile in different setups. But due to the seriousness of the bug, these tests were postponed.
2020-04-30Fix animation player checkerboard drawing with alpha channelsCampbell Barton
Was using uninitialized theme values.
2020-04-27GPU: add assert for immBegin buffer size & contextChristian Rauch
2020-04-26Merge branch 'blender-v2.83-release'Clément Foucault
2020-04-26GPU: Add better support for texture copy fallbackClément Foucault
Depth texture copy using glCopyTexSubImage2D is undefined behavior since you cannot bind GL_DEPTH_ATTACHMENT to glReadBuffer. Using glBlitFramebuffer as a fallback.
2020-04-24Merge branch 'blender-v2.83-release'Clément Foucault
2020-04-24GPU: Add Polyline shader (wide line emulation)Clément Foucault
This new shader is able to emulate smooth wide lines drawing using a geometry shader. This shader needs viewportSize and lineWidth uniforms to be set. There is multiple variants to replace the usage of wide lines for most shaders. This patch only fix the gizmo_types files and the navigation gizmo. Other areas could be fixed afterward, I just limited the patch size. Fix T57570. Reviewed By: billreynish Differential Revision: https://developer.blender.org/D7487
2020-04-22Merge branch 'blender-v2.83-release'Clément Foucault
2020-04-22GPU: Add GPU_texture_copyClément Foucault
This allow to copy entire texture in a faster way than using framebuffer blitting. This uses ARB_copy_image extension if available and fallback to glCopyTexSubImage2D for older gl version. Both method should be as fast if not faster than the framebuffer blitting.
2020-04-22Merge branch 'blender-v2.83-release'Sebastián Barschkis
2020-04-22Cleanup: Spelling in function nameSergey Sharybin
Should be no functional changes.
2020-04-20Merge branch 'blender-v2.83-release'Bastien Montagne
2020-04-20Fix T75914: Assert Knife ToolJeroen Bakker
Actually the assert was incorrect. It tested for an active buffer, but an batch would also be ok.
2020-04-20Merge branch 'blender-v2.83-release'Campbell Barton
2020-04-20Cleanup: accidental value declaration with struct typeCampbell Barton
2020-04-20Merge branch 'blender-v2.83-release'Pablo Dobarro
2020-04-20Fix T75329: Missing show_face_sets checks for MultiresPablo Dobarro
These values were hardcoded before Face Sets were enabled for Multires, so enable the show_face_sets checks now. Reviewed By: jbakker Maniphest Tasks: T75329 Differential Revision: https://developer.blender.org/D7444
2020-04-17Merge branch 'blender-v2.83-release'Clément Foucault
2020-04-17GPU: Fix typo making RG16F use 16 bytes instead of 4Clément Foucault
2020-04-17GPU: Fix missing SRGB8_ALPHA8 debug stringClément Foucault
2020-04-17Cleanup: use colon after doxygen parameters, spellingCampbell Barton
2020-04-16Merge branch 'blender-v2.83-release'Bastien Montagne
2020-04-16Fix Memory Leak in Shader InterfaceJeroen Bakker
2020-04-16Fix T74964 Stereo 3D anaglyph and interlace not workingClément Foucault
Caused by framebuffer initialized in the wrong context.
2020-04-16GPU: Fix Negative ShiftJeroen Bakker
glAttributes also include `gl_` names. These don't have a location and should be ignored during shader interface creation. Those internal names received a location of -1 and therefore the bitmasking was undefined. Users wouldn't notice this, but ASAN warned developers of this situation. ASAN could quit making ASAN un-usable as most shaders have this issue. Reviewed By: Clément Foucault` Differential Revision: https://developer.blender.org/D7448
2020-04-16GPUImmediate: Use 2 Buffers For (Un)StrictJeroen Bakker
We used to have a single buffer that was shared between strict and unstrict draw calls. This leads to many recreation events for the draw buffers. This patch separates the Unstrict draw buffer from the strict draw buffer. This improves performance on Windows Intel 10th gen platform. On a reference platfor before the patch I got 10 FPS, after this patch it became 34fps. Note that the same test normally on a low end GPU can get to 60fps so this does not solve all teh bottlenecks yet. Reviewed By: Clément Foucault Differential Revision: https://developer.blender.org/D7421
2020-04-16GPUViewport: Use GPUBatch for viewport drawingJeroen Bakker
When drawing the viewport to the screen the draw calls were not batched. This resulted in measurable slowdown on Windows Intel 10th gen platforms. This patch would cache the last draw calls per viewport. Our API does support partial redrawing of the viewport, but that isn't used anywhere. This patch does not include stereoscopy rendering. This still uses the imm approach and would still be slow on certain hardware. Reviewed By: Clément Foucault Differential Revision: https://developer.blender.org/D7357
2020-04-15Fix T75443 Color Management: Use after free crash when using curve mappingClément Foucault
The root cause is that viewport can draw cached version of themself but the scene can have been updated and the pointed curvemapping could have been freed. To workaround this we just keep a copy of the curvemap at the viewport level.
2020-04-15Fix shader error sRGB gizmo drawing workaroundCampbell Barton
Issue in 21c658b718b9b with function being defined twice.
2020-04-14GPUShader: Implement workaround for gizmo drawing on sRGB framebufferClément Foucault
This solution involves adding a uniform to each fragment shader that is used by gizmo drawing and use the framebuffer state to set this uniform accordingly. This solution can also be carried to external shaders (addons). A single line of code would then be enough to fix the issue. The only trickery here is the dummy define: `#define srgb_to_framebuffer_space(a)` This is in order to avoid breaking other DRW shaders that use the same fragment shader code but do not need the tranformation. Related to T74139 Reviewed By: brecht, campbellbarton Differential Revision: https://developer.blender.org/D7261
2020-04-11Revert "GPUViewport: Use GPUBatch for viewport drawing"Brecht Van Lommel
This reverts commit 862ec829422241878b3345661476d8551935aed2. It causes crashes on some systems, see T75584.
2020-04-09Shading: add Roughness input to Noise and Wave texture nodesBartosz Moniewski
Currently in fractal_noise functions, each subsequent octave doubles the frequency and reduces the amplitude by half. This patch introduces Roughness input to Noise and Wave nodes. This multiplier determines how quickly the amplitudes of the subsequent octaves decrease. Value of 0.5 will be the default, generating identical noise we had before. Values above 0.5 will increase influence of each octave resulting in more "rough" noise, most interesting pattern changes happen there. Values below 0.5 will result in more "smooth" noise. Differential Revision: https://developer.blender.org/D7065
2020-04-09GPUViewport: Use GPUBatch for viewport drawingJeroen Bakker
When drawing the viewport to the screen the draw calls were not batched. This resulted in measurable slowdown on Windows Intel 10th gen platforms. This patch would cache the last draw calls per viewport. Our API does support partial redrawing of the viewport, but that isn't used anywhere. This patch does not include stereoscopy rendering. This still uses the imm approach and would still be slow on certain hardware. Reviewed By: Clément Foucault Differential Revision: https://developer.blender.org/D7357
2020-04-07Cleanup: use doxy sectionsCampbell Barton
2020-04-07Revert "Fix memory leak in recent panel drag widget cache"Campbell Barton
This reverts commit 58e20b432a2bd7fbff7ebb7aa1f49a6662dc6e7c. Was calling discard twice, tsk. Although for some reason it did quiet the leak. Reverting because this is causing a crash.
2020-04-07Fix memory leak in recent panel drag widget cacheCampbell Barton
Memory leak from 60d873bd22121.
2020-04-07GPUBatch: Correctly Free Panel Widget BatchJeroen Bakker
The GPU Batch for the panel drag widget wasn't freed anywhere. This patch will free the GPUBatch.
2020-04-06GPU: Panel Drag Widget Drawing PerformanceJeroen Bakker
The 10g Intel/Win driver doesn't work well with our emulated intermediate mode. This patch alters the drawing of the drag widget of the panels to reduce unneeded drawing. The previous method would draw 16 boxes per widget. This new way would cache this drawing in a GPU batch and just move the matrix around. Reviewed By: Clément Foucault Differential Revision: https://developer.blender.org/D7345
2020-04-03Code Quality: Replace for loops with LISTBASE_FOREACHDalai Felinto
Note this only changes cases where the variable was declared inside the for loop. To handle it outside as well is a different challenge. Differential Revision: https://developer.blender.org/D7320
2020-04-03Cleanup: Fix build warning with MSVCRay Molenkamp
SubdivCCG was unknown when compiling gpuinit_exit.c
2020-04-03Cleanup: use term 'attr' instead of 'attrib'Campbell Barton
This was already the case in most parts of the GPU API. Use full name for descriptive-comments.
2020-04-01Cleanup: quiet discarded-qualifiers, unused warningsCampbell Barton
2020-04-01Multires: Initial Face Sets supportPablo Dobarro
This implements the Sculpt Mode API functions needed for Face Sets and visibility management for PBVH_GRIDS. No major changes were needed in the operators and the sculpt mode code. This implementation stores the face sets in the base mesh, so faces created in higher subdivision levels can't be modified individually. Also, we are not checking for multiple face sets per vertex (that can be added in the future), so relax tools don't work yet. The rest of the features (paint, undo, visibility operators..) work as expected. Reviewed By: brecht Differential Revision: https://developer.blender.org/D7168