Commit Graph

355 Commits

Author SHA1 Message Date
Erik Abair 1c6e75885c
nv2a: Enable 16-bit floating point z-buffer mode 2021-11-18 16:46:50 -07:00
Erik Abair a3e507860e
nv2a: Respect pitch in YUV texture conversion, upload 2021-11-13 17:18:23 -07:00
Matt Borgerson 172e4768c6 xbox: Set default machine flag 2021-10-30 13:38:24 -07:00
Matt Borgerson 8602863f36 util: Add fast-hash.h to simplify xxHash usage 2021-10-25 16:30:38 -07:00
Matt Borgerson a4115cf8b3 util: Move xxHash submodule to util/ 2021-10-25 16:30:38 -07:00
Silent 5ae39a321a
util/oslib-win32: Use UTF-16 filesystem API
* Introduces qemu_fopen, qemu_access wrappers, and modifies qemu_open to
  support converting stored UTF-8 paths to UTF-16 to use Unicode
  filesystem API on Windows platform.
* Migrates several native open, fopen, and access calls to their
  qemu_* counterparts to resolve Unicode path handling issues on
  Windows.
2021-10-24 12:09:12 -07:00
wutno 5a80cfa2d9 xbox: Allow manually setting SMC version 2021-10-14 12:16:53 -07:00
Matt Borgerson 5622af4981 nv2a: Discard unknown blend equation 2021-10-13 16:51:30 -07:00
Matt Borgerson 21718399f2 nv2a: Discard unknown blend factors 2021-10-12 01:52:42 -07:00
Matt Borgerson 47b1487a71 nv2a: Move bump mat into pgraph register file 2021-10-12 01:32:08 -07:00
Matt Borgerson 1a49f6066f nv2a: Discard bump env params for tex 0 2021-10-12 01:32:08 -07:00
Erik Abair db2a6aaf6d nv2a: Skip input decode if MAC and ILU are both NOP. 2021-10-12 00:17:50 -07:00
Matt Borgerson fe4929c146 nv2a: Sync on surface type change 2021-09-05 15:24:31 -07:00
Matt Borgerson c31cbf9f4e nv2a: Writeback dirty surfaces on scale change, VM load 2021-07-26 15:03:52 -07:00
Matt Borgerson 59d3bfe268 nv2a: Add swizzle to surface compat check 2021-07-20 10:37:07 -07:00
Matt Borgerson 5ec33df112 nv2a: Minor refactor 2021-07-20 10:37:07 -07:00
Matt Borgerson 5778854dbd nv2a: Scale point sprites by surface scaling factor 2021-07-20 10:37:07 -07:00
Matt Borgerson 52c670141a nv2a: Skip sync when moving from color<->zeta 2021-07-20 10:37:07 -07:00
Matt Borgerson 4a8cc6f623 nv2a: Use scaling factor helper function 2021-07-20 10:37:07 -07:00
Matt Borgerson 5562a484e1 nv2a: Support integer scaling of surface dimensions 2021-07-20 10:37:07 -07:00
Matt Borgerson 814d7e0a9a nv2a: Add flip option in glo_readpixels 2021-07-20 10:37:07 -07:00
Mike Davis 0b9a2e1a8f nv2a: Support NV062_SET_COLOR_FORMAT_LE_Y32 blitting 2021-07-18 22:58:16 -07:00
Mike Davis 0f9b862e37
nv2a: Support texture format SZ_DEPTH_Y16_FIXED 2021-07-12 12:15:49 -07:00
Mike Davis be3df6ab8e nv2a: Support texture format LC_IMAGE_YB8CR8YA8CB8 2021-07-10 23:29:01 -07:00
Mike Davis ed7cbef976
nv2a: Support texture format COLOR_LU_IMAGE_G8B8 2021-07-10 02:58:18 -07:00
Matt Borgerson 203c76f89c nv2a: Handle point sprites, scaling 2021-07-10 02:42:15 -07:00
Mike Davis f03015e20e
nv2a: Support texture format COLOR_SZ_B8G8R8A8 2021-07-03 13:10:31 -07:00
Matt Borgerson 473179b9f4 nv2a: Minimize clip origin for compatible surfaces 2021-07-02 17:42:25 -07:00
Matt Borgerson aaf8522431 nv2a: Add offset to FF inv. viewport matrix 2021-07-02 14:18:30 -07:00
Matt Borgerson 315ac1ceaa nv2a: Transform surface scissor y-coord by abs. surface height 2021-07-02 14:18:30 -07:00
Matt Borgerson 4716b7b980 nv2a: Transform clear y-coord by abs. surface height 2021-07-02 14:18:30 -07:00
Matt Borgerson e0f83c8be7 nv2a: Check zeta dirty after color update 2021-07-02 14:18:30 -07:00
Matt Borgerson 364588f426 nv2a: Better field render handling 2021-07-02 14:18:30 -07:00
Matt Borgerson f3f40b4c89 nv2a: Check surface expansion pitch and overlap 2021-07-02 14:18:30 -07:00
Matt Borgerson a07b8f1a2a nv2a: Factor surface entry population out 2021-07-02 14:18:30 -07:00
Matt Borgerson fef3a463b6 nv2a: Remove old up/down debug messages 2021-07-02 14:18:30 -07:00
Matt Borgerson e9ed81ac5a nv2a: Factor zeta format decode out to a table 2021-07-02 14:18:30 -07:00
Matt Borgerson be9360bb69 nv2a: Improve clipped surface handling 2021-07-02 14:18:30 -07:00
Matt Borgerson a7f3f8f212 nv2a: Don't orphan display buffer 2021-06-17 04:19:24 -07:00
Matt Borgerson fdd7875051 sdl: Print out SDL_GetError message when subsystem init fails 2021-06-15 22:12:34 -07:00
Matt Borgerson 4b74e85379 nvnet: Drop oversized frames 2021-06-11 22:12:00 -07:00
Matt Borgerson 6f477f02a6 nv2a: Enable exclusive clip 2021-06-02 18:08:06 -07:00
Matt Borgerson ebcc77c6c8 nv2a: Fix window clip coordinate transform 2021-06-02 15:42:13 -07:00
haxar e0f4ea28ca lpc47m157: Fix serial 2021-05-18 17:39:10 -07:00
Josef Šimánek df940c0b3f nv2a: Add NV062_SET_COLOR_FORMAT_LE_X8R8G8B8 definition 2021-05-18 13:34:18 -07:00
Matt Borgerson dbc73bbd82 nv2a: Derive rho, phi, theta from spot direction 2021-05-18 10:18:45 -07:00
Matt Borgerson 74f724715d nv2a: Fixup qstring to mstring 2021-05-18 10:18:45 -07:00
Wilhelm Kovatch e2e3572301 nv2a: implement FFP LIGHT_SPOT 2021-05-18 10:17:19 -07:00
Matt Borgerson 0caeda66b1 xbox-pci: Factor out ram_size global 2021-04-19 23:33:52 -07:00
Matt Borgerson 4a937586da xbox: Update kvmclock_create with new create_always param 2021-04-18 23:41:28 -07:00
Matt Borgerson e1e28ba62e xbox: Replace bios_name global with MachineState->firmware field 2021-04-18 23:41:28 -07:00
Matt Borgerson fe0aa0c191 xbox: Fixup headers 2021-04-18 23:41:28 -07:00
Matt Borgerson ee18e7bf35 nv2a: Add custom mutable string object (QString is now immutable) 2021-04-18 23:41:28 -07:00
Matt Borgerson dc8eab47f6 nv2a: Use new 'q' prefix for atomics 2021-04-18 23:41:28 -07:00
Matt Borgerson b97b053282 nv2a: Use bool type for state change callback running parameter 2021-04-18 23:41:28 -07:00
Matt Borgerson 11a680301a apu: Use new 'q' prefix for atomics 2021-04-18 23:41:28 -07:00
Matt Borgerson db5a8c7755 apu: Use bool type for state change callback running parameter 2021-04-18 23:41:28 -07:00
Matt Borgerson 6213a2c069 xbox-sio: Include qdev-properties-system.h 2021-04-18 23:41:28 -07:00
Matt Borgerson 66ab3ccb1f xbox-acpi: Set new apci_only param in acpi_pm1_cnt_init 2021-04-18 23:41:28 -07:00
Matt Borgerson 609aee0bbe build: Convert xemu Makefiles to meson 2021-04-18 23:41:28 -07:00
Mike 72b511c091 xbox: Fix for MCPX ROM overlay when not specified 2021-03-23 17:13:19 -07:00
Lucas Eriksson 8b29fa4dd7 video: Default to HDTV avpack 2021-03-18 14:30:47 -07:00
Matt Borgerson 0214f88f91 nv2a: Move vertex decompression to shader 2021-03-16 16:00:42 -07:00
Matt Borgerson e06d1c1343 ui: Bump to GL 4.0 2021-03-16 16:00:42 -07:00
Matt Borgerson 09e2357d02 nv2a: Cache inline elements in LRU 2021-03-16 16:00:42 -07:00
Matt Borgerson 559f105a88 nv2a: Bump up LRU bins 2021-03-16 16:00:42 -07:00
Mike ceee8d67b9 nv2a: Verify surface format X1R5G5B5_Z1R5G5B5 2021-03-13 16:14:31 -07:00
Matt Borgerson 1c6f85cdd9 nv2a: Round inline array attr offsets to natural boundary 2021-03-12 05:18:10 -07:00
Matt Borgerson 8d5961ab8f nv2a: Avoid shader lookups+binds 2021-03-12 04:45:53 -07:00
Matt Borgerson 2dbf966a50 nv2a: Include attribute data address in LRU key 2021-03-11 04:51:36 -07:00
Matt Borgerson fcb3246d4f nv2a: Connect draw arrays primitives originally within BEGIN/END 2021-03-11 03:07:52 -07:00
Matt Borgerson 2483bc59aa Revert "nv2a: Don't attempt to connect primitives in arrays"
This reverts commit 33f8d3c88c.
2021-03-11 03:07:52 -07:00
Matt Borgerson 5756a8892c nv2a: Squash repeated draw arrays 2021-03-11 02:06:35 -07:00
Matt Borgerson 33f8d3c88c nv2a: Don't attempt to connect primitives in arrays 2021-03-11 02:06:35 -07:00
Matt Borgerson 48ccf72e55 nv2a: Consider element range start in buffer uploads 2021-03-11 01:25:45 -07:00
Matt Borgerson 9ab3dcbd6c nv2a: Update VSH constants only if different 2021-03-11 01:10:36 -07:00
Matt Borgerson d62b3f4467 mcpx/apu: Leave voice active at EOL if persist set 2021-03-07 23:54:27 -07:00
Matt Borgerson 851407e07c nv2a/vsh: Output muxed op first to avoid temp clobber 2021-03-06 19:06:47 -07:00
Matt Borgerson 516f2917aa xbox: Add comment to clarify boot ROM details 2021-03-06 17:10:40 -07:00
Mike 5a353bf500 xbox: Support MCPX ROM overlay disable 2021-03-06 17:10:40 -07:00
Matt Borgerson 105f86d973 nv2a: Factor Kelvin methods into functions 2021-03-06 01:45:40 -07:00
Matt Borgerson 9d545d17e7 nv2a: Relax stall conditions on pusher 2021-03-04 20:45:58 -07:00
Camden Smallwood 10863d1c0d nv2a: Use GL_ELEMENT_ARRAY_BUFFER when calling glDrawElements 2021-03-04 17:53:08 -07:00
Matt Borgerson 7284a27d95 input: Update at device poll if not updated recently 2021-03-04 13:52:04 -07:00
Matt Borgerson fc73893f3c nv2a: Fix clip range scaling precision loss 2021-03-03 18:10:49 -07:00
wutno 76272d306b
xbox: Temporarily revert LPC PCI device revision change 2021-03-03 15:36:21 -07:00
wutno f36a0d629c
xbox: Update PCI device header revisions to match Xbox 1.0 retail 2021-03-03 13:43:42 -07:00
Matt Borgerson 6e564854fc xemu: Update copyright 2021-03-03 03:48:11 -07:00
Matt Borgerson 7dae26380e nv2a: Stall pusher for pending sync events 2021-03-03 03:41:20 -07:00
Matt Borgerson 48c1720da8 nv2a: Support PVIDEO overlays again 2021-03-01 18:40:30 -07:00
Matt Borgerson f2bfa672e6 nv2a: Specify GL_STREAM/STATIC_DRAW buffer usages 2021-02-27 15:17:17 -07:00
Matt Borgerson 0d9ff0872a nv2a: Swap glDrawRangeElements for glDrawElements 2021-02-27 15:17:17 -07:00
Matt Borgerson f89dc5c446 nv2a: Add surface download complete event 2021-02-18 21:17:30 -07:00
Matt Borgerson 7b84142c4e nv2a: Add fb sync complete event 2021-02-18 02:48:25 -07:00
Matt Borgerson 8326870f77 nv2a: Eliminate re-malloc of inline buffer 2021-02-12 18:55:06 -07:00
Matt Borgerson b536ac07d6 nv2a: Fix surface debug print field 2021-02-11 16:45:36 -07:00
Matt Borgerson 7926347c8b nv2a: Fix buffer size in surface flip 2021-02-11 16:33:47 -07:00
Matt Borgerson afed1a4835 nv2a: Clear entire PSH struct before hashing 2021-02-11 16:10:34 -07:00
Matt Borgerson a88b4cf9f5 nv2a: Minor cleanup 2021-02-11 16:10:34 -07:00
Matt Borgerson 3248c8ebbf nv2a: Fast path PGRAPH method processing 2021-02-11 15:23:47 -07:00