Commit Graph

72 Commits

Author SHA1 Message Date
charles bloom
593fab6f69 Clamp F16 in valid range for BC6H in ISPC and ASTC, also set A to 1
even though ASTC could encode other values of A, still clamp as if it was BC6H for consistency
now all compressed HDR formats should clamp the same way that Oodle Texture currently does

#preflight 6296556c452ffe576a816993
#rb fabian.giesen

[CL 20440882 by charles bloom in ue5-main branch]
2022-05-31 15:49:40 -04:00
devin doucette
b2a07ea03e DDC: Merge from UE5/Main
#preflight 6288ff678828ea88c8af7034
#preflight 628ab5d93246d5019db76ed2
#rb none
#rnx

#ROBOMERGE-OWNER: devin.doucette
#ROBOMERGE-AUTHOR: Devin.Doucette
#ROBOMERGE-SOURCE: CL 20353148 via CL 20353832 via CL 20353839
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v948-20297126)

[CL 20355348 by devin doucette in ue5-main branch]
2022-05-24 16:40:25 -04:00
charles bloom
dfd05f4f67 fix TextureFormatOodle error log was printing garbage
#rb none
#preflight none

[CL 20348260 by charles bloom in ue5-main branch]
2022-05-24 10:50:46 -04:00
charles bloom
3f13372f3b TextureFormatOodle nop just comment about bForceNoAlphaChannel behavior
#rb none
#preflight none

[CL 20330628 by charles bloom in ue5-main branch]
2022-05-23 12:36:46 -04:00
charles bloom
bdc5ee918a Oodle 2.9.6 enabled retry
Data and Network switched to 2.9.6
Texture adds 2.9.6 as a new Version, keeps 2.9.5, old data stays on 2.9.5

#rb fabian.giesen
#preflight 627296807b6d0faffa717550

[CL 20042663 by charles bloom in ue5-main branch]
2022-05-04 11:40:20 -04:00
aurel cordonnier
2d30c12004 [Backout] - CL20025595
#fyi charles.bloom
Original CL Desc
-----------------------------------------------------------------
Oodle 2.9.6 enabled
Data and Network switched to 2.9.6
Texture adds 2.9.6 as a new Version, keeps 2.9.5, old data stays on 2.9.5

#rb fabian.giesen
#preflight 62713b08fe09c0cfbc389467

[CL 20027456 by aurel cordonnier in ue5-main branch]
2022-05-03 12:39:34 -04:00
charles bloom
4cc32e39d6 Oodle 2.9.6 enabled
Data and Network switched to 2.9.6
Texture adds 2.9.6 as a new Version, keeps 2.9.5, old data stays on 2.9.5

#rb fabian.giesen
#preflight 62713b08fe09c0cfbc389467

[CL 20025595 by charles bloom in ue5-main branch]
2022-05-03 10:41:01 -04:00
charles bloom
600710d0b7 quieter log spew when running TBW
but do log in editor and cook

#rb none
#preflight none

#ROBOMERGE-AUTHOR: charles.bloom
#ROBOMERGE-SOURCE: CL 19961272 via CL 19961945 via CL 19962983
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v943-19904690)

[CL 19971604 by charles bloom in ue5-main branch]
2022-04-28 18:50:35 -04:00
Andriy Tylychko
fcdbf6843b Tasks system refactoring and general optimisations:
* tasks store task body by value in place
* pooled task allocation
* FTaskEvent doesn't have a body and is not executed
* basic waiting for a task (w/o timeout) allocates the waiting task on the stack
* optimised internal atomic state and task retraction

#rb francis.hurteau
#preflight https://horde.devtools.epicgames.com/job/625e84b0d412434587e1b740

[CL 19805905 by Andriy Tylychko in ue5-main branch]
2022-04-19 06:03:04 -04:00
charles bloom
be238dee17 fix failures on texture import of rare cases
fix RHI upload of textures that are multiple of 4 in top mip but not in lower mips
dont pad CompressedImage sizes, store true size
clean up Texture size limits and VT conditions
better default settings for texture import
clean up initialization order of TextureFormatManagerModule

#preflight 6250814a11261bc7b23d8f4b
#rb fabian.giesen,julien.stjean

[CL 19693287 by charles bloom in ue5-main branch]
2022-04-08 16:06:54 -04:00
Dan Thompson
96b34a88b8 Adding access to debug color encoding from the command line, and adding log to make it clear you turned things on.
#rb fabian.giesen
#preflight 624cb108837c93f1a3e8ab26

[CL 19632261 by Dan Thompson in ue5-main branch]
2022-04-05 17:37:46 -04:00
charles bloom
d5b7476357 make image copying to Pow22 gamma a warning and prevent callers from doing so
pow22 should old be used as a source gamma
dest gamma should always be srgb or linear

#preflight 62432a61df7d23dbfeeb57bc
#rb none

[CL 19543713 by charles bloom in ue5-main branch]
2022-03-29 12:16:51 -04:00
charles bloom
ebd2220f02 TextureFormatOodle -OodleDebugDumpFilter command line option
#rb none
#preflight none

[CL 19523070 by charles bloom in ue5-main branch]
2022-03-27 13:30:17 -04:00
charles bloom
941a6af008 TextureFormatOodle : ensure debug dump file name doesn't get too long
#rb none
#preflight none

[CL 19521841 by charles bloom in ue5-main branch]
2022-03-26 12:02:29 -04:00
fabian giesen
598269a3db TextureFormatOodle target 16k pixels per job
Oodle Texture has cutoffs for this internally but they're much lower; we're also using 16k pixels as the cut-off for CopyImage, seems like an OK target here.

#rb dan.thompson
#preflight 6239011a1302f69e9a766891

[CL 19459702 by fabian giesen in ue5-main branch]
2022-03-21 19:04:07 -04:00
charles bloom
0213e43bbf rename DDSFile namespace to UE::DDS
#rb none
#preflight none

[CL 19414224 by charles bloom in ue5-main branch]
2022-03-16 18:26:52 -04:00
martins mozeiko
ba537b27b0 Fix for passing wrong slices to oodle texture compression input.
Increments Oodle Texture DDC version from 13 to 14.

#rb fabian.giesen
#preflight none

[CL 19382546 by martins mozeiko in ue5-main branch]
2022-03-15 00:39:13 -04:00
fabian giesen
c372fe80be DDSFile read/write from mem not archives; cleanups.
Use TArray/TArray64 instead of raw allocs for our storage, there's no reason not to.
(The only reason the original code did raw allocs was because it was adapted from C code.)

Read from/write to memory not FArchive by request.

FDDSHeader->FDDSHeaderWithMagic, we don't care about the old-school DDSURFACEDESC,
we only ever have magic then ddsd so just make it part of the header struct.

Make mip sizes int64; a 16k * 16k R32G32B32A32_FLOAT image is enough to overflow 4GB.

#rb charles.bloom
#preflight 622914ee0d5a90e98eccf49d

[CL 19325619 by fabian giesen in ue5-main branch]
2022-03-09 16:05:29 -05:00
charles bloom
735e86e706 Texture Final compression preview option in Editor
to use Final EncodeSpeed on a texture instead of Fast when editing changes
so you can see the project's Final RDO settings while working on a texture

#preflight 6227c776671c913c052a82fb
#rb dan.thompson

[CL 19311911 by charles bloom in ue5-main branch]
2022-03-08 17:06:33 -05:00
danny couture
dfa3b599c8 Improve parallellism of cube textures compression for shorter overall game-thread stalls
- 14.1s to 7.6s when loading CitySample Small_City_LVL -ddc=cold

#rb Charles.Bloom, Fabian.Giesen
#preflight 6225f3a7b97fb949cf3412a2

[CL 19284116 by danny couture in ue5-main branch]
2022-03-07 07:47:05 -05:00
martins mozeiko
73a3d6fd78 Avoid texture conversion to RGBA32F linear color space when unnecessary.
Adds faster code paths for common CopyImage conversions.

#rb charles.bloom
#preflight none

[CL 19235453 by martins mozeiko in ue5-main branch]
2022-03-02 20:13:48 -05:00
charles bloom
c02e00d084 TextureFormatOodle put format and lambda on the DebugDump file names
#rb none
#preflight none

[CL 19175977 by charles bloom in ue5-main branch]
2022-02-28 12:26:00 -05:00
charles bloom
183b22c547 prepare ApplyCompositeTexture and GenerateTopMip for change
verified nop no change in behavior
prefix scopes with Texture.

#rb dan.thompson,fabian.giesen
#preflight none

[CL 19042123 by charles bloom in ue5-main branch]
2022-02-17 16:20:55 -05:00
charles bloom
3f69085821 fix Insights scope name OodleJob to Oodle_EncodeBCN_Task
behavior nop

#rb none
#preflight none

[CL 18997610 by charles bloom in ue5-main branch]
2022-02-15 11:47:55 -05:00
charles bloom
25077bc560 Better insights scope names in TextureFormatOodle
behavior nop

#rb none
#preflight none

[CL 18995866 by charles bloom in ue5-main branch]
2022-02-15 10:11:28 -05:00