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
2019-04-02Cleanup: empty expression statement warningCampbell Barton
2019-03-24Cleanup: redundant use of string formatting functionsCampbell Barton
2019-03-22GPU: Create and use new GPU_texture_read_rect utility.mano-wii
2019-03-20Cleanup: use lowercase for dimensions in function namesCampbell Barton
Most API's already use this convention.
2019-03-19Cleanup: comment blocksCampbell Barton
2019-02-18doxygen: update doxygen & add balembic groupCampbell Barton
2019-02-01Cleanup: remove redundant, invalid info from headersCampbell Barton
BF-admins agree to remove header information that isn't useful, to reduce noise. - BEGIN/END license blocks Developers should add non license comments as separate comment blocks. No need for separator text. - Contributors This is often invalid, outdated or misleading especially when splitting files. It's more useful to git-blame to find out who has developed the code. See P901 for script to perform these edits.
2019-01-29Cleanup: replace attrib w/ attrCampbell Barton
Also rename GPUVertexAttribs to GPUVertAttrLayers, avoids confusion with GPUVertAttr which isn't closely related.
2019-01-26Cleanup: remove redundant BKE/BLI/BIF headersCampbell Barton
2019-01-25T60745: GPU texture alloc failed when opening Preference WindowsClément Foucault
Was generating INVALID_FRAMEBUFFER here instead of failled texture alloc. Add safety asserts in gpu_texture.c and clamp minimum size to 1 inside GPU_offscreen_create.
2019-01-23Cleanup: use eGPU prefix for GPU enum typesCampbell Barton
2018-12-15Fix T56185, T59351: bypass GL_PROXY_TEXTURE.. test on AMD GPU + windowsmano-wii
This replaces the test of consistency and capacity made with `GL_PROXY_TEXTURE_..` on AMD GPUs with one that checks only if the texture fits the limits of size and layer. Differential Revision: https://developer.blender.org/D4081
2018-12-12GPUTexture: Add debug print for cubemap texturesClément Foucault
2018-12-12GPUTexture: Fix memory statistics not working for Multisamples texturesClément Foucault
and also output the vram footprint of the texture at the creation. Also output the full texture memory usage if alloc fails.
2018-12-11GPUTexture: Add debug output to check what texture was createdClément Foucault
2018-12-03Workbench: Reduce VRAM usage depending on modeClément Foucault
We exploit the fact that we are using the metallic workflow for material and pass the metallic parameter instead of the specular color. Pack the front facing bit in the color buffer only for matcap display. Change buffer formats to use less bytes as possible. Also don't request buffers that we won't use. Saved 40MB on 2K screen on StudioLight + Shadows + Specular Lighting. Includes several cleanups.
2018-11-30GPUTexture: Add support for GL_R16 texture formatClément Foucault
2018-10-26Eevee: SSS: Fix issue with mac and stencil buffer blittingClément Foucault
Adding a workaround in this case: we blit the depth buffer instead of the stencil buffer and use the copy as the texture. This is slower but at least it should work.
2018-10-26GPU: Add workarounds for buggy glBlitFramebuffer function on macOS + RadeonClément Foucault
When calling glBlitFramebuffer on most (if not all) mac that have a GPU from the Radeon Pro series, the data is not properly copied and only a subset of the pixels are correctly copied. This only happens when blitting the depth buffer if the depth buffer is GL_DEPTH24_STENCIL8. Changing the depth buffer format to GPU_DEPTH32F_STENCIL8 fixes the issue but only works if blitting the depth componnent. The stencil componnent still provoke issues when being copied.
2018-10-26GPUTexture: Add supports for GL_DEPTH32F_STENCIL8 texture formatClément Foucault
2018-10-22GPU: Fix Issue with recursive downsample and Intel HDXXXClément Foucault
This is caused by a driver bug that prevent us from rendering to (or even binding) a texture mip level that is below GL_TEXTURE_MAX_LEVEL of the target texture. This is fine in most drivers (and legal AFAIK) but not on thoses Intels HDXXX + Windows. As a fix we just put GL_TEXTURE_MAX_LEVEL lower (which is illegal because it is undefined behaviour), but in practice it works ok and does not trigger any warnings or errors. This commit fixes most of the problems encountered on these GPUs (T56668).
2018-10-12GPUTexture: Add support for GPU_RGBA8UIClément Foucault
2018-09-24Spelling fixes in comments and descriptions (2.8 changes), patch by luzpaz.Brecht Van Lommel
Differential Revision: https://developer.blender.org/D3719
2018-09-15GPUTexture: Fix problem with glGenerateMipmapClément Foucault
Fix T56789: There was issue with certain driver with glGenerateMipmap and GPU_DEPTH_COMPONENT24. In this case we just create a complete texture with mipmaps manually without downsampling / initializing the data.
2018-09-12Cleanup: use uint/uchar types in GPUCampbell Barton
2018-09-10Fix assert when toggling Xray mode after going to Solid and lookedev/eeveeClément Foucault
2018-08-10GPUMaterial: Group all colorband texture togetherClément Foucault
This lower the use of texture samplers slots and let users use more real textures in their shaders. This patch also make the ramp texture 16 bit floating point. Meaning you can now use value greater than one in your color ramps. With the limit of 128 colorband per shader (a color band being either a color ramp, a wavelength node or a curve node (and maybe wavelength node in the future)). Only drawback with the current implementation is that it does not remove colorband from pruned GPUNodes but it shouldn't really matter in practice. This should fix T56010
2018-07-27GPUTexture: Fix wrong texture size checkClément Foucault
2018-07-27Fix GPU build error after recent commit.Brecht Van Lommel
2018-07-27Fix T55888: Eevee: crash when shadow cube size is > 512pxClément Foucault
Note that this was only reported to happen on AMD GPU + windows.
2018-07-19GPU: Add GC to FBOs and UBOs and centralize all GCsClément Foucault
GPUFrameBuffers were being free when no context was attached or in the wrong gl context. This make sure this does not happen again. You can now safely free any gl resource from any thread (well as long as it's not used anymore!).
2018-07-18Cleanup: style for GPU moduleCampbell Barton
2018-07-18GWN: Port to GPU module: Replace GWN prefix by GPUClément Foucault
2018-07-10GPUTexture: Refactor of texture creation & new featureClément Foucault
- Texture creation now requires explicit data type. - GPU_texture_add_mipmap enable explicit mipmap upload. - GPU_texture_get_mipmap_size can be used to get the size of a mipmap level of an existing GPUTexture - GPU_texture_read let you read back data from a gpu texture.
2018-07-08Cleanup: rename 'ct' to 'len' for gawainCampbell Barton
2018-06-27bf_gpu: Add GPU_state module.Ray Molenkamp
This has wrappers for the most common gl* functions in the codebase, and is in preparation for D3502 Reviewers: brecht, fclem Differential Revision: https://developer.blender.org/D3501
2018-06-25Cleanup: code styleCampbell Barton
2018-06-22Cleanup: styleCampbell Barton
2018-06-22Cleanup: suppress assert in recent GPU refactorCampbell Barton
2018-06-22GLRefactor: Refactor bf_blenfont to use GPUTexture instead of raw GL calls ↵Ray Molenkamp
and types. In an effort to centralize all opengl calls in the codebase, this patch replaces the raw opengl calls in bf_blenfont with GPUTexture so it's no longer depended on opengl headers. reviewer: Brecht Differential Revision: https://developer.blender.org/D3483
2018-06-12Cleanup: remove image->bindcode, always wrap in GPUTexture.Brecht Van Lommel
This simplifies code, and will hopefully make UDIM usage of GPUTexture a little easier.
2018-06-11Revert "Cleanup: remove image->bindcode, always wrap in GPUTexture."Brecht Van Lommel
This reverts commit 8242a5bc853a74da1273fc7ad4b959ac716c563c. This isn't quite ready to use yet.
2018-06-11Cleanup: remove image->bindcode, always wrap in GPUTexture.Brecht Van Lommel
2018-06-08Rename: GPU_texture_orphansDalai Felinto
2018-06-04Merge branch 'master' into blender2.8Campbell Barton
2018-06-04 Cleanup: strip trailing space in GPU moduleCampbell Barton
2018-06-03GPUTexture: Fix memleak in orphaned texture management.Clément Foucault
2018-06-02GPU: Fix texture being freed in threads without ogl context bound.Clément Foucault
This is a dirty fix. A bit more cleaner approach would be to check if a context is bound and delay the deletion only in this case. Also we may want to do this orphan deletion at some other places than wm_window_swap_buffers.
2018-05-31GPUTexture: Expose GPU_texture_create_buffer and add GL_R32I support.Clément Foucault
2018-05-30GPUTexture: Add support for GL_RGBA16 texture format.Clément Foucault