From b0d96051c9f087c22922966c651384c3ee84eee0 Mon Sep 17 00:00:00 2001 From: notaz Date: Fri, 14 Jul 2023 01:15:00 +0300 Subject: [PATCH] gpu_neon: fix texels vs pixels confusion --- plugins/gpu_neon/psx_gpu/psx_gpu.h | 4 ++-- plugins/gpu_neon/psx_gpu/psx_gpu_parse.c | 2 +- plugins/gpu_neon/psx_gpu/psx_gpu_simd.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/gpu_neon/psx_gpu/psx_gpu.h b/plugins/gpu_neon/psx_gpu/psx_gpu.h index 1500eea8..bdd9caec 100644 --- a/plugins/gpu_neon/psx_gpu/psx_gpu.h +++ b/plugins/gpu_neon/psx_gpu/psx_gpu.h @@ -69,7 +69,7 @@ typedef struct u16 y; } edge_data_struct; -// 64 bytes total +// 64 (72) bytes total typedef struct { // 16 bytes @@ -93,7 +93,7 @@ typedef struct vec_8x16u pixels; }; - // 8 bytes + // 8 (16) bytes u32 draw_mask_bits; u16 *fb_ptr; diff --git a/plugins/gpu_neon/psx_gpu/psx_gpu_parse.c b/plugins/gpu_neon/psx_gpu/psx_gpu_parse.c index 5ef5f20f..6a88beb7 100644 --- a/plugins/gpu_neon/psx_gpu/psx_gpu_parse.c +++ b/plugins/gpu_neon/psx_gpu/psx_gpu_parse.c @@ -1643,4 +1643,4 @@ breakloop: #endif /* PCSX */ -// vim:shiftwidth=2:expandtab +// vim:ts=2:shiftwidth=2:expandtab diff --git a/plugins/gpu_neon/psx_gpu/psx_gpu_simd.c b/plugins/gpu_neon/psx_gpu/psx_gpu_simd.c index 486897f7..00392549 100644 --- a/plugins/gpu_neon/psx_gpu/psx_gpu_simd.c +++ b/plugins/gpu_neon/psx_gpu/psx_gpu_simd.c @@ -2822,7 +2822,7 @@ void shade_blocks_unshaded_untextured_direct(psx_gpu_struct *psx_gpu) u32 num_blocks = psx_gpu->num_blocks; vec_8x16u pixels; - gvld1q_u16(pixels, block->texels.e); + gvld1q_u16(pixels, block->pixels.e); shade_blocks_load_msb_mask_direct(); while(num_blocks) -- 2.39.2