summaryrefslogtreecommitdiff
path: root/indra
AgeCommit message (Collapse)Author
2024-02-07Add machinery to capture result of running a Lua script or snippet.Nat Goodspeed
Add LuaState::expr() that evaluates a Lua snippet and reports back any result (or error) left on the stack. Add LLLUAmanager::runScriptFile() and runScriptLine() overloads that accept a callback with an (int count, LLSD result) signature. The count disambiguates (error, no result, one result, array of results). Also add overloads that accept an existing LuaState instance. Also add waitScriptFile() and waitScriptLine() methods that pause the calling coroutine until the Lua script completes, and return its results. Instead of giving LuaState a description to use for all subsequent checkLua() calls, remove description from its constructor and data members. Move to expr() and checkLua() parameters: we want a description specific to each operation, rather than for the LuaState as a whole. This prepares for persistent LuaState instances. For now, the existing script_finished_fn semantics remain: the callback will be called only when the LuaState is destroyed. This may need to change as we migrate towards longer-lasting LuaState instances. Make lua_function(name) macro append suffixes to the name for both the LuaFunction subclass declaration and the instance declaration. This allows publishing a lua_function() name such as sleep(), which already has a different C++ declaration. Move the Lua sleep() entry point to a standalone lua_function(sleep), instead of a lambda in the body of runScriptFile().
2024-02-06Break out lua_function.h,.cpp and lualistener.h,.cpp.Nat Goodspeed
The intention is to decentralize Luau entry points into our C++ code, permitting a given entry point to be added to the .cpp file that already deals with that class or functional area. Continuing to add every such entry point to llluamanager.cpp doesn't scale well. Extract LuaListener class from llluamanager.cpp to its own header and .cpp file. Extract from llluamanager into lua_function.h (and .cpp) declarations useful for adding a lua_function Luau entry point, e.g.: lua_register() lua_rawlen() lua_tostdstring() lua_pushstdstring() lua_tollsd() lua_pushllsd() LuaPopper lua_function() and LuaFunction class LuaState lua_what lua_stack DebugExit
2024-01-31strip lua testing functionsMnikolenko Productengine
2024-01-29DRTVWR-589: get rid of pragma and update windows libsMnikolenko Productengine
2024-01-29DRTVWR-589: add mac luau libsMaxim Nikolenko
2024-01-26DRTVWR-589: update to start using Luau libsMnikolenko Productengine
2024-01-08DRTVWR-589: Merge branch 'main' into DRTVWR-589.Nat Goodspeed
2024-01-08DRTVWR-589: Fix build errors resulting from merge with main.Nat Goodspeed
LLDispatchListener::getPumpName() went away when LLEventStream became one of its base classes. The assumption was that LLEventStream::getName() would suffice. Re-add getPumpName(), forwarding to getName(), for backwards compatibility.
2024-01-08Increment viewer version to 7.1.3Nat Goodspeed
following promotion of DRTVWR-596
2024-01-05DRTVWR-589: Post-merge fixMnikolenko Productengine
2024-01-04DRTVWR-589: Merge branch 'main' into DRTVWR-589Nat Goodspeed
2023-12-14Merge branch 'DRTVWR-601' of github.com:secondlife/viewer into DRTVWR-601RunitaiLinden
2023-12-14SL-20611 Followup -- fix for depth based atmospheric mask making ↵RunitaiLinden
atmospherics effect sun/moon/clouds
2023-12-14Merge branch 'DRTVWR-596' into DRTVWR-601Brad Linden
2023-12-14Merge remote-tracking branch 'origin/main' into DRTVWR-596Brad Linden
2023-12-14Merge branch 'SL-20730' into DRTVWR-596Brad Linden
2023-12-14Increment viewer version to 7.1.2Nat Goodspeed
following promotion of DRTVWR-587
2023-12-14Merge branch 'DRTVWR-601' of github.com:secondlife/viewer into DRTVWR-601RunitaiLinden
2023-12-14SL-20730 Patch another potential source of NaNsRunitaiLinden
2023-12-14SL-20715 Mask cutoff not copied corretly in build toolsAndrey Kleshchev
2023-12-14SL-20717 Add PBR to Advanced > Rendering TypesMaxim Nikolenko
2023-12-13Merge pull request #578 from sldevel/HUD-fixcosmic-linden
Fix for semi-transparent HUDs rendering opaque
2023-12-13Merge branch 'DRTVWR-601' of github.com:secondlife/viewer into DRTVWR-601RunitaiLinden
2023-12-13SL-20730 Scrub nans from haze alphaRunitaiLinden
2023-12-13Merge remote-tracking branch 'origin/DRTVWR-596' into DRTVWR-596Brad Linden
2023-12-13SL-20611 Followup -- fix for impostors being invisible.RunitaiLinden
2023-12-13SL-20715 Mapping mode and specular color not copied correctlyAndrey Kleshchev
and fixed diffuse alpha
2023-12-12Fix for semi-transparent HUDs rendering opaqueHenri Beauchamp
This commit fixes a bug introduced with commit 6472b75bcd70470fe5775d1cf6eb70a75b3d76e5 where the fullbrightF.glsl shader fails to set color.a to final_alpha for HUDs.
2023-12-11SL-20611 Brute force fix for water haze -- paid for by cycles saved by not ↵Dave Parks
drawing water twice, but needs a better long term solution.
2023-12-11SL-20611 Followup -- reenable water hazeDave Parks
2023-12-11SL-20611 Followup -- fix for artifacts on water surface from GPUs that don't ↵Dave Parks
like to read from a depth buffer that is bound for writing
2023-12-08Merge remote-tracking branch 'origin/DRTVWR-596' into DRTVWR-601Brad Linden
2023-12-08SL-20674 Fix for textures ignoring texture scale when determining what ↵RunitaiLinden
resolution to be.
2023-12-08SL-20701 FIXED Build tool texture tab shows incorrect material parameters in ↵Maxim Nikolenko
some cases
2023-12-06Merge branch 'DRTVWR-596' of github.com:secondlife/viewer into DRTVWR-596RunitaiLinden
2023-12-06SL-20664 Potential fix for crash on startup in switchContextRunitaiLinden
2023-12-06BUG-234706 Fix unstable performance on nvidia systems by always enabling ↵Ansariel Hiller
Threaded Optimization via driver application profile (#564)
2023-12-06Merge branch 'DRTVWR-596' of github.com:secondlife/viewer into DRTVWR-596RunitaiLinden
2023-12-06SL-20611 Followup -- fix banding in water fog (thanks, Rye!)RunitaiLinden
2023-12-06SL-19655 BugSplat Crash: LLGLState::checkStates (2427)Alexander Gavriliuk
2023-12-05SL-20654 Fix for box probes sometimes glitching out at the corners. ↵RunitaiLinden
Incidental fix for crash when mWaterPool is null.
2023-12-04Merge pull request #556 from secondlife/davep/SL-20611cosmic-linden
SL-20611 Make haze effect local lights. Incidental fix for EventPump coroutine sometimes doing unsafe work mid-render.
2023-12-04SL-20611 Followup -- fix edge cases with transparent PBR objects around ↵RunitaiLinden
eye/object above/below water.
2023-12-04SL-20611 Followup -- fix edge cases with transparent objects around ↵RunitaiLinden
eye/object above/below water.
2023-12-05SL-20681 fix spelling on exit promptMnikolenko Productengine
2023-12-04SL-20569 Fix notification's description in preferencesAndrey Kleshchev
2023-12-01SL-20611 Followup -- fix for water rendering twice. Add comments around ↵RunitaiLinden
LLEventPoll hack.
2023-11-30Merge branch 'DRTVWR-596' into davep/SL-20611RunitaiLinden
2023-11-30SL-20611 Incorporate water haze into new post effect atmospherics goodnessRunitaiLinden
2023-11-30SL-20655 FIXED Texture permissions not enforced in Material floatersMaxim Nikolenko