summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2022-10-01 00:34:11 +0200
committerGitHub <noreply@github.com>2022-10-01 00:34:11 +0200
commitd9e375acc34c48edf96110ca2d75571e5209ea9a (patch)
tree09844f0da593e0569ac067b4660c41b6251f411b /src/video_core
parentMerge pull request #8934 from german77/palma_release (diff)
parentvideo_core: Modify astc texture decode error fill value (diff)
downloadyuzu-d9e375acc34c48edf96110ca2d75571e5209ea9a.tar
yuzu-d9e375acc34c48edf96110ca2d75571e5209ea9a.tar.gz
yuzu-d9e375acc34c48edf96110ca2d75571e5209ea9a.tar.bz2
yuzu-d9e375acc34c48edf96110ca2d75571e5209ea9a.tar.lz
yuzu-d9e375acc34c48edf96110ca2d75571e5209ea9a.tar.xz
yuzu-d9e375acc34c48edf96110ca2d75571e5209ea9a.tar.zst
yuzu-d9e375acc34c48edf96110ca2d75571e5209ea9a.zip
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/host_shaders/astc_decoder.comp2
-rw-r--r--src/video_core/textures/astc.cpp2
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() {
void FillError(ivec3 coord) {
for (uint j = 0; j < block_dims.y; j++) {
for (uint i = 0; i < block_dims.x; i++) {
- imageStore(dest_image, coord + ivec3(i, j, 0), vec4(1.0, 1.0, 0.0, 1.0));
+ imageStore(dest_image, coord + ivec3(i, j, 0), vec4(0.0, 0.0, 0.0, 0.0));
}
}
}
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
static void FillError(std::span<u32> outBuf, u32 blockWidth, u32 blockHeight) {
for (u32 j = 0; j < blockHeight; j++) {
for (u32 i = 0; i < blockWidth; i++) {
- outBuf[j * blockWidth + i] = 0xFFFF00FF;
+ outBuf[j * blockWidth + i] = 0x00000000;
}
}
}