Commit Graph

907 Commits

Author SHA1 Message Date
UnknownShadow200
b7ac22ec34 Fix lighting using some values calculated for last vertex, instead of the current vertex 2025-02-08 12:23:43 +11:00
Luke Benstead
acee4b5c37 Merge branch 'quicker_transform' into 'master'
Quicker vertex transform in non-fast path

See merge request simulant/GLdc!144
2025-02-02 08:34:36 +00:00
Luke Benstead
9100660c78 Merge branch 'attribute_speedup' into 'master'
Move attribute parsing into separate file and avoid recomputing parse/read functions unless necessary

See merge request simulant/GLdc!143
2025-02-02 08:32:06 +00:00
UnknownShadow200
a566bba082 Call TransformVertex directly instead of using TransformVertices 2025-02-02 15:58:19 +11:00
UnknownShadow200
3b2e549934 Optimise vertex transform in non-fast path to avoid storing xyz to memory and then loading it again 2025-02-02 14:36:40 +11:00
UnknownShadow200
9d717800bd Reorganise attribute parsing functions 2025-02-02 13:51:30 +11:00
Luke Benstead
ea4073fbdc Merge branch 'error_coldpath' into 'master'
Move error handling code into the cold path

See merge request simulant/GLdc!142
2025-02-01 11:10:52 +00:00
Luke Benstead
8a572f5a51 Merge branch 'builtin_math' into 'master'
Prefer relying on built in codegen rather than relying on sh4_math.h

See merge request simulant/GLdc!141
2025-02-01 11:09:59 +00:00
UnknownShadow200
e2c3ff0ed6 Fix not building for desktop 2025-02-01 20:12:23 +11:00
UnknownShadow200
e2fc2da055 Move error handling code into the cold path 2025-02-01 19:58:22 +11:00
UnknownShadow200
5318f11f11 Defer recomputing attributes state when possible 2025-02-01 18:17:28 +11:00
UnknownShadow200
3550c89501 Make non-textured non-fast drawing a little bit faster 2025-02-01 17:04:42 +11:00
UnknownShadow200
a35659ce3d Fix enable/disable attribute calls not updating read functions 2025-02-01 16:05:07 +11:00
UnknownShadow200
bdecf90d64 Calculate read attribute functions when attribute states changes, instead of at every draw call 2025-02-01 15:38:59 +11:00
UnknownShadow200
3b4b1b6975 Fix compile error 2025-02-01 14:00:49 +11:00
UnknownShadow200
71d0094ac4 Prefer relying on built in codegen rather than relying on sh4_math.h 2025-02-01 13:06:37 +11:00
Luke Benstead
2a2849d5e9 Merge branch 'falco/m4_single_lto_abi_fixes' into 'master'
API FP ABI conformity fixes for -flto and -m4-single

See merge request simulant/GLdc!140
2025-01-27 17:54:00 +00:00
Falco Girgis
dc0c8148cb API FP ABI conformity fixes. 2025-01-27 00:53:23 -06:00
Luke Benstead
36ba8099bb Merge branch 'kos_string.h_rip' into 'master'
Deleting memcpy2/4() and memset2/4() routines

See merge request simulant/GLdc!139
2025-01-24 09:36:42 +00:00
Falco Girgis
9653bf8c12 Got rid of a memset4() call from KOS. 2025-01-23 21:27:34 -06:00
Falco Girgis
a13d8a180b Removed kos/string.h dependency. 2025-01-23 21:24:06 -06:00
Luke Benstead
b4c2dd0a5e Merge branch 'micro_opts' into 'master'
Few micro optimisations

See merge request simulant/GLdc!133
2024-12-22 22:31:47 +00:00
Luke Benstead
aa383913cd Merge branch 'nonPOT2glTexSubImage2D' into 'master'
update for glTexSubImage2D, now checks the active texture size and not the...

See merge request simulant/GLdc!136
2024-12-07 23:27:52 +00:00
GPF
f7830df480 removed the commented out debug printing 2024-12-07 16:24:05 -07:00
Luke Benstead
55a912b621 Fix continuous free count 2024-12-07 19:54:16 +00:00
Luke Benstead
c4786a62e6 Fix bug in allocations (thanks @skmp) 2024-12-07 19:35:40 +00:00
Troy Davis
11651f331c Merge branch GLdc:master into nonPOT2glTexSubImage2D 2024-10-15 19:12:59 +00:00
GPF
553f6016f3 Only initialize the texture buffer with zeros if it's a partial update 2024-10-15 12:11:17 -07:00
GPF
b44dddbaff removed some unneeded code 2024-10-15 12:04:17 -07:00
GPF
4adf11543b fixed the case where xoffset and yoffset !=0 in glTexSubImage2D 2024-10-15 11:25:56 -07:00
GPF
a11847e513 update for glTexSubImage2D, now checks the active texture size and not the subimage size to draw the glTexSubImage2D pixelas into drawing with the xoffset and yoffset into the existing POT2 texture, so subimage size doesn't need to be a POT2. 2024-10-14 13:26:17 -07:00
Luke Benstead
69660476cd Merge branch 'glTexSubImage2D' into 'master'
quick implementation of glTexSubImage2D/_glTexSubImage2DValidate, update to...

See merge request simulant/GLdc!135
2024-10-13 20:44:00 +00:00
GPF
72136bb7f5 quick implementation of glTexSubImage2D/_glTexSubImage2DValidate, update to nehe06 example to show usage of glTexSubImage2D, and a compile issue to primitive_modes fixed. 2024-10-13 12:58:09 -07:00
Luke Benstead
d1294690a1 Merge branch 'pvr.h_update_fixes' into 'master'
Removed opb_count hack for older KOS versions

See merge request simulant/GLdc!134
2024-10-10 05:58:53 +00:00
Falco Girgis
6407353121 Removed opb_count hack for older KOS versions 2024-10-09 22:20:32 -05:00
UnknownShadow200
490bf3de6d Unify and slightly simplify specialised matrix multiply functions 2024-10-07 18:06:42 +11:00
UnknownShadow200
91b59ceca8 glXYZPointer methods now avoid recomputing state when only the data pointer changes
It is relatively common to call glXYZPointer multiple times with a different pointer but the same type/size
2024-10-07 18:06:03 +11:00
Luke Benstead
5a36e93993 Merge branch 'resize_coldpath' into 'master'
Move aligned_vector_reserve onto cold path since it should rarely be called

See merge request simulant/GLdc!132
2024-10-05 06:36:38 +00:00
UnknownShadow200
a1b104c918 Move aligned_vector_reserve onto cold path since it should rarely be called
E.g. with glVertex3f this means 3 less CPU registers are saved onto the stack
2024-10-05 11:34:14 +10:00
UnknownShadow200
82d64618f8 Primitive modes sample should let you press START to exit, like other samples 2024-10-05 06:49:04 +10:00
Luke Benstead
31676d9dc8 Merge branch 'sq_fix' into 'master'
Use direct render APIs instead of manually locking/unlocking store queues

See merge request simulant/GLdc!129
2024-10-04 14:29:12 +00:00
Luke Benstead
98577ebb31 Merge branch 'twid_speedup' into 'master'
Only check whether twiddle table needs updating once instead of every pixel

See merge request simulant/GLdc!130
2024-10-04 14:28:16 +00:00
UnknownShadow200
6f0acd5218 Only check whether twiddle table needs updating once instead of every pixel
Based on checking disassembly output in Release mode
2024-10-04 22:11:42 +10:00
UnknownShadow200
ea56577ca9 Use direct render APIs instead of manually locking/unlocking store queues
This ensures that GLdc works in both 2.1.0 and latest matter
2024-10-04 19:51:33 +10:00
Luke Benstead
aef36f3f11 Merge branch 'prim_mode_cullfix' into 'master'
Fix points/lines being improperly culled

See merge request simulant/GLdc!128
2024-10-03 05:55:30 +00:00
UnknownShadow200
c30b16b97b Fix points/lines being improperly culled 2024-10-03 08:08:33 +10:00
Luke Benstead
57d5a59d65 Merge branch 'prim_modes' into 'master'
Add remainder of OpenGL primitive modes

See merge request simulant/GLdc!127
2024-10-02 12:51:47 +00:00
UnknownShadow200
2b06418fed Fix not compiling on desktop due to relying on KOS specific frsqrt 2024-10-02 20:27:28 +10:00
UnknownShadow200
4513b040e2 Don't inline less optimal primitive modes 2024-10-02 20:07:36 +10:00
UnknownShadow200
165eb9d5c8 Add primitive modes sample, quad strips partially work
Although the second triangle is wrongly culled
2024-10-02 19:28:02 +10:00