diff options
| author | 2022-09-30 15:34:11 -0700 | |
|---|---|---|
| committer | 2022-09-30 15:34:11 -0700 | |
| commit | d9e375acc34c48edf96110ca2d75571e5209ea9a (patch) | |
| tree | 09844f0da593e0569ac067b4660c41b6251f411b | |
| parent | Merge pull request #8934 from german77/palma_release (diff) | |
| parent | video_core: Modify astc texture decode error fill value (diff) | |
| download | yuzu-d9e375acc34c48edf96110ca2d75571e5209ea9a.tar.gz yuzu-d9e375acc34c48edf96110ca2d75571e5209ea9a.tar.xz yuzu-d9e375acc34c48edf96110ca2d75571e5209ea9a.zip | |
Merge pull request #8910 from vonchenplus/astc_decode_error
video_core: Modify astc texture decode error fill value
Diffstat (limited to '')
| -rw-r--r-- | src/video_core/host_shaders/astc_decoder.comp | 2 | ||||
| -rw-r--r-- | src/video_core/textures/astc.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/host_shaders/astc_decoder.comp b/src/video_core/host_shaders/astc_decoder.comp index 3441a5fe5..d608678a3 100644 --- a/src/video_core/host_shaders/astc_decoder.comp +++ b/src/video_core/host_shaders/astc_decoder.comp | |||
| @@ -1065,7 +1065,7 @@ TexelWeightParams DecodeBlockInfo() { | |||
| 1065 | void FillError(ivec3 coord) { | 1065 | void FillError(ivec3 coord) { |
| 1066 | for (uint j = 0; j < block_dims.y; j++) { | 1066 | for (uint j = 0; j < block_dims.y; j++) { |
| 1067 | for (uint i = 0; i < block_dims.x; i++) { | 1067 | for (uint i = 0; i < block_dims.x; i++) { |
| 1068 | imageStore(dest_image, coord + ivec3(i, j, 0), vec4(1.0, 1.0, 0.0, 1.0)); | 1068 | imageStore(dest_image, coord + ivec3(i, j, 0), vec4(0.0, 0.0, 0.0, 0.0)); |
| 1069 | } | 1069 | } |
| 1070 | } | 1070 | } |
| 1071 | } | 1071 | } |
diff --git a/src/video_core/textures/astc.cpp b/src/video_core/textures/astc.cpp index b159494c5..e3742ddf5 100644 --- a/src/video_core/textures/astc.cpp +++ b/src/video_core/textures/astc.cpp | |||
| @@ -1413,7 +1413,7 @@ static void FillVoidExtentLDR(InputBitStream& strm, std::span<u32> outBuf, u32 b | |||
| 1413 | static void FillError(std::span<u32> outBuf, u32 blockWidth, u32 blockHeight) { | 1413 | static void FillError(std::span<u32> outBuf, u32 blockWidth, u32 blockHeight) { |
| 1414 | for (u32 j = 0; j < blockHeight; j++) { | 1414 | for (u32 j = 0; j < blockHeight; j++) { |
| 1415 | for (u32 i = 0; i < blockWidth; i++) { | 1415 | for (u32 i = 0; i < blockWidth; i++) { |
| 1416 | outBuf[j * blockWidth + i] = 0xFFFF00FF; | 1416 | outBuf[j * blockWidth + i] = 0x00000000; |
| 1417 | } | 1417 | } |
| 1418 | } | 1418 | } |
| 1419 | } | 1419 | } |