diff options
author | Brian Paul <[email protected]> | 2015-12-07 18:38:03 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2015-12-09 09:43:47 -0700 |
commit | ab0651ccfd8c8c4bca26a106225e188fe965d8d0 (patch) | |
tree | 3e781c4c6be78f0aa9353c956e47649da7531d44 /src/gallium/drivers/svga | |
parent | 7d3df58125671bef354f97577c3b50f5b858a42d (diff) |
mesa: detect inefficient buffer use and report through debug output
When a buffer is created with GL_STATIC_DRAW, its contents should not
be changed frequently. But that's exactly what one application I'm
debugging does. This patch adds code to try to detect inefficient
buffer use in a couple places. The GL_ARB_debug_output mechanism is
used to report the issue.
NVIDIA's driver detects these sort of things too.
Other types of inefficient buffer use could also be detected in the
future.
Reviewed-by: José Fonseca <[email protected]>
Diffstat (limited to 'src/gallium/drivers/svga')
0 files changed, 0 insertions, 0 deletions