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
2015-12-11Fix T46951: GLSL draw mode missing some textures.Brecht Van Lommel
2015-12-08OpenGL: split off framebuffer, shader and texture code into separate files.Brecht Van Lommel
2015-12-08OpenGL: remove non-power-of-two texture check, where even ES 2.0 does not ↵Brecht Van Lommel
need it.
2015-12-08OpenGL: use extension form of FBOsMike Erwin
FBOs are a GL 3.0 feature but enjoy nearly universal support via extensions. The newer ARB extension brings these features to GL 2.1 without needing an ARB suffix. The older EXT extensions *do* use a suffix. Since we don’t know which is used until runtime, I added the suffix to all functions & enums. Also updated the check to look for the FBO feature set instead of the specific EXT extension.
2015-12-08OpenGL: use sized texture internal formatsMike Erwin
Maybe this is pedantic but I read it’s best to explicitly set the desired component size. Also append “_ARB” to float texture formats since those need an extension in GL 2.1.
2015-12-07OpenGL: remove old version checkMike Erwin
+ minor cleanup
2015-12-07OpenGL: new GPU_legacy_support() functionMike Erwin
Is current context compatible with legacy GL (version 2.1)? My earlier approach -- checking for GLEW_ARB_compatibility -- was not enough. This should always return true if we set our GL context up properly. It will return false when we switch to core profile.
2015-12-06OpenGL: rename simple shader to basic shader.Brecht Van Lommel
2015-12-06OpenGL: isolate fixed function lighting in simple shader code.Brecht Van Lommel
Differential Revision: https://developer.blender.org/D1645
2015-12-06OpenGL: move two sided lighting check into GPU material code.Brecht Van Lommel
Differential Revision: https://developer.blender.org/D1645
2015-12-01Fix out-of-bounds access in recent shader updatesCampbell Barton
2015-11-28OpenGL: remove unnecessarily paranoid bound texture preservation.Brecht Van Lommel
2015-11-28OpenGL: assume GL_TEXTURE_ENV_MODE GL_MODULATE is the default state.Brecht Van Lommel
2015-11-28OpenGL: set OpenGL lights through simple shader API.Brecht Van Lommel
2015-11-28OpenGL: update simple shader API.Brecht Van Lommel
Restore fixed function lighting code for now and control use of GLSL shader with a variable, make light types more clear, reduce state changes, some other minor tweaks.
2015-11-28OpenGL: rename GPU_enable_material to better indicate it's binding shaders.Brecht Van Lommel
2015-11-28Fix possible hang on buffer allocation failure. Reported by coverityAntony Riakiotakis
scan, thanks...errr.
2015-11-26Cleanup: warningsCampbell Barton
2015-11-26cleanup: C99 and vertex array commentsMike Erwin
GPU_buffer no longer has a fallback to client vertex arrays, so remove comments about it. Changed a few internal structs/function interfaces to use bool where appropriate. Use for-loop scope and flexible declaration placement. PBVH does the same thing but needs ~150 fewer lines to do it! The change to BLI_ghashIterator_init is admittedly hackish but makes GHASH_ITER_INDEX nicer to use.
2015-11-26OpenGL: remove unused VBO_DISABLED from PBVHMike Erwin
Was almost certainly being compiled out anyway, but now we don’t have to read it!
2015-11-25Fix OpenSubdiv geometry shader error on Linux / AMD.Brecht Van Lommel
Differential Revision: https://developer.blender.org/D1638
2015-11-25OpenGL: GLSL always supportedMike Erwin
In gpu lib: - GPU_glsl_support() always returns true - internal cleanup & comments Outside gpu lib: - remove check from various code, remove the “else” path - sprinkled a few C99-isms We can remove GPU_glsl_support() when BGE stops calling it.
2015-11-24OpenGL: when checking GL version, assume >= 2.1Mike Erwin
Mostly glBlendFunc related.
2015-11-24OpenGL: clean up use of old extensionsMike Erwin
2015-11-23OpenGL: Replace some more ARB suffix from glBindBufferARB.Thomas Dinges
2015-11-23Cleanup: shadowing (blenlib, gpu, imbuf)Campbell Barton
2015-11-23Cleanup: warningCampbell Barton
2015-11-23OpenGL: codegen formattingMike Erwin
Formatting of generated GLSL code: - attribute/varying for version 120 - in/out for version 130+ - minor cosmetic stuff Tested working on Windows 10, GL 4.3.
2015-11-23OpenGL: choose compatible GLSL versionMike Erwin
Fix GLSL version & geometry shader support query to consider core vs compatibility. All shaders need to be compatible with each other, and for now that means GLSL 120. For drivers that support compatibility profiles, choose the highest available (up to 150). If only core profile is supported, max out at GLSL 130.
2015-11-23revert file mode to 644Mike Erwin
2015-11-23OpenGL: bump gpu_extensions to GL 2.1, prepare for 3.xMike Erwin
Several changes. Tested working on Windows 10 GL 4.3 and MacOS 10.11 GL 2.1. - document extensions used in this file - some simple ARB/EXT suffix deletion - stop checking for pre-2.1 features — they’re available! - convert old ARB shader API to the one adopted in GL 2.0 - remove checks for old (pre-R600) ATI cards - choose GLSL version at runtime, between 1.2 and 1.5 - prefer GLSL 1.5 for geometry shaders, fall back to EXT_geometry_shader4 if needed Differential Revision: https://developer.blender.org/D1632
2015-11-22Remove vertex array support from GPUBuffers. Remove USER_DISABLE_VBO. AllAntony Riakiotakis
GPUBuffer rendering is now done using vertex buffers. Vertex arrays are completely removed from GL 3.2 core profile, so we'll have to do this change at some point anyway. This commit, though big, is not modifying blender in any way. Use should be exactly as if the vetex buffer option is constantly on.
2015-11-22OpenGL: bump gpu_buffers to GL 2.1Mike Erwin
simple stuff! - remove ARB suffix from core functions & enums - remove checks for core features (VBOs, generic attribs) - keep checks for non-core features (draw elements base vertex)
2015-11-16Cleanup: typosCampbell Barton
2015-11-16Add missing newlines for debug printsCampbell Barton
2015-10-20Fix T46496: GL Render fails w/ Anti-AliasingCampbell Barton
Needed to check if scaled-multisample-blit is supported.
2015-10-20New function to draw offscreen, and related API changesDalai Felinto
This expose the capability of handling offscreen drawing. The initial support lays the barebones for addons to work with framebuffer objects and implement 3d viewport offscreen drawing. This can be used by script writers to make fisheye lens preview, head mounted display support, ... The complete documentation is here: http://www.blender.org/api/blender_python_api_2_76_1/gpu.offscreen.html Review and many changes by Campbell Barton (thank you :) https://developer.blender.org/D1533
2015-10-19GPU: check for blit support, using MSAA FBO'sCampbell Barton
Used for reading off-screen buffers, possible cause of failure for drivers that don't support it.
2015-10-16Cleanup: styleCampbell Barton
Also use gcc style file:line: syntax for errors.
2015-10-153D View: support non-uniform scaled lampsCampbell Barton
D1378 by @youle Non-uniform scaled lamps now cast oval/rectangular shadows, viewport & BGE.
2015-10-14Support for multi-sample off-screen buffersCampbell Barton
Replaces much slower manual accumulation buffer which simply did multiple renders. Needs OpenGL3.2, otherwise multi-sample is disabled.
2015-10-11Cleanup: warning with new glewCampbell Barton
2015-10-10Fix various compiler warnings.Brecht Van Lommel
2015-10-06WM: Fix crash when a new window can't be createdCampbell Barton
Report an error instead of crashing if a new window can't be created (typically caused by bad drivers).
2015-09-20Cleanup: warning, styleCampbell Barton
2015-09-16Fix T46128: High Quality DoF brokenSergey Sharybin
The issue was caused by some special tricks needed to compile OpenSubdiv shader which was using stupid check whether geometry shader is used or not. Now made it more explicit call whether special OpenSubdiv trickery is needed or not. Its not ideal solution, but it's not really easy to do a proper solution for this, because while we can do half of the work with if-defs in the shader code but we'll still need to somewhat define layout of the input blocks which isn't really doable with current shader version we're using.
2015-09-16Get rid of leftover from refactor of VBO code. Thanks to severin forAntony Riakiotakis
noticing
2015-09-16Fix T46105, disable viewport compositing when non power of two textureAntony Riakiotakis
support is missing. Supporting those (really) old GPUs requires us to make shaders more expensive by converting between real and scaled coordinates and be wary of such conversion caveats when handling uv coordinates in shaders. Not worth the cost for supporting hardware that old.
2015-09-14Alternate fix for offscreen render w/o npotCampbell Barton
Store the original texture size, since its needed for reading pixels and passing to glViewport.
2015-09-14Revert "Fix crash in opengl render caused..."Campbell Barton
This reverts commit d64b1221c67846bb954855a19c8dd093b83adc8e. While this prevents the crash, offscreen renders still aren't working right.