diff options
author | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2017-01-28 05:51:59 +0100 |
---|---|---|
committer | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2017-02-04 22:59:09 +0100 |
commit | 9017093f58fb08b85cfb842f305efa667d62cecb (patch) | |
tree | 98a1e77b197a562a8f13565e62f2e8bb9220ff94 /src/video_core/texture/texture_decode.h | |
parent | VideoCore: Split rasterizer regs from Regs struct (diff) | |
download | yuzu-9017093f58fb08b85cfb842f305efa667d62cecb.tar yuzu-9017093f58fb08b85cfb842f305efa667d62cecb.tar.gz yuzu-9017093f58fb08b85cfb842f305efa667d62cecb.tar.bz2 yuzu-9017093f58fb08b85cfb842f305efa667d62cecb.tar.lz yuzu-9017093f58fb08b85cfb842f305efa667d62cecb.tar.xz yuzu-9017093f58fb08b85cfb842f305efa667d62cecb.tar.zst yuzu-9017093f58fb08b85cfb842f305efa667d62cecb.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/texture/texture_decode.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/video_core/texture/texture_decode.h b/src/video_core/texture/texture_decode.h index 5c636939a..8507cfeb8 100644 --- a/src/video_core/texture/texture_decode.h +++ b/src/video_core/texture/texture_decode.h @@ -6,27 +6,27 @@ #include "common/common_types.h" #include "common/vector_math.h" -#include "video_core/pica.h" +#include "video_core/regs_texturing.h" namespace Pica { namespace Texture { /// Returns the byte size of a 8*8 tile of the specified texture format. -size_t CalculateTileSize(Pica::Regs::TextureFormat format); +size_t CalculateTileSize(TexturingRegs::TextureFormat format); struct TextureInfo { PAddr physical_address; unsigned int width; unsigned int height; ptrdiff_t stride; - Pica::Regs::TextureFormat format; + TexturingRegs::TextureFormat format; - static TextureInfo FromPicaRegister(const Pica::Regs::TextureConfig& config, - const Pica::Regs::TextureFormat& format); + static TextureInfo FromPicaRegister(const TexturingRegs::TextureConfig& config, + const TexturingRegs::TextureFormat& format); /// Calculates stride from format and width, assuming that the entire texture is contiguous. void SetDefaultStride() { - stride = Pica::Texture::CalculateTileSize(format) * (width / 8); + stride = CalculateTileSize(format) * (width / 8); } }; |