Commit Graph

45259 Commits (c5e3ace94de01ed61ed43284ea72dacec197cdc9)

Author SHA1 Message Date
Dave Parks 511de439a3 SL-16405 Remove “pass == <magic number>” anti-pattern from various drawpools. 2021-12-02 20:11:43 +00:00
Nat Linden 79c6557f16 Merged in DRTVWR-540-syncpatch (pull request #796)
DRTVWR-540: Make Sync test failure more informative

* DRTVWR-540: Make Sync test failure more informative


Approved-by: Andrey Kleshchev
Approved-by: Andrey Lihatskiy
2021-12-02 20:08:02 +00:00
Andrey Kleshchev 2ed229473d SL-14403 Remove unused shader binds
remains from glod
2021-12-02 17:35:03 +02:00
Andrey Kleshchev 1cd1d3fbe2 SL-16420 Upload's physics LODs are broken in preview #2 2021-12-02 02:28:29 +02:00
Andrey Kleshchev 7929230c04 mac build fix
remove unused variable
2021-12-02 01:19:40 +02:00
Andrey Kleshchev 06c94c83fe SL-16420 Upload's physics LODs are broken in preview 2021-12-01 22:13:17 +02:00
Euclid Linden 3f82f7ce3d Merged in euclid-pre-16386 (pull request #793)
Purge LLGLSLShader::sNoFixedFunction, and all that flows from it. No functional changes.

Approved-by: Michael Pohoreski
Approved-by: Dave Parks
2021-12-01 15:59:02 +00:00
Dave Houlton abd7d80048 SL-16386 skip void return 2021-12-01 08:57:17 -07:00
Dave Houlton 7a5ef999d0 SL-16386 consolidate all VertexShader capability checks to a single LLPipeline::shadersLoaded() 2021-11-30 17:04:35 -07:00
Dave Houlton 08f0f6d833 SL-16386 remove references to (const true) LLPipeline::mVertexShadersEnabled 2021-11-30 17:04:35 -07:00
Dave Houlton 8b92652806 SL-16386 replace gutted LLRender::setAlphaRejectSettings() with explicit flush() 2021-11-30 17:04:35 -07:00
Dave Houlton 4d6963bd81 SL-16386 purge write-only state member LLCubeMap::mTextureCoordStage 2021-11-30 17:04:35 -07:00
Dave Houlton fab60f242e SL-16386 purge no-op fxn LLTexUnit::setTextureAlphaBlend() 2021-11-30 17:04:35 -07:00
Dave Houlton 3d1901dd4c SL-16386 purge no-op fxn LLTexUnit::setTextureColorBlend() 2021-11-30 17:04:35 -07:00
Dave Houlton 5fcea00c4f SL-16386 purge no-op fxn LLTexUnit::setTextureBlendType() 2021-11-30 17:04:35 -07:00
Dave Houlton 68e09edad0 SL-16386 remove references to (const true) LLGLSLShader::sNoFixedFunction 2021-11-30 17:04:35 -07:00
Nat Goodspeed 01317a2fad SL-16421: Destroy the "General" ThreadPool as soon as cleanup starts.
Introduce LLAppViewer::onCleanup(), a method that accepts a nullary callable
to execute once viewer shutdown begins. Fire the collected callables in
LLAppViewer::cleanup().

In llstartup.cpp, instead of declaring a static unique_ptr and relying on
static object destruction to clean up the "General" ThreadPool, bind the
pointer to the new ThreadPool into an onCleanup() lambda that will delete it
when called. ~ThreadPool() takes care of orderly shutdown.
2021-11-30 17:00:09 -05:00
Nat Goodspeed 9be88050e6 SL-16421: Unify LLAppViewer::cleanup() indentation.
Use hard tabs because most of the existing function uses those.
2021-11-30 17:00:09 -05:00
Nat Goodspeed cb85a4aaee SL-16421: Unify LLAppViewer class declaration alignment.
Use hard tabs as most of the class declaration already uses those.
2021-11-30 17:00:08 -05:00
Mnikolenko Productengine bc95529003 SL-16369 Remove Hardware Skinning setting 2021-11-30 19:01:33 +02:00
Mnikolenko Productengine 630c442744 SL-16119 update link text 2021-11-30 01:19:44 +02:00
Mnikolenko Productengine ef0b48ce5a SL-16119 Viewer should now direct IM 2 Email setting to web 2021-11-30 01:19:43 +02:00
Dave Houlton 39733ba1cd DRTVWR-542 merge, purge GLOD copyrights from xml 2021-11-29 15:18:53 -07:00
Andrey Kleshchev 850767eb21 SL-16396 Updater fails with "takes exactly 3 arguments" error 2021-11-29 21:55:45 +02:00
Andrey Kleshchev 27e4e245d9 Merge branch 'DRTVWR-542-meshopt' into DRTVWR-546 2021-11-29 20:33:13 +02:00
Nat Goodspeed 7a0ca277f8 SL-16094: Merge branch 'DRTVWR-546' into glthread 2021-11-29 13:09:59 -05:00
Mnikolenko Productengine 5641f9612c SL-16408 fixed regression - crash on exit 2021-11-29 17:52:11 +02:00
Mnikolenko Productengine f7258b49b2 SL-16408 Fix for crashing on disconnect 2021-11-25 17:33:13 +02:00
Andrey Kleshchev e08a9c4300 SL-16412 More region coroutine crashes
LLViewerRegionImpl (mImpl) exists only so long as region does, and regions get cleaned before coroutines are cleaned.
2021-11-25 00:03:37 +02:00
Andrey Kleshchev a1349c14dd SL-16413 Handle out of memory llface allocations 2021-11-25 00:00:29 +02:00
Nat Goodspeed bd653fb693 SL-16094: Clean up a bit more merge cruft. 2021-11-24 15:20:47 -05:00
Nat Goodspeed 04ebc11a2d SL-16094: Fix WorkQueue test for correct behavior of runFor().
Turns out that one of our WorkQueue integration tests was relying on the
incorrect runFor() behavior that we just fixed, so the test broke. Now that
runFor() doesn't wait around for work to be posted, use an explicit wait loop
instead.

To support this, add LLCond::get(functor), where functor must accept a const
reference to the stored data. This new get() returns whatever the functor
returns, allowing a caller to peek at the stored data.

Also use universal references for all remaining LLCond functor arguments.
2021-11-24 12:56:48 -05:00
Nat Goodspeed 0b066539fe DRTVWR-546, SL-16220, SL-16094: Undo previous glthread branch revert.
Reverting a merge is sticky: it tells git you never want to see that branch
again. Merging the DRTVWR-546 branch, which contained the revert, into the
glthread branch undid much of the development work on that branch. To restore
it we must revert the revert.

This reverts commit 029b41c041.
2021-11-24 10:47:54 -05:00
Nat Goodspeed 78d837789a SL-16400: Make WorkQueue::runFor() and runUntil() stop when done.
runFor(interval) and runUntil(timestamp) are intended, and documented, to run
*no longer than* the specified time. Instead, the initial implementation
always waited the full specified time, hoping for work to arrive. Fix that:
once we clear work that's already pending, return right away.
2021-11-24 09:43:37 -05:00
Nat Goodspeed 877a02dba1 SL-16094: Fix merge glitches from previous revert. 2021-11-24 09:38:56 -05:00
Nat Goodspeed d71e0a6d47 SL-16094, SL-16400: Merge branch 'DRTVWR-546' into glthread 2021-11-23 21:23:45 -05:00
Nat Goodspeed 67ace0df99 SL-16400: Address a couple shutdown crashes.
It can happen that we try to post() work for LLWindowWin32's window thread
after the thread's WorkQueue has been closed.

Also, instead of giving the "General" ThreadPool static lifespan, put it on
the heap, anchored with a static unique_ptr.
2021-11-23 20:48:44 -05:00
Brad Kittenbrink d307843dd4 SL-16388 Viewer MFA Implementation
We now present MFA errors to the user during login and prompt them for
an authentication token.
2021-11-23 17:45:22 -08:00
Brad Kittenbrink a1fb89ebb6 SL-16365 Viewer adds empty mfa token to login params 2021-11-23 17:44:06 -08:00
Nat Goodspeed 2b96f89c2a SL-16400: Add ThreadPool::start() method, and call it.
It's sometimes important to finish other initialization before launching the
threads in the ThreadPool, so make that an explicit step. In particular, we
were launching the LLImageGL texture thread before initializing the GL
context, resulting in all gray textures.
2021-11-23 20:39:32 -05:00
Andrey Kleshchev 317698ff51 SL-16404 Crash in assetRequestCoro
Access violation at writing received data to vfs file. Most crashes indicate network issues, so adding additional response validation.
2021-11-24 01:13:04 +02:00
Dave Parks 8852cb9cbd SL-9436 Fix for glow disappearing when 100% transparent. 2021-11-23 21:33:21 +00:00
Andrey Kleshchev 98b416ff5c SL-16396 Updater fails with "takes exactly 3 arguments" error 2021-11-23 22:56:05 +02:00
Mnikolenko Productengine fecbe73fca SL-16368 Fix for crashing on right-clicking mesh avatar on 32bit viewer 2021-11-23 22:52:58 +02:00
Dave Parks 724193e5b0 SL-16239 Fix for slowdown on AMD GPUs (disable core profile and remove volatile members from LLVertexBuffer) 2021-11-23 20:46:27 +00:00
Nat Goodspeed 6d36038e40 Merge branch 'glthread' of ssh://bitbucket.org/lindenlab/viewer into glthreadx 2021-11-23 15:41:46 -05:00
Nat Goodspeed 37900e593d SL-16094: Fix second startup hang.
Add LLWindowWin32Thread::Post(), like post() except it uses PostMessage() to
send the work item to the window thread. Support this in mainWindowProc().

Move LLWindowWin32::recreateWindow()'s destroy_window_handler() call onto the
window thread. Delaying destruction of the old HWND ensures that we can use
PostMessage() and GetMessage() with that HWND to pass the lambda work item.
Moreover, it's likely to be less buggy to call DestroyWindow() on the same
thread that created the window.

Make recreateWindow()'s window thread lambda bind the window class parameters
by value, rather than binding 'this' and back-referencing LLWindowWin32
members.

Make recreateWindow() construct the window thread lambda and then decide
whether to pass it to the window thread using post() or Post(), depending on
whether we have a current HWND -- therefore whether the window thread is
blocked on GetMessage(). That means we can eliminate the kickWindowThread()
call.

Make destroy_window_handler() accept HWND by value rather than by non-const
reference. Since it doesn't attempt to modify the caller's value, this is a
better match for the function's semantics anyway -- but importantly, it lets
us pass a const HWND.
2021-11-23 15:40:36 -05:00
Nat Goodspeed 30cf50e6af SL-16094: Support ll_convert<std::string>(const char*)
and correspondingly, ll_convert<std::wstring>(const wchar_t*).

Now that we're using ll_convert() for single-argument stringize(arg), make
sure it can efficiently handle the simple case of constructing a string from a
const char pointer.
2021-11-23 14:25:16 -05:00
Dave Parks 408ac8f18c SL-16401 Fix for rendering above water things into the water refraction render target. 2021-11-23 16:35:14 +00:00
Nat Goodspeed adc2666dbb SL-16094: Tweak llstring merge 2021-11-23 10:11:16 -05:00