summaryrefslogtreecommitdiff
path: root/src/video_core/engines
diff options
context:
space:
mode:
authorGravatar ReinUsesLisp2019-11-13 00:25:52 -0300
committerGravatar ReinUsesLisp2019-11-22 21:28:48 -0300
commit287ae2b9e8ea38642a4c8e36f7863d881d4c0e87 (patch)
treefeb26b3520031dfff59e7cf8e85018ab888cc2fa /src/video_core/engines
parentgl_shader_cache: Specialize shared memory size (diff)
downloadyuzu-287ae2b9e8ea38642a4c8e36f7863d881d4c0e87.tar.gz
yuzu-287ae2b9e8ea38642a4c8e36f7863d881d4c0e87.tar.xz
yuzu-287ae2b9e8ea38642a4c8e36f7863d881d4c0e87.zip
gl_shader_cache: Specialize local memory size for compute shaders
Local memory size in compute shaders was stubbed with an arbitary size. This commit specializes local memory size from guest GPU parameters.
Diffstat (limited to 'src/video_core/engines')
-rw-r--r--src/video_core/engines/kepler_compute.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/video_core/engines/kepler_compute.h b/src/video_core/engines/kepler_compute.h
index bd49c6627..c526287b7 100644
--- a/src/video_core/engines/kepler_compute.h
+++ b/src/video_core/engines/kepler_compute.h
@@ -178,7 +178,12 @@ public:
178 BitField<24, 5, u32> gpr_alloc; 178 BitField<24, 5, u32> gpr_alloc;
179 }; 179 };
180 180
181 INSERT_PADDING_WORDS(0x11); 181 union {
182 BitField<0, 20, u32> local_crs_alloc;
183 BitField<24, 5, u32> sass_version;
184 };
185
186 INSERT_PADDING_WORDS(0x10);
182 } launch_description{}; 187 } launch_description{};
183 188
184 struct { 189 struct {