summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2020-05-26 22:36:23 +0200
committerReinUsesLisp <reinuseslisp@airmail.cc>2020-05-26 22:50:08 +0200
commitb2c4521a9102db22ed1ef950cb7b31b856caa5ab (patch)
treeaa1c8591e5aa1e3cbd62a5a4f9edd43db8d3f583 /src
parentgl_texture_cache: Implement small texture view cache for swizzles (diff)
downloadyuzu-b2c4521a9102db22ed1ef950cb7b31b856caa5ab.tar
yuzu-b2c4521a9102db22ed1ef950cb7b31b856caa5ab.tar.gz
yuzu-b2c4521a9102db22ed1ef950cb7b31b856caa5ab.tar.bz2
yuzu-b2c4521a9102db22ed1ef950cb7b31b856caa5ab.tar.lz
yuzu-b2c4521a9102db22ed1ef950cb7b31b856caa5ab.tar.xz
yuzu-b2c4521a9102db22ed1ef950cb7b31b856caa5ab.tar.zst
yuzu-b2c4521a9102db22ed1ef950cb7b31b856caa5ab.zip
Diffstat (limited to 'src')
-rw-r--r--src/video_core/texture_cache/texture_cache.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/video_core/texture_cache/texture_cache.h b/src/video_core/texture_cache/texture_cache.h
index d6efc34b2..8bfc541d4 100644
--- a/src/video_core/texture_cache/texture_cache.h
+++ b/src/video_core/texture_cache/texture_cache.h
@@ -991,7 +991,9 @@ private:
params.target = target;
params.is_tiled = false;
params.srgb_conversion = false;
- params.is_layered = false;
+ params.is_layered =
+ target == SurfaceTarget::Texture1DArray || target == SurfaceTarget::Texture2DArray ||
+ target == SurfaceTarget::TextureCubemap || target == SurfaceTarget::TextureCubeArray;
params.block_width = 0;
params.block_height = 0;
params.block_depth = 0;