Commit Graph

70 Commits

Author SHA1 Message Date
charles bloom
c4865d0292 TextureFormatASTC fix build
#rb none
#preflight none
#jira none

[CL 25116743 by charles bloom in ue5-main branch]
2023-04-19 17:33:00 -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
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
Dan Thompson
98bcf4f1cb 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

[CL 24678894 by Dan Thompson in ue5-main branch]
2023-03-16 16:42:02 -04:00
Dan Thompson
5a737ea6bc Texture tiling fix.
Certain platforms that tile textures will tile non pow2 textures with mips different than non pow2 textures without mips, so we need to plumb down information about the mip chain to the tiling texture formats.
#rb fabian.giesen
#preflight 64068553aa00423335f30765

[CL 24546549 by Dan Thompson in ue5-main branch]
2023-03-07 15:15:48 -05:00
Dmitriy Dyomin
e72a9af7da Use ARM astcenc by default for ASTC texture compression
#jira UE-152945
#preflight trivial

[CL 24518700 by Dmitriy Dyomin in ue5-main branch]
2023-03-05 22:58:47 -05:00
Dmitriy Dyomin
1221e5705d Added support for ASTC Luminace+Alpha encoded normal maps
#jira none
#preflight 6404782e1d304a5471847436

[CL 24518576 by Dmitriy Dyomin in ue5-main branch]
2023-03-05 21:08:09 -05:00
Dmitriy Dyomin
b7a6440333 Update ASTC encoder to version 4.2.0 and integrate it as a library
#rb charles.bloom, fabian.giesen
#preflight 64034ea5a20ddf1bf41816df

[CL 24513276 by Dmitriy Dyomin in ue5-main branch]
2023-03-04 09:20:19 -05:00
Dmitriy Dyomin
89d7af656d Fixed: broken ASTC HDR compression
#jira none
#preflight 63b3f15cc6265e21bcdc1a81
#rb wei.iu
#fyi charles.bloom, jeannoe.morissette

[CL 23565227 by Dmitriy Dyomin in ue5-main branch]
2023-01-03 08:20:10 -05:00
Dan Thompson
8b4692d085 Remove "mutable" parts of the build settings. For platforms that need the mip dimensions, this is now piped down via a parameter instead of violating "const".
#rb fabian.giesen
#rb charles.bloom
#preflight 636987d7dc30a4ce96651026

[CL 23021179 by Dan Thompson in ue5-main branch]
2022-11-07 18:29:15 -05:00
charles bloom
464ba56fe9 astcenc use correct gamma space encoder mode
TextureFormatASTC

#preflight 6321fb97b602881e8e296eb3
#rb dan.thompson

[CL 22012868 by charles bloom in ue5-main branch]
2022-09-14 14:57:08 -04:00
charles bloom
1db99db5b7 fix astcenc swapping RB in TextureFormatASTC
also new cvars to run the decoder and leave temp files :
cook.ASTCDebugLeaveTempFiles=1
cook.ASTCDebugWriteDecodedImage=1

#preflight 631f61f822433f4f5c69f181
#rb none

[CL 21982673 by charles bloom in ue5-main branch]
2022-09-13 10:45:34 -04:00
charles bloom
6c14f474e8 update ASTCenc to 3.7
ASTCenc is not currently used (ISPCTexcomp is)

#preflight 62f42bda466f8c150dc1445a
#rb fabian.giesen

[CL 21328759 by charles bloom in ue5-main branch]
2022-08-10 18:42:49 -04:00
charles bloom
3cf577ad9a comments only : clean up some todo marks
#rb none
#preflight none

[CL 21326622 by charles bloom in ue5-main branch]
2022-08-10 17:26:50 -04:00
charles bloom
60eb0735b4 reduce texture build memory use by freeing source images when no longer needed
#preflight 62b72389ff7f5dd87e2f5573
#rb fabian.giesen,dan.thompson

[CL 20830728 by charles bloom in ue5-main branch]
2022-06-27 10:44:18 -04:00
Dan Thompson
0c889685e3 Updating the mip packing and tiling interfaces to not require image bits. This is required to determine memory layouts for textures prior to launching texture builds.
#rb fabian.geisen
#preflight 62a90ea9943e7bb256c39717

[CL 20659876 by Dan Thompson in ue5-main branch]
2022-06-14 19:00:42 -04:00
will damon
d8552d7b32 Update ISPCTextureCompressor libraries.
- Latest ISPCTextureCompressor brings a number of bug fixes and includes Apple silicon support.
- Update IntelISPCTexComp.Build.cs to reference new paths
- Update Windows (x64), Linux (thanks MikeS!) and Mac dynamic libraries
- Remove Win32 dynamic libraries
- Enable ShaderCompileWorker as an arm64 native target for UAT
- Bump ASTC and ISP_ASTC version numbers (for DDC)

#rb josh.adams, chris.babcock
#fyi charles.bloom, jeff.newquist
#jira UE-145047, UE-145025, UE-150669, UE-154182
#rnx
#preflight 629a0abe2230bd91403f0f02

[CL 20487296 by will damon in ue5-main branch]
2022-06-03 11:39:35 -04:00
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
charles bloom
a70c6d6371 TextureFormatASTC better logs
#rb none
#preflight none

[CL 20352025 by charles bloom in ue5-main branch]
2022-05-24 14:03:10 -04:00
charles bloom
f99959bbc4 Fix ASTC mapping for BC6 and BC7
Fix ASTC HDR support
Fix up ASTC & ISPC texture formats a bit

#preflight 628cedc7347b7778b6b8745e
#rb jon.olick,fabian.giesen

[CL 20348873 by charles bloom in ue5-main branch]
2022-05-24 11:21:35 -04:00
charles bloom
29ade7e00c nop comment about bad DDC Key behavior of TextureFormatASTC with ISPC
#rb none
#preflight none

[CL 19743754 by charles bloom in ue5-main branch]
2022-04-13 15:02:10 -04:00
charles bloom
02c1f6e23e fix many bad things in TextureFormatASTC
also robustinate

#preflight 6250a7e949714edddfe2ea15
#rb fabian.giesen

[CL 19698620 by charles bloom in ue5-main branch]
2022-04-08 19:20:14 -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
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