hgl: Major refactor and cleanup

Graphics / Mesa 3D Graphics Library / Mesa - X512 [list.ru] - 10 January 2021 02:51 UTC

- Drop old-timey GLDisplatcher
- Refactor haiku-softpipe fixing some hacks
- Bubble BBitmap up to winsys

065cf4f9147 hgl: Major refactor and cleanup
include/HaikuGL/GLRenderer.h | 7 +-
include/HaikuGL/GLView.h | 25 +-
src/gallium/frontends/hgl/hgl.c | 164 +++++------
src/gallium/frontends/hgl/hgl_context.h | 39 ++-
.../targets/haiku-softpipe/GalliumContext.cpp | 182 ++++++------
.../targets/haiku-softpipe/GalliumContext.h | 18 +-
.../targets/haiku-softpipe/SoftwareRenderer.cpp | 306 +++++++++------------
.../targets/haiku-softpipe/SoftwareRenderer.h | 31 +--
.../sw/hgl/{hgl_sw_winsys.c => hgl_sw_winsys.cpp} | 42 +--
src/gallium/winsys/sw/hgl/hgl_sw_winsys.h | 10 +
src/gallium/winsys/sw/hgl/meson.build | 2 +-
src/hgl/GLDispatcher.cpp | 65 -----
src/hgl/GLDispatcher.h | 105 -------
src/hgl/GLRenderer.cpp | 11 +-
src/hgl/GLRendererRoster.cpp | 73 ++---
src/hgl/GLRendererRoster.h | 29 +-
src/hgl/GLView.cpp | 60 ++--
src/hgl/meson.build | 2 +-
18 files changed, 497 insertions(+), 674 deletions(-)

Upstream: cgit.freedesktop.org


  • Share