Commit Graph

41694 Commits

Author SHA1 Message Date
aliaspider
22a776bb3e (WIIU) revert forced 480p mode. 2018-01-09 03:26:11 +01:00
aliaspider
dc7c0a570f (WIIU) revert changes to net_listen.sh 2018-01-09 03:07:41 +01:00
aliaspider
0236b52b03 (WIIU) update uniform blocks correctly for custom shaders. 2018-01-09 03:06:54 +01:00
aliaspider
42905d9bbb (WIIU) add a better converter for slang shaders. 2018-01-09 03:05:29 +01:00
twinaphex
8d7ea32e0d Add flag for debug D3D 2018-01-07 14:06:31 +01:00
twinaphex
1f0d57f5f2 (xdk360_fonts.cpp) Cleanups 2018-01-07 13:45:37 +01:00
twinaphex
58e6e2c025 Try to fix DEBUG path 2018-01-07 13:25:32 +01:00
twinaphex
0be4d7d178 Add free(file) 2018-01-07 13:13:21 +01:00
twinaphex
99699af36f (MSVC 2003) Add DEBUG 2018-01-07 12:21:01 +01:00
twinaphex
e011329728 (D3D) Buildfix 2018-01-07 12:12:41 +01:00
vgmoose
890de0e79b allow joycons to work while attached 2018-01-07 12:10:28 +01:00
twinaphex
fce097b892 (360) Buildfixes 2018-01-07 12:00:09 +01:00
twinaphex
e90a71d9f5 Create d3dx_compile_shader_from_file 2018-01-07 11:52:32 +01:00
twinaphex
3ab8f017d9 Cleanups 2018-01-07 11:06:27 +01:00
twinaphex
88d1e455e3 Add code that allows for debug D3D 2018-01-07 10:46:53 +01:00
Twinaphex
8a6d5dbe91
Merge pull request #6063 from aliaspider/master
(WIIU) add a tool to convert slang shaders.
2018-01-07 09:06:29 +01:00
aliaspider
6b24663dd9 (WIIU) add more NULL check to *_free functions. 2018-01-07 03:45:41 +01:00
aliaspider
7cc34302f4 (WIIU) check for NULL in gfd_free 2018-01-07 03:40:03 +01:00
aliaspider
517a3f801f (WIIU) add a tool to convert slang shaders. 2018-01-07 03:26:14 +01:00
Twinaphex
edd89c5ba3
Merge pull request #6061 from gblues/master
Add input validation to iosuhax
2018-01-07 00:06:05 +01:00
gblues
f9b548492e Add input validation to iosuhax
== DETAILS

I believe this should (at least partially) resolve #6025.

In my own testing, I haven't been able to reproduce the DSI error,
but I have encountered the black-screen crashes and could reliably
(but not predictably) reproduce the crash by simply switching
between cores.

Looking at the DSI error, the crash occurs within iosuhax. So, I looked
at that code.. and basically none of the input pointers are validated.

Yikes.

This commit adds pointer sanity checking to all of the iosuhax code.

== TESTING

When I did a test build, I noticed two things:

1. No more black screen crashes!
2. In lieu of the crash, it looks like the network logging dies. RA itself
   seems to continue working just fine.
2018-01-06 14:59:48 -08:00
twinaphex
df2a31b0e9 Create d3d pixel shader/vertex shader functions 2018-01-06 23:10:27 +01:00
twinaphex
d7df6b3729 Create d3d_free_vertex_shader/d3d_free_pixel_shader 2018-01-06 22:57:44 +01:00
twinaphex
e03e578212 Add d3d_set_pixel_shader 2018-01-06 22:49:36 +01:00
Andrés
7b040a52b6
Merge pull request #6059 from fr500/staging
make the hack less specific
2018-01-06 15:49:14 -05:00
twinaphex
9fe3271900 Add d3dxbuffer_release 2018-01-06 21:30:50 +01:00
twinaphex
9f6a97db76 Update 2018-01-06 21:10:30 +01:00
twinaphex
d62ada458c Add D3DFVF_CUSTOMVERTEX for D3D9 2018-01-06 20:51:41 +01:00
twinaphex
942fd7102d Start getting HLSL compiling for PC 2018-01-06 20:48:17 +01:00
twinaphex
ef05fd8a78 Cleanups 2018-01-06 19:51:29 +01:00
radius
3ee75e86c5 ake the hack less specific 2018-01-06 13:47:54 -05:00
twinaphex
553099abf1 Add d3d_check_device_type 2018-01-06 19:42:22 +01:00
Andrés
cb41b5d7d9
Merge pull request #6043 from meepingsnesroms/master
Let developers define there own bannertool and makerom, add other 3ds binarys to gitignore
2018-01-06 13:06:39 -05:00
twinaphex
9b52164b00 Create d3d_get_adapter_display_mode 2018-01-06 16:10:05 +01:00
twinaphex
23437f27b4 Cleanups 2018-01-06 15:42:47 +01:00
twinaphex
b42c92c619 Create d3d_is_windowed_enable 2018-01-06 15:32:02 +01:00
twinaphex
67220c358c Create d3d_get_color_format_front_buffer 2018-01-06 15:25:11 +01:00
twinaphex
7cc8040347 Create d3d_get_color_format 2018-01-06 15:18:02 +01:00
Twinaphex
f2ec145cb7
Merge pull request #6058 from alfrix/comments
WiiU: C89 style comments
2018-01-06 14:02:57 +01:00
Alfredo Monclus
bbd9a6566c WiiU: C89 style comments 2018-01-06 09:44:03 -03:00
twinaphex
8c20206afa Update 2018-01-06 12:35:00 +01:00
Twinaphex
d4f5f3244a
Merge pull request #6057 from gblues/master
Fix the blocking call to HIDRead()
2018-01-06 12:26:03 +01:00
gblues
560a5f0a4f Fix the blocking call to HIDRead()
== DETAILS

TIL that the "max_packet_size_*" fields in the HIDDevice struct
are actually requirements, not maximums.

The reason HIDRead() was blocking was because the HIDWrite() that
sent the activation command was silently failing.

The reason HIDWrite() was silently failing was because I was using too
small of a buffer for the device.

In this case: the Wii U GC adapter, which has a "max" tx packet size of 5.

"max" is misleading. You actually have to write all 5 bytes.

Which means: copying the 1-byte buffer to the 5-byte buffer, and writing
the 5-byte buffer via HIDWrite().

So, in summary:

- Use correct semantics for HIDWrite() so that HIDRead() can work.
- Update the OSThread struct to reflect the current knowledge over at
  WUT. It's unlikely this was actually causing a problem, but never
  hurts to be more correct.

== TESTING
I temporarily enabled the call to log_buffer() and confirmed that the
GC adapter's state is successfully being read.
2018-01-05 23:12:42 -08:00
Twinaphex
74942551ff
Merge pull request #6052 from orbea/libchdr
Backport changes from libchdr upstream
2018-01-06 07:10:36 +01:00
Twinaphex
8347b6da21
Merge pull request #6056 from gblues/master
Use the right value for BIT256_GET macro
2018-01-06 07:09:27 +01:00
gblues
5b13f85967 Use the right value for BIT256_GET macro
== DETAILS

The BIT256_GET() macro expects a bit number (from 0-255), and we're giving it
a 32-bit mask (0x000080000).

Solution:

- Define VPAD_BUTTON_xxx_BIT macros using the bit number
- Use said macro in wiiu_input.c
- organizational cleanup:

  * put VPAD_BUTTON_TOUCH into the enum in stead of as a hokey define
  * put the touch bits in the right order
  * put in placeholder enums for (currently) unused bits
2018-01-05 20:03:10 -08:00
Andrés
dedcd26495
Merge pull request #6053 from aliaspider/master
(WIIU) add preliminary multi-pass shader support.
2018-01-05 21:48:30 -05:00
aliaspider
55d262f5d8 (WIIU) add preliminary multi-pass shader support.
can load *.slangp and *.slang files. since there is no runtime compiler,
precompiled shaders (*.gsh) need to be present next to each *.slang
source file.
2018-01-06 03:39:53 +01:00
orbea
df885fce31 libchdr: Backport "backported chd_file::guess_unitbytes from upstream to set unitbytes and unitcount fields for pre-v5 headers"
Backports 13444fc72f
2018-01-05 16:08:29 -08:00
orbea
eeb6230ebd libchdr: Trivial cleanup 2018-01-05 16:08:29 -08:00