Commit Graph

203 Commits

Author SHA1 Message Date
dan thompson
f4c4e7731c Backing out the typecast stuff again - this time because there are incoming changes from UE that will cause big headaches. Gonna wait until they land in this stream to try this again.
[Backout] - CL25586915
[FYI] Dan.Thompson
Original CL Desc
-----------------------------------------------------------------
Enable the typecast error now that theoretically they are all fixed (this time :( ).
#rb none
#jira UE-166462
#preflight 646bfa2f656436839e398ad0

[CL 25593278 by dan thompson in ue5-main branch]
2023-05-23 18:34:21 -04:00
dan thompson
4fed9eef3b Enable the typecast error now that theoretically they are all fixed (this time :( ).
#rb none
#jira UE-166462
#preflight 646bfa2f656436839e398ad0

[CL 25592286 by dan thompson in ue5-main branch]
2023-05-23 18:14:27 -04:00
martins mozeiko
f656fa0cd4 Reducing texture build memory usage by freeing mip pixel memory as they are no longer needed
#jira UE-179421
#preflight 646bbd892c0a5da0dc136fca
#rb dan.thompson

[CL 25570200 by martins mozeiko in ue5-main branch]
2023-05-22 16:57:39 -04:00
dan thompson
b361dacafb Clang specific cast warnings, and fixing an incorrect cast fix from last checkin.
#rb fabian.giesen
#preflight 646b9adb4130b0ce5038e725

[CL 25568727 by dan thompson in ue5-main branch]
2023-05-22 15:17:38 -04:00
devin doucette
8569448f20 xxHash: Removed TTask from the API
Management of tasks is more suitable for higher-level code.

Includes rearrangement of some code that was updated inconsistently during compile time optimizations.

#preflight 646690628720894fb6cd5f2d
#rb Dan.Thompson
#rnx

[CL 25548233 by devin doucette in ue5-main branch]
2023-05-19 13:52:37 -04:00
dan thompson
278d3b0ce3 Type safety set to off to fix build issue as I missed some stuff.
#rb none
#preflight none

[CL 25514931 by dan thompson in ue5-main branch]
2023-05-17 15:58:28 -04:00
dan thompson
042c6053e7 Typecast warning fixups
#jira UE-166462
#rb fabian.giesen
#preflight 6463ec86d62884a78fd92874

[CL 25514891 by dan thompson in ue5-main branch]
2023-05-17 15:57:20 -04:00
bryan sefcik
381f77acda Optimized include module name dependencies.
#preflight 6463e313d62884a78fd74e07

[CL 25497030 by bryan sefcik in ue5-main branch]
2023-05-16 16:39:35 -04:00
dan thompson
6083992f93 Switch to xxhash for mip hashing.
#rb fabian.giesen
#jira UE-183751
#preflight 645d2b79ea1c7ba4d6b744d7

[CL 25438535 by dan thompson in ue5-main branch]
2023-05-11 19:32:41 -04:00
Steve Robb
0f44db07d5 Replaced some container operator new usage.
#rb james.hopkin
#jira none
#preflight 6459670f28155a0f41565a34

[CL 25384456 by Steve Robb in ue5-main branch]
2023-05-09 05:17:49 -04:00
charles bloom
91159a0815 TextureCompressorModule: GenerateMipChain detach free and delete test code
#preflight none
#rb dan.thompson
#rnx

[CL 25140973 by charles bloom in ue5-main branch]
2023-04-20 20:22:13 -04:00
charles bloom
a3e908ec8c TextureCompressorModule : two mip gens can run at the same time
#preflight none
#rb martins.mozeiko
#rnx

[CL 25139747 by charles bloom in ue5-main branch]
2023-04-20 19:09:10 -04:00
charles bloom
b4cc25d7bd TextureCompressorModule : fix bug introduced on Blur+NewFilters filter MipGen
#preflight none
#rb none
#rnx

[CL 25139593 by charles bloom in ue5-main branch]
2023-04-20 19:05:10 -04:00
charles bloom
4af88e0ef3 TextureCompressorModule : GenerateMipChain no need to use ping pong buffers and memcpy if the output and average filter are the same, we can work directly in the output mip chain
#preflight https://horde.devtools.epicgames.com/job/64417fc7f126d87e458e0e51
#rb martins.mozeiko
#rnx

[CL 25135591 by charles bloom in ue5-main branch]
2023-04-20 16:01:48 -04:00
charles bloom
905543b614 TextureCompressorModule : no need to run the same 2x2 mip gen filter twice
#rb none
#preflight none
#rnx

[CL 25132333 by charles bloom in ue5-main branch]
2023-04-20 14:18:42 -04:00
charles bloom
2b781f1c8c TextureCompressor better core utilization from improved ParallelFor usage
also detach the MipChain free to a task

#rb fabian.giesen
#preflight none

[CL 25121092 by charles bloom in ue5-main branch]
2023-04-19 20:47:37 -04:00
charles bloom
420b6f6adb TextureCompressorModule : run hashing for metadata on an async task
change FImage passed to TextureFormat to be const, it must not be changed becausing hashing is running threaded
remove early frees of intermediate image; this increases peak memory use

#preflight https://horde.devtools.epicgames.com/job/643ff4a3090323f9a3f7695e
#rb dan.thompson

[CL 25116608 by charles bloom in ue5-main branch]
2023-04-19 17:29:39 -04:00
charles bloom
2dc38fb568 TextureCompressorModule : trace scope slow MipHashBuilder step
#rb none
#preflight none

[CL 25099648 by charles bloom in ue5-main branch]
2023-04-18 21:25:36 -04:00
charles bloom
3609a87daf TextureCompressorModule : Parallel NormalizeMipChain
#preflight https://horde.devtools.epicgames.com/job/643f18b3b550f425acf0d7ca
#rb fabian.giesen

[CL 25098685 by charles bloom in ue5-main branch]
2023-04-18 19:46:35 -04:00
charles bloom
165a7dda01 TextureCompressorModule : fix some int32 overflows
#rb fabian.giesen
#jira none
#preflight https://horde.devtools.epicgames.com/job/6435d468fa5b95890a6ce7df

[CL 24999480 by charles bloom in ue5-main branch]
2023-04-11 17:53:11 -04:00
charles bloom
aa956df38a fix many texture and image int64 issues
can now successfully import over 32K textures to VT

#preflight https://horde.devtools.epicgames.com/job/6435ab7900398d6f88e8e808
#rb fabian.giesen
#jira none

[CL 24996140 by charles bloom in ue5-main branch]
2023-04-11 15:18:46 -04:00
charles bloom
197dfb19e6 nop just comments, clean up some todo Oodle marks
#rb none
#preflight none

[CL 24950141 by charles bloom in ue5-main branch]
2023-04-06 14:21:41 -04:00
charles bloom
2f71a4cc70 fix crash in Texture when using Downscale on very skew textures
#preflight none
#rb none

[CL 24867858 by charles bloom in ue5-main branch]
2023-03-31 02:41:49 -04:00
Dan Thompson
9a6a7a84d9 Plumb the mip layout down to the child texture ddc key versions as certain child formats need to know mip dimensions in order to know if aspects of the build affect the textures, as well as note in the extended data whether the texture tiling is sensitive to LODBias so that textures that change layouts as a result of that are independent in the ddc.
This also fixes the missing include path for TextureFormat.Build.cs

#rb fabian.giesen
#rb charles.bloom
#preflight 6421fa27974dfaa53cb188e5

[CL 24808879 by Dan Thompson in ue5-main branch]
2023-03-27 16:39:53 -04:00
Dan Thompson
6acfb3256c [Backout] - CL24678894
#fyi Dan.Thompson
Original CL Desc
-----------------------------------------------------------------
Plumb the mip layout down to the child texture ddc key versions as certain child formats need to know mip dimensions in order to know if aspects of the build affect the textures.
#rb fabian.giesen
#rb charles.bloom
#preflight 641378f03f3d31c94a2e86b5
#preflight 64149d297d1280ffe750d78e

[CL 24691763 by Dan Thompson in ue5-main branch]
2023-03-17 13:13:02 -04:00