Blender Git Commit Log

Git Commits -> Revision fed61d5

Revision fed61d5 by Antonis Ryakiotakis (master)
February 23, 2015, 12:35 (GMT)
Debug GPU functionality from soc-viewport_fx by Jason Wilkins

patch number D706 with changes:

- WITH_GPU_DEBUG just creates a debug context (and enables the debug messaging
system functions) but leaves the checks we had intact. Old patch
added the debug functionality only if we had the flag on to save some
performance.

Rationale here is that we might not want to recompile blender just to get
the extra information, and having users start blender with a -d flag to
get the extra information is also useful for bug reports. Those checks already
existed and most expensive ones are hidden behind a debug mode check
so performance should not be that bad.

- Did some cleanup of existing functionality:
When things go wrong blender side, just print the error,
don't check for GL errors first.

- Did not port changes needed for GLES to regular glew.h

- Got rid of duplicate or very similar new functionality.

Generally, code is more moving things around/cleanup and should work exactly
as before apart from the debug context, so it's safe to add even now.

It also provides a nice substitute function for glu error descriptions

Commit Details:

Full Hash: fed61d50c77130bc59849b067d9f7a502908003f
Parent Commit: 34479d8
Lines Changed: +943, -491

3 Added Paths:

/source/blender/gpu/GPU_debug.h (+78, -0) (View)
/source/blender/gpu/intern/gpu_debug.c (+748, -0) (View)
/source/blender/gpu/intern/gpu_private.h (+49, -0) (View)

1 Deleted Path:

/source/blender/gpu/intern/gpu_extensions_private.h (+0, -32)

12 Modified Paths:

/CMakeLists.txt (+7, -0) (Diff)
/intern/ghost/intern/GHOST_ContextGLX.h (+5, -1) (Diff)
/intern/ghost/intern/GHOST_ContextSDL.h (+5, -1) (Diff)
/intern/ghost/intern/GHOST_ContextWGL.h (+5, -1) (Diff)
/source/blender/gpu/CMakeLists.txt (+3, -1) (Diff)
/source/blender/gpu/GPU_draw.h (+0, -4) (Diff)
/source/blender/gpu/GPU_extensions.h (+0, -1) (Diff)
/source/blender/gpu/intern/gpu_codegen.c (+1, -2) (Diff)
/source/blender/gpu/intern/gpu_draw.c (+3, -389) (Diff)
/source/blender/gpu/intern/gpu_extensions.c (+32, -52) (Diff)
/source/blender/gpu/intern/gpu_init_exit.c (+4, -1) (Diff)
/source/blender/windowmanager/intern/wm_event_system.c (+3, -6) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021