summaryrefslogtreecommitdiffstats
path: root/src/video_core/texture_cache/surface_params.cpp
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2020-06-01 09:49:35 +0200
committerReinUsesLisp <reinuseslisp@airmail.cc>2020-06-08 10:01:00 +0200
commit3c2ae53b4c574deb4f9afe3104c7d022c53c5281 (patch)
treea66e762e1fadaebdd05b7f13a6dade2ed5129aa6 /src/video_core/texture_cache/surface_params.cpp
parenttexture_cache: Implement rendering to 3D textures (diff)
downloadyuzu-3c2ae53b4c574deb4f9afe3104c7d022c53c5281.tar
yuzu-3c2ae53b4c574deb4f9afe3104c7d022c53c5281.tar.gz
yuzu-3c2ae53b4c574deb4f9afe3104c7d022c53c5281.tar.bz2
yuzu-3c2ae53b4c574deb4f9afe3104c7d022c53c5281.tar.lz
yuzu-3c2ae53b4c574deb4f9afe3104c7d022c53c5281.tar.xz
yuzu-3c2ae53b4c574deb4f9afe3104c7d022c53c5281.tar.zst
yuzu-3c2ae53b4c574deb4f9afe3104c7d022c53c5281.zip
Diffstat (limited to 'src/video_core/texture_cache/surface_params.cpp')
-rw-r--r--src/video_core/texture_cache/surface_params.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/texture_cache/surface_params.cpp b/src/video_core/texture_cache/surface_params.cpp
index 642eeb850..6fe7c85ac 100644
--- a/src/video_core/texture_cache/surface_params.cpp
+++ b/src/video_core/texture_cache/surface_params.cpp
@@ -246,8 +246,8 @@ SurfaceParams SurfaceParams::CreateForFermiCopySurface(
params.width = config.width;
params.height = config.height;
params.pitch = config.pitch;
- // TODO(Rodrigo): Try to guess the surface target from depth and layer parameters
- params.target = SurfaceTarget::Texture2D;
+ // TODO(Rodrigo): Try to guess texture arrays from parameters
+ params.target = params.block_depth > 0 ? SurfaceTarget::Texture3D : SurfaceTarget::Texture2D;
params.depth = 1;
params.num_levels = 1;
params.emulated_levels = 1;