From: notaz Date: Thu, 13 Jul 2023 22:15:00 +0000 (+0300) Subject: gpu_neon: fix texels vs pixels confusion X-Git-Tag: r24~251 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=commitdiff_plain;h=b0d96051c9f087c22922966c651384c3ee84eee0 gpu_neon: fix texels vs pixels confusion --- 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)