- if (gpu.state.enhancement_active) {
- // this layout is gpu_neon specific..
- vram = gpu.enhancement_bufer +
- (x + 8) / stride * 1024 * 1024;
- x *= 2;
- y *= 2;
- w = w * 2;
- h = h * 2;
- stride *= 2;
- vram_mask = 1024 * 1024 - 1;
- }
+ if (gpu.state.enhancement_active)
+ vram = gpu.get_enhancement_bufer(&x, &y, &w, &h, &stride, &vram_mask);
+