summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/render/bgfx
Commit message (Collapse)AuthorAgeFilesLines
* bgfx/chainmanager: correct a printf parse issue (compiler didn't care) hap2025-06-201-1/+1
|
* emscripten: fixes to get bgfx working (#13255) algestam2025-02-061-0/+9
| | | | | | | | | * Emscripten: Fixes to get BGFX working * Move emscripten specific setup into an #elif statement * Fix indentation * emscripten: remove no longer link option DEMANGLE_SUPPORT
* misc: remove "all rights reserved" copyright comment, hap2025-01-221-1/+1
| | | | mcs51: remove old changelog from comments, remove copypasted comment block
* Removed some unnecessary backslash line continuations. (#12047) amameuser2024-02-212-2/+2
| | | | | | * Removed unnecessary preprocessor line continuations from C++ code. * Use parentheses to avoid need for line continuations in expressions in Python code. * Removed line continuations at the end of lists in makefiles. * cpu/m68000: Regenerated C++ source files.
* modules/render/bgfx/clearreader.cpp: Use std::clamp AJR2023-11-041-3/+3
|
* Revert "Updated bgfx, bx and bimg to current upstream versions. (#11493)" Vas Crabb2023-09-081-5/+5
| | | | This reverts commit 1c61ccfe840cdae7a9f92292946a45f3b47e2412.
* Updated bgfx, bx and bimg to current upstream versions. (#11493) Julian Sikorski2023-09-061-5/+5
| | | | | | * Reverted "macOS, iOS: Removed OpenGL/OpenGLES support. (commit 4693983242a698eaafed87faf4ffef1789adc8f9). * Reverted "Fix macOS build" (commit ce2c2c13eda7d699051f75f598e740a447343a88). * Reverted "macOS: Fixed deprecated warnings." (commit 10a8cb61f882ebc9bb376ee2341d003880b7037f). * Added bgfx/README.mame explaining deviations from upstream.
* Various optimisations to code generaton. Vas Crabb2023-03-262-4/+4
| | | | | | | | | | | | | | | util/bitmap.cpp, util/palette.cpp: Marked lots of things constexpr. Bitmaps don't throw exceptions on allocation failure, they just become invalid. Almost nothing in MAME actually checks for this. emu/profiler.cpp: Abort if the profile stack overflows rather than throwing an exception. This is a developer feature and if it overflows, the code is broken. Calling a noreturn noexcept function generates less code than throwing an exception, which adds up. util/strformat.cpp: Traded away some unnecessary flexibility for more compact code. The stream objects must derive from std::basic_ostream now - they can't just be any old objects with the expected operators.
* Retired the over-stretched "system type" flags. Vas Crabb2023-03-231-1/+1
| | | | | | | | | | | | | | | | Functionally, the only difference between the system definitions is that GAMEL lets you specify an additional internal layout and SYST lets you specify a compatible system. COMP and CONS are just aliases for SYST - the aliases can be phased out. Removed arcade.flt and mess.flt altogether - opinion seems to be split between misinterpreting them as fully supported and considering them unnecessary. They were marginally useful as a performance test for makedep.py, but that isn't important. We still have nl.flt as an example .flt file (although it doesn't use "-" exclude directives). Moved the UI active flag from the machine to the UI manager. Nothing else uses it anyway (it's still accessible to scripts).
* Miscellaneous cleanup: Vas Crabb2023-03-211-2/+4
| | | | | | | | | render/bgfx/chainmanager.cpp: Only treat source file or more sepecific INI as higher priority than CFG file for setting screen chains. sega/model2.cpp, taito/taitocchip.cpp: Got rid of bankdev. Adjusted some doucmentation files.
* Fix building with gcc-13 (#10917) Julian Sikorski2023-02-202-0/+2
|
* bgfx: Refined configuration handling: Vas Crabb2023-02-022-51/+93
| | | | | | | | | | | | | * Sort screen chains by none, default, then collation order (rather than whatever order the filesystem yields). * Correctly persist settings across fullscreen toggle when explicit screen chains are configured. * If chains are specified for a single window only, apply them to all windows. * Treat empty string for screen chain as "default" rather than crashing. * Changed default setting for bgfx_screen_chains to an empty string so chain selection will be saved/restored per system with mame.ini file created by -cc with no other settings.
* render/bgfx: Fixed texture object lifecycle issues. Vas Crabb2023-02-0210-194/+229
|
* osd: Turned video modules into actual modules, fixed various issues. Vas Crabb2023-02-0114-170/+173
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Don't ignore the return status of OSD module initialisation. Attempt to fall back to an alternate module if the selected module fails to initialise. Log more useful diagnostic information at verbose level. Fixed BGFX crash on exit after toggling fullscreen. Also persist more settings than just the selected chains across toggling fullscreen. Turned video modules into OSD modules in the same sense as all the other OSD modules. They now use the same selection/fallback mechanism as all the other modules without special extra code in the OSD implementations. Untangled some object ownership mess. Windows own renderers, OSD objects own windows. Fixed a refrence loop that caused the first window object to always leak. Don't create renderer object until after underlying window has been created. Fixed issues with order of creation/destruction when toggling fullscreen or changing prescale in fullscreen with -switchres in SDL builds. Use more smart pointers in BGFX and Direct3D render modules. Most of the code now reutrns a smart pointer when handing over ownership or a naked pointer when retaining ownership. Fixed a few leaks and simplified cleanup code. Encapsulated various OSD modules better.
* render/bgfx: Fixed Linux build. Vas Crabb2023-01-292-3/+7
|
* render/bgfx: Got rid of a lot of unnecessary object copying during setup. Vas Crabb2023-01-2979-751/+777
|
* Major D3D and BGFX code refactoring and bug fixes: (#10858) [Ryan Holtz] MooglyGuy2023-01-29130-355/+943
| | | | | | | | | | | * render/bgfx: Improved clearing and blending. Added prescale support. Fixes MT07586, MT07587, MT08084. * render/bgfx: Fixed blend and tint handling. (Fixes Github #1953). * render/bgfx/blendreader.cpp: Support non-separated blend mode specification for BGFX effects. * render/bgfx: Reworked how horizontally-padded screen textures are handled. Likely fixes MT08512 and MT08505. * render/bgfx: Ensure that a texture's width margin is updated in all cases. * render/d3d/d3dhlsl.cpp: Fixed tinting in HLSL post-processing mode. * render/d3d/d3dhlsl.cpp: Avoid most redundant state-setting calls. Reduces D3D API calls by about 90% on fruit machine drivers. * render/d3d/d3dhlsl.cpp: Assign SourceDims and QuadDims uniforms to only those effects that use them. * machine/laserdsc.cpp: Always add video quad to screen container, adjust tint based on m_videoenable instead.
* bgfx: Back out some formatting changes to minimise conflicts. Vas Crabb2023-01-081-2/+6
|
* bgfx: Save values of most sliders per-system. Vas Crabb2023-01-088-104/+251
|
* Update BGFX, BX and BIMG (#10789) Miodrag Milanović2023-01-053-4/+8
| | | | * Update to bgfx a93a714632b79b5ddbf5c86ac323fa9b76ed3433 Co-authored-by: Бранимир Караџић <branimirkaradzic@gmail.com>
* Revert "Update BGFX, BX and BIMG (#10750)" (#10787) R. Belmont2023-01-043-8/+4
| | | This reverts commit 5581eaa50a42256242f32569f59ce10d70ddd8c2 due to link failure on macOS.
* Update BGFX, BX and BIMG (#10750) Miodrag Milanović2023-01-043-4/+8
| | | | * Update to bgfx a93a714632b79b5ddbf5c86ac323fa9b76ed3433 Co-authored-by: Бранимир Караџић <branimirkaradzic@gmail.com>
* Revert "-bgfx: Adjusted per-pass blending handling - fixes MT07586 and ↵ MooglyGuy2022-12-266-49/+14
| | | | | MT07587. (#10747) [Ryan Holtz]" (#10748) This reverts commit 2d893a60b4675359285737be173dfa632269cab3.
* -bgfx: Adjusted per-pass blending handling - fixes MT07586 and MT07587. ↵ MooglyGuy2022-12-266-14/+49
| | | | (#10747) [Ryan Holtz]
* osd/modules/file: Don't magically substitute environment variables when ↵ npwoods2022-12-173-4/+4
| | | | | | | | opening files. (#9859) * util/options.cpp: Added option types for single and multiple paths. * util/options.cpp: Substitute environment variables in values from defaults and INI files. * ui/dirmenu.cpp: Removed hard-coded list of multi-path options. * plugins: Don't substitute environment variables in path options.
* OSD/network interface cleanup AJR2022-08-281-0/+1
| | | | | | | - Move osd_midi_device from osdcore.h to osdepend.h - Move osd_list_network_adapters from osdcore.h to osdnet.h (was already defineduniquely in osdnet.cpp) - Move #include <cstdarg> from osdcore.h to emu.h - Remove dinetwork.h from emu.h
* bgfx: crt-geom and crt-geom-deluxe improvements: (#8653) cgwg2022-07-078-371/+238
| | | | | * crt-geom-deluxe: Increased number of taps for halation and increased maximum width. * crt-geom*: Moved repeated crt-geom/crt-geom-deluxe functions into their own file. * crt-geom and crt-geom-deluxe: added support for sRGB output gamma ramp and made it the default.
* Clean up #includes in src/osd (#10029) ajrhacker2022-07-0427-98/+111
| | | | | * Clean up #includes in src/osd * render/bgfx/view.cpp: Add license header
* osdcore.h: Changed osd_subst_env to accept a std::string_view and return a ↵ npwoods2022-06-153-9/+4
| | | | std::string. (#9928)
* bgfx: Honour texture wrap flag. (#9812) Vas Crabb2022-05-231-1/+4
|
* Removed superfluous semicolons from various source files. (#9796) 0kmg2022-05-221-1/+1
|
* -bgfx: Fixed YUV shader to have better brightness balance. [Ryan Holtz] (#9425) MooglyGuy2022-03-171-4/+5
|
* Updated BGFX fixes; verified as working on Linux and Windows. (#9420) MooglyGuy2022-03-1514-104/+245
| | | | | | | * -bgfx: Improved stability when encountering missing files, and improved multi-window stability. [Ryan Holtz] * -osd: Added video-init fallback functionality to other OSDs. [Ryan Holtz] * -bgfx: Fixed issues from the previous batch of changes. [Ryan Holtz] * -osdwindow: Remove no-longer-needed addition of post_create(). [Ryan Holtz]
* Revert "More BGFX stability improvements (missing files + multi-window) (#9410)" Vas Crabb2022-03-1611-222/+98
| | | | This reverts commit f5b75b74393646d1dc082ec807279451dc481854.
* More BGFX stability improvements (missing files + multi-window) (#9410) MooglyGuy2022-03-1411-98/+222
| | | | | * -bgfx: Improved stability when encountering missing files, and improved multi-window stability. [Ryan Holtz] * -osd: Added video-init fallback functionality to other OSDs. [Ryan Holtz]
* -bgfx: Added default LUT PNG, fixes LUT-effect crash. Fixed external texture ↵ MooglyGuy2022-03-122-8/+7
| | | | loading, restoring HQx filters. [Ryan Holtz] (#9401)
* Remove fileio.h from emu.h AJR2022-02-112-0/+2
|
* Removed extra semicolons after function bodies in remaining headers. (#9277) 0kmg2022-02-071-1/+1
|
* -osd/windows: Fixed stupid potential deadlock on exit. Vas Crabb2021-11-132-31/+15
| | | | | -frontend: Some changes to menu item class that will make it possbile to reduce the number of menu rebuilds.
* bgfx: fix flurry of bogus warning messages hap2021-10-291-1/+1
|
* -bgfx: Switched fs_blit_palette16 to expand bitmap_ind16 contents to R8. ↵ MooglyGuy2021-09-047-33/+54
| | | | Fixes vertical off-by-one shift in games with an odd pixel count along X. [Ryan Holtz] (#8528)
* Use D32F texture format instead of D24, should fix AMD hardware (#8516) Julian Sikorski2021-08-301-2/+2
|
* -bgfx: Fixed UV rounding errors in fs_blit_palette16; Switched back to ↵ MooglyGuy2021-08-301-2/+9
| | | | direct texture upload rather than CPU copy. (#8505) [Ryan Holtz]
* -bgfx: Revised fs_blit_palette16 to not use pixel rounding. Fixes issues in ↵ MooglyGuy2021-08-241-17/+2
| | | | carpolo, kncljoe, and others. [Ryan Holtz] (#8488)
* formats, osd, util: Started refactoring file I/O stuff. (#8456) Vas Crabb2021-08-221-1/+1
| | | | | | | | | Added more modern generic I/O interfaces with implementation backed by stdio, osd_file and core_file, replacing io_generic. Also replaced core_file's build-in zlib compression with a filter. unzip.cpp, un7z.cpp: Added option to supply abstract I/O interface rather than filename. Converted osd_file, core_file, archive_file, chd_file and device_image_interface to use std::error_condition rather than their own error enums. Allow mounting TI-99 RPK from inside archives.
* BGFX fixes for various backends (#8469) [Ryan Holtz] MooglyGuy2021-08-2013-52/+91
| | | | * Fixed palette and UYVY conversion in all backends. Fixes MT07760. * Fixed a typo in targetmanager.cpp, thanks LN for the heads-up.
* Fix to make it work on windows Miodrag Milanovic2021-08-121-2/+0
|
* update shader.mk according to one in bgfx Miodrag Milanovic2021-08-101-23/+45
|
* bgfx: Fixed crt-geom{,-deluxe} shader compilation and recompiled shaders. Vas Crabb2021-03-202-2/+2
|
* bgfx: crt-geom and crt-geom-deluxe enhancements (#7872) cgwg2021-03-207-70/+270
| | | | | | * Made spot size parameters adjustable also increased samples from 2 to 3 scanlines for crt-geom-deluxe. * Made horizontal interpolation adjustable. * bgfx crt-geom-deluxe: Made phosphor decay smoothly to zero at specified cutoff time. * bgfx crt-geom-deluxe: Added lowpass filter.