Campbell Barton
2a52c2d001
Cleanup: spelling, comments
2020-07-28 21:49:37 +10:00
Campbell Barton
b18c376946
Cleanup: quiet warnings without DDS
2020-07-27 21:00:49 +10:00
Clément Foucault
0b04f0e4e6
GPU: Fix crash and missing texture due to recent C++ port
...
Fix T79306 DRW: small issues with yesterday commits modifying TEXTARGET
Fix T79303 Image texture node crashes EEVEE when connected to a shader output
2020-07-27 13:37:22 +02:00
Jacques Lucke
418753b6a6
GPU: fix build error due to wrong linkage specification
2020-07-27 11:40:47 +02:00
Clément Foucault
ba9c88ce18
GPUFramebuffer: Fix compilation issue with designated initializer in C++
2020-07-27 00:08:48 +02:00
Clément Foucault
2c2082cc62
GPU: Fix MSVC compile errors
2020-07-26 23:50:29 +02:00
Clément Foucault
54237994d8
Cleanup: Image: Rename redundant enum for clarity
2020-07-26 21:07:25 +02:00
Clément Foucault
487eaeed7e
GPUTexture: Replace GL textarget enum by Image enum
2020-07-26 21:07:25 +02:00
Clément Foucault
025dc31d28
GPU: Remove GL constant from BIF_glutil
2020-07-26 21:07:25 +02:00
Clément Foucault
18cca0e704
Cleanup: GPU: Remove GPU_glew.h outside of GPU module
...
Remove use of GL* constants and types inside the codebase. There is still
a few occurence to get rid of.
2020-07-26 17:29:49 +02:00
Clément Foucault
9e23dbd060
Cleanup: GPU_codegen.c: Use LISTBASE_FOREACH macro instead of for loops
2020-07-26 17:28:48 +02:00
Clément Foucault
15655aa1dd
Cleanup: GPU: Remove unused code and header
2020-07-26 17:28:48 +02:00
Clément Foucault
cc7d5e1fe6
GPU: Move gpu_platform.c to C++
2020-07-26 17:28:48 +02:00
Clément Foucault
c276ef61d4
GPU: Move gpu_immediate.c to C++
2020-07-26 17:28:48 +02:00
Clément Foucault
b296b68ff2
GPU: Move gpu_framebuffer.c to C++
2020-07-26 17:28:48 +02:00
Clément Foucault
9905db5557
GPU: Move gpu_extensions.c to C++
2020-07-26 17:28:48 +02:00
Clément Foucault
7c3eaffbbd
GPU: Move gpu_element.c to C++
2020-07-26 17:28:48 +02:00
Clément Foucault
97b597cd04
GPU: Move and rename gpu_draw*.c to C++
...
`gpu_draw.c` was a misleading name, `gpu_texture_image.cc` is better
suited.
2020-07-26 17:28:48 +02:00
Clément Foucault
8b7802db85
GPU: Move gpu_debug.c to C++
2020-07-26 17:28:48 +02:00
Clément Foucault
56803e2754
GPU: Rename gpu_context.cpp to .cc suffix
2020-07-26 17:28:48 +02:00
Clément Foucault
7b4a21077a
GPU: Move gpu_batch.c to C++
2020-07-26 17:28:48 +02:00
Clément Foucault
d3cecc5007
GPU: Move gpu_attr_binding.c to C++
2020-07-26 17:28:48 +02:00
Clément Foucault
a77175c9b6
GPU: Add extern "C" to intern headers
2020-07-26 17:28:48 +02:00
Campbell Barton
13fa4b9898
Cleanup: remove redundant glReadBuffer call when reading pixels
2020-07-24 19:01:13 +10:00
Germano Cavalcante
65aba4fc7a
Fix T79158: Eevee cubemaps shows black
...
Same as T75943 that was fixed by rBff97545c50f4
2020-07-23 08:37:41 -03:00
Sebastián Barschkis
62a819202e
Fluid: Refactored smoke noise system
...
This refactor is in response to reports in which the adaptive domain with noise caused a crash (e.g. T79009). It should also fix issues where the smoke appeared to be cut off when using the adaptive domain together with noise. It is also possible that some of these changes improve the lines issue from T74559.
2020-07-20 18:35:52 +02:00
Clément Foucault
6247ec7827
Fix T78977 GPU: blf fonts are not gamma corrected
2020-07-19 23:00:22 +02:00
Campbell Barton
8c90910dcc
Fix T66937: Blank view on navigation with auto-deph & large clip-end
2020-07-19 21:27:13 +10:00
Campbell Barton
71d0f6f896
Cleanup: spelling
2020-07-19 17:37:02 +10:00
Harley Acheson
c08d847488
UI: Status Bar Statistics and Other Options
...
Status Bar can show scene statistics, memory usage, version, etc set by context menu. Part two of T75672.
Differential Revision: https://developer.blender.org/D7557
Reviewed by Julian Eisel
2020-07-18 07:49:25 -07:00
Campbell Barton
016253a648
Cleanup: spelling
2020-07-18 14:27:53 +10:00
Clément Foucault
4c28b1c74e
Cleanup: GPU: Encapsulate clipDistances
...
This also remove some non functionnal state changes that were left
from legacy code.
2020-07-18 03:43:52 +02:00
Clément Foucault
59975b0adf
Cleanup: WM: Encapsulate stereo draw buffers binding
2020-07-18 03:43:52 +02:00
Clément Foucault
8dfc31f61f
Cleanup: GPU: Encapsulate glProvokingVertex
2020-07-18 03:43:52 +02:00
Clément Foucault
264b1e1e15
Cleanup: GPU: Encapsulate glFrontFace
2020-07-18 03:43:52 +02:00
Clément Foucault
5993c53a6d
Cleanup: GPU: Encapsulate Backface culling
2020-07-18 03:43:52 +02:00
Clément Foucault
1f2edba1fb
Cleanup: GPU: Encapsulate scissor test
2020-07-18 03:43:52 +02:00
Clément Foucault
a6bd7777c2
Cleanup: GPU: Encapsulate glViewport calls
2020-07-18 03:43:52 +02:00
Clément Foucault
35f1b3e43b
Cleanup: GPU: Wrap GL_UNPACK_ROW_LENGTH in GPU_state
...
Also go back to default value of 0 after usage.
2020-07-18 03:43:52 +02:00
Clément Foucault
2d9eee15c5
Cleanup: GPU: Set default GL_UNPACK_ALIGNMENT to 1
...
Ogl default is 4 but for almost all cases, blender use tightly
packed format. This avoid confusion and state change for the
common case.
The only case that __might__ need alignement is DDS loader
(untested) so leaving this as it is.
2020-07-18 03:43:52 +02:00
Clément Foucault
dcf6e12a60
Cleanup: GPUShader: Remove unused builtin shader
2020-07-18 03:43:51 +02:00
Clément Foucault
99b424334d
GPU: Add immBindTexture and immBindTextureSampler
2020-07-18 03:43:51 +02:00
Clément Foucault
5b4a862f83
GPUTexture: Add better swizzle support
2020-07-18 03:43:51 +02:00
Clément Foucault
2840782d84
Cleanup: GPU: Make icon drawing use GPUTexture
...
This remove all gl function calls. Adds a new sampler only
for icon drawing.
2020-07-18 03:43:51 +02:00
Clément Foucault
02c09773ea
Cleanup: GPU: rename bglPolygonOffset to GPU_polygon_offset
...
And move it to GPU module.
2020-07-18 03:43:51 +02:00
Campbell Barton
618f31312c
Fix vertex selection error from recent refactor
...
Temporary fix for regression in 8084b7e6e2 .
2020-07-17 17:37:35 +10:00
Clément Foucault
5099cbeec9
Cleanup: GPU: Move depth/color masks functions to GPU_state
2020-07-16 18:01:44 +02:00
Clément Foucault
436d38bb54
Cleanup: GPU: Move XOR logic op to gpu_state.c
2020-07-16 18:01:44 +02:00
Clément Foucault
3481f6eaf2
Cleanup: GPU: Remove GL_DITHER usage
2020-07-16 18:01:44 +02:00
Clément Foucault
71ac137662
Cleanup: GPU: Move quad buffer stereo check to GPU module
2020-07-16 18:01:44 +02:00