Commit Graph

187 Commits

Author SHA1 Message Date
Matt Borgerson a34cab69dd nv2a: Support line and poly anti-aliasing 2020-12-01 22:36:09 -07:00
Matt Borgerson 59980ba1c7 nv2a: Refactor BUMPENVMAP[_LUM] 2020-11-14 16:30:59 -07:00
Matt Borgerson 183ed86aa6 nv2a: Fix color swizzle for SZ_G8B8 and SZ_R8B8 2020-11-14 16:30:59 -07:00
Wilhelm Kovatch ff3deacae6 nv2a: Fix BUMPENVMAP[_LUM] texture modes 2020-11-14 16:27:12 -07:00
Mike bdd8375ba2 xbox: Make flash ROM memory regions writeable
In lieu of proper writeback cache emulation, mark the flash ROM memory
region(s) as writeable. This is necessary to enable later Xbox kernel
revisions which write to a single address within this region during very
early startup code and expect the written value to persist when read
back in the next instruction. See comment in patch for more details.
2020-11-12 00:05:59 -07:00
Mike e0841b9dd4 vl: Generate factory Xbox EEPROM if not provided 2020-11-06 14:54:53 -07:00
Wilhelm Kovatch 5aa0cec31b nv2a: Support 3D texture decompression in software 2020-11-01 17:55:14 -07:00
Mike 7c8a7d1d16 smbus: Add generic storage device 2020-11-01 15:52:08 -07:00
Matt Borgerson 5cc4568dfe nv2a: Force surface flush for mipmapped textures 2020-10-28 22:03:56 -07:00
Matt Borgerson 0c2368f37d nv2a: Fix broken dot texture modes 2020-10-28 22:03:56 -07:00
Matt Borgerson 3c6596975d nv2a: Implement dot texture modes and dotmapping 2020-10-28 15:59:20 -07:00
Matt Borgerson 9060302670 nv2a: Add GL error guard for glCompressedTexImage3D
This only works with DXT1/S3TC if the implementation has the
NV_texture_compression_vtc extension, otherwise GL_INVALID_ENUM will be
raised. Bail out in this case, until a software fallback is implemented.
2020-10-28 04:40:11 -07:00
Wilhelm Kovatch b9df397493 nv2a: Fix compressed 3D textures 2020-10-26 21:43:12 -07:00
Wilhelm Kovatch 518c9f38cd nv2a: Add support for compressed 3D textures 2020-10-26 19:49:47 -07:00
Matt Borgerson 6f777e73e6 nv2a: Add B8, G8B8 surface format placeholders 2020-10-26 00:20:48 -07:00
Matt Borgerson 0433c5e6bc nv2a: Simulate PCRTC_RASTER register 2020-10-25 19:52:57 -07:00
Matt Borgerson 23096561a3 nv2a: Check for same zeta/color surface offset 2020-10-25 03:39:58 -07:00
Matt Borgerson 4cd7c98025 nv2a: Unbind surfaces when flushing 2020-10-23 14:33:45 -07:00
Dalai 6936945afa nv2a: Support texture format COLOR_LU_IMAGE_DEPTH_Y16_FLOAT 2020-10-23 13:38:57 -07:00
Matt Borgerson d6e52a02c4 nv2a: Lazily synchronize surface data to/from RAM 2020-10-22 21:29:53 -07:00
Matt Borgerson 6a2f6b3637 nv2a: Download surface before blit 2020-10-18 01:37:19 -07:00
Matt Borgerson 79989a0e3f nv2a: Always use texture cache 2020-10-18 01:16:32 -07:00
Matt Borgerson a3fc742bbe nv2a: Remove nv2a_ prefix on files in nv2a dir 2020-10-18 00:55:08 -07:00
Matt Borgerson c69e58ee0f nv2a: Make files individually compilable 2020-10-18 00:55:08 -07:00
Matt Borgerson fcd3764cce nv2a: Handle color material ambient/emissive 2020-09-06 20:42:21 -07:00
Matt Borgerson bb0fdef251 nv2a: Handle alignment padding between cubemap faces 2020-09-05 16:21:21 -07:00
Matt Borgerson 6152b3688b lpc47m157: Fix object_initialize_child parameters
See "qom: Less verbose object_initialize_child()" for more info.
2020-08-26 10:28:53 -07:00
Matt Borgerson 811feab102 lpc47m157: Fix parameter order for object_property_set_bool
See "qom: Put name parameter before value / visitor parameter" for more
info.
2020-08-26 10:28:53 -07:00
Matt Borgerson d67628c5bd xbox: Replace qdev_create with qdev_new
See "qdev: New qdev_new(), qdev_realize(), etc." for more info.
2020-08-26 10:28:53 -07:00
Matt Borgerson 49b1750bac xbox,chihiro: Fixup object property errp and parameter ordering
See the following commits for more info:
- qom: Drop parameter @errp of object_property_add() & friends
- qom: Put name parameter before value / visitor parameter
2020-08-26 10:28:49 -07:00
Matt Borgerson 4c0ea64b26 xbox: Convert pci_create/qdev_init_nofail to pci_new/pci_realize_and_unref
See "pci: New pci_new(), pci_realize_and_unref() etc." for more info.
2020-08-26 10:28:08 -07:00
Matt Borgerson da51f13eaf xbox: Fixup pcspk_init with new prototype
See the following commits for more info:
- audio: rework pcspk_init()
- isa: Convert uses of isa_create() with Coccinelle
- audio: create pcspk device early
2020-08-26 10:28:02 -07:00
Matt Borgerson e7b4920731 xbox: Cleanup flash devices initialized via pc_machine_initfn 2020-08-25 15:00:07 -07:00
Matt Borgerson dc0bfda251 xid, chihiro: Remove errp from unrealize function
See "qdev: Unrealize must not fail" for more info.
2020-08-25 15:00:02 -07:00
Voxel9 c90335801c nv2a: Fix FFP texgen assertions
Should compare against channel index instead of texture stage index
2020-06-29 07:49:51 -07:00
Voxel9 3bbea5269e nv2a: Remove TEXGEN_SPHERE_MAP assertion 2020-06-29 07:49:51 -07:00
Matt Borgerson 7f4b9d5480 nvnet: Fix ringbuffer index reset, multi-desc frames, IRQ status bits 2020-06-19 05:43:14 -07:00
Matt Borgerson 60d3dc8ae1 nv2a: Add VMStateDescription 2020-06-19 05:43:14 -07:00
Matt Borgerson c9cf9a9972 nv2a: Add state flushing to PGRAPH 2020-06-19 05:43:14 -07:00
Matt Borgerson 0673010e54 nvnet: Add VMStateDescription 2020-06-19 05:43:14 -07:00
Matt Borgerson af38316719 nvnet: Set DEVICE_CATEGORY_NETWORK bit on device class 2020-06-19 05:43:14 -07:00
Matt Borgerson 1e3e81b02c nvnet: Fix and check register addrs 2020-06-19 05:43:14 -07:00
Matt Borgerson 6e4f91fabd nvnet: Use parent_obj per QEMU conventions 2020-06-19 05:43:14 -07:00
Matt Borgerson 7ecabc52a9 xid: Add VMStateDescription stub 2020-06-19 05:43:14 -07:00
Matt Borgerson f68d358b0a mcpx-apu: Add VMStateDescription 2020-06-19 05:43:14 -07:00
Matt Borgerson 97b932f08b dsp: Split DSPState structure off into new file 2020-06-19 05:43:14 -07:00
Matt Borgerson 0932e05d60 mcpx-aci: Add VMStateDescription stub 2020-06-19 05:43:14 -07:00
Matt Borgerson 92e07437fd xbox-apci: Add VMStateDescription 2020-06-19 05:43:14 -07:00
Matt Borgerson b9b0f38bbb xbox-pci: Add SMBus/LPC/PCI VMStateDescription 2020-06-19 05:43:14 -07:00
Matt Borgerson f898b5e875 nv2a: Rename PCIDevice dev to parent_obj per QEMU convention 2020-06-19 05:43:14 -07:00