Age | Commit message (Collapse) | Author | |
---|---|---|---|
2020-08-26 | Cleanup: spelling | Campbell Barton | |
2020-08-25 | Fix T79494 Refrence Image reflects object after source got deleted | Clément Foucault | |
Silly typo was causing the error texture to not be bound. | |||
2020-08-25 | GPUState: Move state limits getter to the area they belong | Clément Foucault | |
This fix a GL_INVALID_VALUE error on startup due to 0.0f max line width. Also moves the max anisotropy filter to the sampler creation. This reduces code fragmentation. | |||
2020-08-25 | Fix T79811 MacOS: Edit Mode - vertex/edge/face selection is missing | Clément Foucault | |
The VAO reconfiguration from the offset workaround was not working. | |||
2020-08-25 | GPU: Fix compilation issue caused by rBb43f4fda19b9 | Clément Foucault | |
2020-08-25 | GL: Add error checking function | Clément Foucault | |
This is to ease the debugging process on Apple GL implementation. | |||
2020-08-25 | GPUSelect: Avoid assert caused by clearing without a depth mask | Clément Foucault | |
This should not cause any problem since the depth test is required in order to draw to the depth buffer and this is not altered by this change. To be on the safe side, we still restor the mask after altering it. | |||
2020-08-24 | T79811 MacOS: Edit Mode - vertex/edge/face selection is missing | Clément Foucault | |
This is quite embarassing... it was returning the base instance instead of the correct vao. No wonder that it was causing crash and at most drawing issues. | |||
2020-08-24 | Fix T79896 Awful performance with Dyntopo on | Clément Foucault | |
Regression caused by rB9443da6166f5. Forgot to clear the flag. | |||
2020-08-24 | GPUState: Fix scissor state being overwritten when changing scissor bounds | Clément Foucault | |
Fix T79899 viewport artifacts when sculpting | |||
2020-08-23 | Fix T80034 Crash using material panel on 2.91.0 alpha | Clément Foucault | |
This was caused by a NULL name. | |||
2020-08-23 | Cleanup: GPU: Use explicit clear value in GPU_clear* commands | Clément Foucault | |
This replace `GPU_clear()` by `GPU_clear_color()` and `GPU_clear_depth()`. Since we always set the clear value before clearing, it is unecessary to track the clear color state. Moreover, it makes it clearer what we clear the framebuffer to. | |||
2020-08-23 | GPUFramebuffer: Use GPUState to temporary change write mask in clear fn | Clément Foucault | |
This avoid breaking sync of the state object. Also avoid more hazard. | |||
2020-08-23 | GPUState: Expose Stencil mask and test | Clément Foucault | |
This is to be used by framebuffer clearing. | |||
2020-08-22 | Fix T79971 Regression: Transform Gizmos doesnt work anymore | Clément Foucault | |
This changes the state of occlusion queries quite a bit. Now scissors is explicitely disabled and we enabled color write. I still don't understand why we now need this. This patch is just trial and error on an affected setup. Note that on the same computer, renderdoc was not able to capture the regression (the regression did not manifest during capture). Regression likely introduced by rB5f414234ddea | |||
2020-08-21 | Cleanup: spelling | Campbell Barton | |
2020-08-21 | GPUShader: Fix linking working even if one shader compilation failed | Clément Foucault | |
Linking without valid shaders works on some drivers. Avoid this case by forcing linking step to return false. | |||
2020-08-21 | Cleanup: GPU: Update classes comments | Clément Foucault | |
This should avoid confusion about what is a class and what is an opaque pointer. | |||
2020-08-21 | GPUShader: Make GPUShader* an opaque pointer to blender::gpu::Shader | Clément Foucault | |
This avoids the misleading inheritance. Also cleanup by setting the blender::gpu::Shader as active shader to avoid some casting. | |||
2020-08-21 | GPUShader: Fix NULL string used as shader name. | Clément Foucault | |
The shader name is required with the latest changes. | |||
2020-08-21 | GPUUniformBuf: GL backend isolation | Clément Foucault | |
This is in preparation of vulkan backend. We move all opengl functionnalities behind an abstract class. This also cleansup the "dynamic" ubo create and rename it to `GPU_uniformbuf_from_list()` Contains, no functional change. Part of T68990 Vulkan support. | |||
2020-08-21 | GPUUniformBuf: Rename struct and change API a bit | Clément Foucault | |
This follows the GPU module naming of other buffers. We pass name to distinguish each GPUUniformBuf in debug mode. Also remove DRW_uniform_buffer interface. | |||
2020-08-20 | Cleanup: Clang Tidy: Resolve readability-delete-null-pointer error | Hans Goudey | |
2020-08-20 | GPUShaderInterface: Fix use after free crash | Clément Foucault | |
2020-08-20 | GPUState: Use state setters inside selection code | Clément Foucault | |
This fixes T79945 Gizmos don't work in Edit Mode | |||
2020-08-20 | GPUState: Use explicit depth test enum | Clément Foucault | |
2020-08-20 | GPUShaderInterface: GL backend isolation | Clément Foucault | |
2020-08-20 | GPU: Use GPUShader setters for uniforms removing uses of ShaderInterface | Clément Foucault | |
2020-08-19 | GPUState: Fix signed / bitfield conversion leading to wrong enum value | Clément Foucault | |
This was creating drawing issues on windows builds. | |||
2020-08-19 | GPUShader: Fix apple clang warnings | Clément Foucault | |
2020-08-19 | Cleanup: spelling | Campbell Barton | |
2020-08-18 | Cleanup: GPUState: Remove GPU_state_init() | Clément Foucault | |
2020-08-18 | GPUState: Use GPU_viewport to set viewport state in GPU_framebuffer | Clément Foucault | |
also fix a small issue in GPU_texture_clear. | |||
2020-08-18 | GPUState: Port default state to StateManager constructor | Clément Foucault | |
2020-08-18 | Cleanup: DRW: Use GPUState instead of raw opengl calls | Clément Foucault | |
Should not break anything! Huh! | |||
2020-08-18 | GPUState: Only apply state before drawing | Clément Foucault | |
2020-08-18 | Cleanup: GPUState: Remove stack from the state manager and rename it | Clément Foucault | |
2020-08-18 | GPUState: Remove gpuPushAttr/gpuPopAttr | Clément Foucault | |
And use manual save/restore mechanism. The stack method is not used so much to be considered useful. | |||
2020-08-18 | GPUState: Make use of GPUStateStack class | Clément Foucault | |
This isolate most GL calls to the GL backend. Still a few remains. | |||
2020-08-18 | Cleanup: GPUState: remove double GPU_blend calls | Clément Foucault | |
2020-08-18 | GPUState: GPU_blend final API renaming | Clément Foucault | |
We now use GPU_blend for enabling / disabling blending and explicitly set the blend equation. | |||
2020-08-18 | Cleanup: GPUState: remove use of GPU_blend_set_func | Clément Foucault | |
2020-08-18 | Cleanup: GPUState: Replace blend func separate by enum | Clément Foucault | |
2020-08-18 | Cleanup: GPU: Move towards an explicit Blend state | Clément Foucault | |
This make use of the GLStateStack functions for: - `GPU_blend()` - `GPU_blend_set_func()` - `GPU_blend_set_func_separate()` The goal is to unify them using an explicit state setting. This will remove the need to use obscure blend functions | |||
2020-08-18 | GPUState: Add GL backend and state tracking but do not use it | Clément Foucault | |
This is just the backend work. It is not plugged in yet because it needs more external cleanup/refactor. | |||
2020-08-18 | Cleanup: GPU: Remove uneeded depth precision getter. | Clément Foucault | |
We always use 24bit framebuffers nowadays. | |||
2020-08-18 | Cleanup: GPUState: remove float variant of GPU_scissor_get | Clément Foucault | |
2020-08-18 | GPUShader: Add debug labels | Clément Foucault | |
This allow better debugging inside renderdoc. | |||
2020-08-18 | GPUShader: Add back vertformat_from_shader() | Clément Foucault | |
2020-08-18 | GPUShader: Improve auto name | Clément Foucault | |
Use macro to get calling function name. Helps debugging shaders. |