diff options
| author | Andrey Lihatskiy <alihatskiy@productengine.com> | 2020-11-11 22:14:24 +0200 | 
|---|---|---|
| committer | Andrey Lihatskiy <alihatskiy@productengine.com> | 2020-11-11 22:14:24 +0200 | 
| commit | 0303dd817913c67ef3c809492866ce5e949f0ffd (patch) | |
| tree | 8759e55242c12f1de7f345b730b971cd5f226a9b /indra/llrender | |
| parent | 6154e72d94cd7dc211f42843988776e3775fd2e4 (diff) | |
| parent | 04c473ab46041133ea6a87dbe0d43e662472adf5 (diff) | |
Merge branch 'master' into DRTVWR-513-maint
# Conflicts:
#	autobuild.xml
#	indra/llui/llfolderviewmodel.h
#	indra/newview/lltexturecache.cpp
#	indra/newview/llviewermenu.h
#	indra/newview/skins/default/xui/en/menu_wearable_list_item.xml
Diffstat (limited to 'indra/llrender')
| -rw-r--r-- | indra/llrender/llgl.cpp | 7 | ||||
| -rw-r--r-- | indra/llrender/llvertexbuffer.cpp | 32 | 
2 files changed, 20 insertions, 19 deletions
| diff --git a/indra/llrender/llgl.cpp b/indra/llrender/llgl.cpp index d514b426ec..ee02a90b54 100644 --- a/indra/llrender/llgl.cpp +++ b/indra/llrender/llgl.cpp @@ -2774,10 +2774,11 @@ LLGLSPipelineBlendSkyBox::LLGLSPipelineBlendSkyBox(bool depth_test, bool depth_w  }  #if LL_WINDOWS -// Expose desired use of high-performance graphics processor to Optimus driver +// Expose desired use of high-performance graphics processor to Optimus driver and to AMD driver  extern "C"  -{  -    _declspec(dllexport) DWORD NvOptimusEnablement = 0x00000001;  +{ +    __declspec(dllexport) DWORD NvOptimusEnablement = 0x00000001; +    __declspec(dllexport) int AmdPowerXpressRequestHighPerformance = 1;  }  #endif diff --git a/indra/llrender/llvertexbuffer.cpp b/indra/llrender/llvertexbuffer.cpp index 6a02cd9c19..7d2b09ca4a 100644 --- a/indra/llrender/llvertexbuffer.cpp +++ b/indra/llrender/llvertexbuffer.cpp @@ -1193,7 +1193,7 @@ bool LLVertexBuffer::createGLBuffer(U32 size)  		return true;  	} -	bool sucsess = true; +	bool success = true;  	mEmpty = true; @@ -1215,9 +1215,9 @@ bool LLVertexBuffer::createGLBuffer(U32 size)  	if (!mMappedData)  	{ -		sucsess = false; +		success = false;  	} -	return sucsess; +	return success;  }  bool LLVertexBuffer::createGLIndices(U32 size) @@ -1232,7 +1232,7 @@ bool LLVertexBuffer::createGLIndices(U32 size)  		return true;  	} -	bool sucsess = true; +	bool success = true;  	mEmpty = true; @@ -1257,9 +1257,9 @@ bool LLVertexBuffer::createGLIndices(U32 size)  	if (!mMappedIndexData)  	{ -		sucsess = false; +		success = false;  	} -	return sucsess; +	return success;  }  void LLVertexBuffer::destroyGLBuffer() @@ -1306,7 +1306,7 @@ bool LLVertexBuffer::updateNumVerts(S32 nverts)  {  	llassert(nverts >= 0); -	bool sucsess = true; +	bool success = true;  	if (nverts > 65536)  	{ @@ -1318,34 +1318,34 @@ bool LLVertexBuffer::updateNumVerts(S32 nverts)  	if (needed_size > mSize || needed_size <= mSize/2)  	{ -		sucsess &= createGLBuffer(needed_size); +		success &= createGLBuffer(needed_size);  	}  	sVertexCount -= mNumVerts;  	mNumVerts = nverts;  	sVertexCount += mNumVerts; -	return sucsess; +	return success;  }  bool LLVertexBuffer::updateNumIndices(S32 nindices)  {  	llassert(nindices >= 0); -	bool sucsess = true; +	bool success = true;  	U32 needed_size = sizeof(U16) * nindices;  	if (needed_size > mIndicesSize || needed_size <= mIndicesSize/2)  	{ -		sucsess &= createGLIndices(needed_size); +		success &= createGLIndices(needed_size);  	}  	sIndexCount -= mNumIndices;  	mNumIndices = nindices;  	sIndexCount += mNumIndices; -	return sucsess; +	return success;  }  bool LLVertexBuffer::allocateBuffer(S32 nverts, S32 nindices, bool create) @@ -1358,10 +1358,10 @@ bool LLVertexBuffer::allocateBuffer(S32 nverts, S32 nindices, bool create)  		LL_ERRS() << "Bad vertex buffer allocation: " << nverts << " : " << nindices << LL_ENDL;  	} -	bool sucsess = true; +	bool success = true; -	sucsess &= updateNumVerts(nverts); -	sucsess &= updateNumIndices(nindices); +	success &= updateNumVerts(nverts); +	success &= updateNumIndices(nindices);  	if (create && (nverts || nindices))  	{ @@ -1377,7 +1377,7 @@ bool LLVertexBuffer::allocateBuffer(S32 nverts, S32 nindices, bool create)  		}  	} -	return sucsess; +	return success;  }  static LLTrace::BlockTimerStatHandle FTM_SETUP_VERTEX_ARRAY("Setup VAO"); | 
