gpu_neon: fix texels vs pixels confusion
authornotaz <notasas@gmail.com>
Thu, 13 Jul 2023 22:15:00 +0000 (01:15 +0300)
committernotaz <notasas@gmail.com>
Thu, 13 Jul 2023 22:15:00 +0000 (01:15 +0300)
plugins/gpu_neon/psx_gpu/psx_gpu.h
plugins/gpu_neon/psx_gpu/psx_gpu_parse.c
plugins/gpu_neon/psx_gpu/psx_gpu_simd.c

index 1500eea..bdd9cae 100644 (file)
@@ -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;
 
index 5ef5f20..6a88beb 100644 (file)
@@ -1643,4 +1643,4 @@ breakloop:
 
 #endif /* PCSX */
 
-// vim:shiftwidth=2:expandtab
+// vim:ts=2:shiftwidth=2:expandtab
index 486897f..0039254 100644 (file)
@@ -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)