diff options
author | Lioncash <mathew1800@gmail.com> | 2022-11-29 14:04:40 +0100 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2022-11-29 14:38:46 +0100 |
commit | d7ec031419f7eef3f85210659cf7f6dc8c50d791 (patch) | |
tree | ccc3c652023497a48af86a2842480d88949c2804 /src/video_core/engines/kepler_compute.h | |
parent | Merge pull request #9325 from german77/default_by_default (diff) | |
download | yuzu-d7ec031419f7eef3f85210659cf7f6dc8c50d791.tar yuzu-d7ec031419f7eef3f85210659cf7f6dc8c50d791.tar.gz yuzu-d7ec031419f7eef3f85210659cf7f6dc8c50d791.tar.bz2 yuzu-d7ec031419f7eef3f85210659cf7f6dc8c50d791.tar.lz yuzu-d7ec031419f7eef3f85210659cf7f6dc8c50d791.tar.xz yuzu-d7ec031419f7eef3f85210659cf7f6dc8c50d791.tar.zst yuzu-d7ec031419f7eef3f85210659cf7f6dc8c50d791.zip |
Diffstat (limited to 'src/video_core/engines/kepler_compute.h')
-rw-r--r-- | src/video_core/engines/kepler_compute.h | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/video_core/engines/kepler_compute.h b/src/video_core/engines/kepler_compute.h index aab309ecc..e154e3f06 100644 --- a/src/video_core/engines/kepler_compute.h +++ b/src/video_core/engines/kepler_compute.h @@ -68,7 +68,7 @@ public: struct { u32 address; GPUVAddr Address() const { - return static_cast<GPUVAddr>((static_cast<GPUVAddr>(address) << 8)); + return GPUVAddr{address} << 8; } } launch_desc_loc; @@ -83,8 +83,7 @@ public: u32 address_low; u32 limit; GPUVAddr Address() const { - return static_cast<GPUVAddr>((static_cast<GPUVAddr>(address_high) << 32) | - address_low); + return (GPUVAddr{address_high} << 32) | GPUVAddr{address_low}; } } tsc; @@ -95,8 +94,7 @@ public: u32 address_low; u32 limit; GPUVAddr Address() const { - return static_cast<GPUVAddr>((static_cast<GPUVAddr>(address_high) << 32) | - address_low); + return (GPUVAddr{address_high} << 32) | GPUVAddr{address_low}; } } tic; @@ -106,8 +104,7 @@ public: u32 address_high; u32 address_low; GPUVAddr Address() const { - return static_cast<GPUVAddr>((static_cast<GPUVAddr>(address_high) << 32) | - address_low); + return (GPUVAddr{address_high} << 32) | GPUVAddr{address_low}; } } code_loc; @@ -162,8 +159,7 @@ public: BitField<15, 17, u32> size; }; GPUVAddr Address() const { - return static_cast<GPUVAddr>((static_cast<GPUVAddr>(address_high.Value()) << 32) | - address_low); + return (GPUVAddr{address_high.Value()} << 32) | GPUVAddr{address_low}; } }; std::array<ConstBufferConfig, NumConstBuffers> const_buffer_config; |