Age | Commit message (Collapse) | Author |
|
|
|
|
|
This wraps the functionality used to speedup EEVEE volumetrics.
This touches the rendering code of EEVEE as it should fix a mis-usage of
the GL barrier. The barrier changed type and location, removing an
unused barrier.
|
|
|
|
Also avoid a case where size is zero and making it impossible to change it
back.
This fix T80664 Tiny node sockets
|
|
This was caused by an uninitialized variable that was left
unchanged when calling GPU_vertformat_clear.
|
|
This allows subsequent redraw to work just like before.
However a better safeguard system against setting the uniforms in the
wrong shader would be nice to have.
|
|
|
|
The point size was not updated in the right branch and setting the point
size via GPU_point_size was effectively disabling its use.
|
|
This makes it possible to disable all the extensions when forcing
workarounds.
Also it will allow future options to selectively disable each extension
to know which one is buggy.
|
|
This is to improve debugging on older hardware that may not support
4.3 debug capabilities (like Macs).
This avoids sprinkling glGetErrors manually. This might still be needed
to find the root cause since not all functions are covered.
This overrides the functions pointers that GLEW have already init.
This is only enabled if using --debug-gpu option and the debug extension
are not available.
This also cleanup the usage of GLContext::debug_layer_support and use
wrapper to set object labels.
|
|
It seems that using a vertex shader using both `gl_InstanceID` and
`gl_VertexID` is causing some issues on MacOS + Intel Iris.
Regression introduced by rB052538edc1fba109d3427471047611888ed13bea
|
|
|
|
This makes it easier to see what each sampler is supposed to be.
|
|
This was caused by an incorrect mipmap size.
Also add debug checks for good mesure.
|
|
|
|
The context might be partialy freed, so use gpu::Context instead of
GLcontext.
|
|
The draw manager test case initialized ghost, gpu and draw manager. This
change splits the base test case to GPU specific and draw manager
specific test case.
The GPU test base test case will be used for low level GPU tests.
|
|
Memory leak is introduced as test cases reinitializes the GPU stack.
Added a call to GPU_backend_exit to fix this.
In GPU_backend_exit the GPU backend was destroyed but the pointer wasn't
reset for reuse. This patch also clears the pointer to be reused.
|
|
This makes the GPUContext follow the same naming convention as the rest
of the module.
Also add a static getter for extra bonus style (no need for casts):
- Context::get()
- GLContext::get()
|
|
- Use the syntactic wrap/unwrap method to make code more readable.
- Update comment about hidden struct behind opaque types.
- Cleanup GPUDrawList type.
|
|
This is a cleanup.
|
|
This avoids unecessary complexity.
Also makes the GPUImmediate threadsafe by using a threadlocal imm variable.
|
|
Part of the Vulkan task T68990
Isolate the last remaining gl functions.
|
|
Part of the Vulkan task T68990
Isolate the few remaining gl functions.
|
|
Also use back-slash instead of '@'.
|
|
This is part of the Vulkan task T68990.
This introduce a new GLQueryPool for managing queries in an
implementation agnostic manner.
This modify the GPU selection query to use this new object.
This also make use of blender::Vector for better code quality.
No real functionnal change.
|
|
This is part of the Vulkan task T68990
This is just a cleanup.
|
|
This is to make use of it in selection code.
|
|
This makes it easier to follow.
Also removes the GL related functions inside gpu_context.cc.
|
|
This is part of the Vulkan task T68990
This is a simple cleanup.
|
|
This is part of the Vulkan task T68990
This is a simple cleanup.
|
|
This makes more sense as this module has more to it than just
GL extensions.
|
|
This was causing an assert when using `--debug-gpu-force-workarounds`
|
|
This is to remove an explicit opengl dependence to GPU_extension.
|
|
This is part of the Vulkan task T68990.
This commits changes a few things:
- Rename extensions to capabilities (but left the file name untouched).
- Cubemap mip render workaround detection is rewritten using gl
commands to avoid using the GPU API before initialization.
- Put all the capabilities that are only relevant for the GL backend
inside GLContext as static variables.
- Cleanup the names of the limit variables.
- Separate all GL related workaround search inside the GL module.
|
|
Part of the vulkan implementation T68990.
Pretty straight forward. Just move the GL code inside the GLBackend and
make the GPUPlatformGlobal a class object.
|
|
|
|
|
|
Part of the Vulkan port T68990
This makes a few changes in how the data is being handled by the
backend to allow more flexibility in the future.
The overall code logic is left unchanged.
|
|
to avoid more typecasts.
|
|
Also correct wrapped lines of example code in threads.cc.
|
|
This is a simple cleanup to make naming consistent with the rest of the
module.
|
|
The combination of DSA + CubeMap seems to not please this driver.
|
|
This is just a cleanup to isolate the internals of the vertbuf.
This adds some getters to avoid refactor of existing code.
|
|
|
|
This is part of the Vulkan backend task T68990.
There is no real change, only making some code re-organisation.
This also make the IndexBuf completely abstract from outside the
GPU module.
|
|
Makes it follow the functions names.
|
|
This fix a compilation warning on msvc.
|
|
|