Commit Graph

41666 Commits

Author SHA1 Message Date
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
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
twinaphex
bc53b9e1b6 Update libretro-common 2018-01-05 23:32:25 +01:00
meepingsnesroms
69bb95c49b Remove -a from uname 2018-01-05 09:58:10 -08:00
twinaphex
f677a7ad7e Add HAVE_OVERLAY to qb system 2018-01-05 16:10:34 +01:00
twinaphex
8ca98e0a18 Buildfix 2018-01-05 14:14:42 +01:00
Twinaphex
f4250a1ad5 Silence unused variable warnings 2018-01-05 14:13:58 +01:00
Twinaphex
3dff396ff4
Merge pull request #6050 from aliaspider/master
(WIIU) add a frame shader to match the shaders used by gl/vulkan
2018-01-05 13:49:10 +01:00
twinaphex
08abfd9208 (LED) Fix relative path includes 2018-01-05 13:47:49 +01:00
twinaphex
f9e4ff3610 Cleanups 2018-01-05 13:28:50 +01:00
twinaphex
a516a0a3a3 Add overlay_led_driver 2018-01-05 13:27:52 +01:00
aliaspider
8e095164e0 (WIIU) add a frame shader to match the shaders used by the gl/vulkan
drivers.
2018-01-05 13:18:55 +01:00
twinaphex
751c0fe58c Sync libretro-common 2018-01-05 13:16:04 +01:00
twinaphex
cf8e7cd362 (wiiu) small style nits; declare variables at top; C comments 2018-01-05 13:09:05 +01:00
Twinaphex
af9911df8a
Merge pull request #6048 from gblues/master
Fix RETRO_DEVICE_ID_POINTER_PRESSED handling
2018-01-05 12:39:52 +01:00
gblues
34b120c269 Fix unfreed memory bug
== DETAILS
This should fix #6025.

After confirming that dummying out the init block of the HID subsystem
driver eliminated the crash, I narrowed it down to the event loop.

And that's when I noticed that, when the thread consumes the event,
it doesn't free it.

Oops.

Updated the event loop to free the event after it has been processed.

== TESTING
Local build, was able to load multiple ROMs in succession where prior
I was getting the system memory errors.

I've #if 0'd out a call to HIDRead that is still getting deadlocked,
because it slows down the startup/shutdown process.
2018-01-05 00:16:59 -08:00
Twinaphex
d3e68239df
Merge pull request #6047 from pattheaux/overlay_led
Added an overlay led driver, fixed a bug in the rpi led driver
2018-01-05 08:17:58 +01:00
gblues
3a0468523a Fix RETRO_DEVICE_ID_POINTER_PRESSED handling
== DETAILS

The joypad driver was only copying the first 16 bits when executing
get_buttons(). The touchpad button is bit 19, so as a result
RETRO_DEVICE_ID_POINTER_PRESSED would never fire.

We fix this for now by copying 32 bits.

== TESTING

Will need someone to verify. I don't  have a core handy that leverages
the pointer device state functionality.
2018-01-04 22:13:30 -08:00
meepingsnesroms
0598f2e7c8 Remove 64bit png and replace with 32 as 64 is incompatible new with bannertool 2018-01-04 17:05:54 -08:00
Twinaphex
9791712165
Merge pull request #6044 from aliaspider/master
(WIIU) add a gfd shader file reader.
2018-01-04 23:13:17 +01:00
aliaspider
3979d03cb3 (WIIU) add a gfd shader file reader. 2018-01-04 23:03:11 +01:00
meepingsnesroms
13b03ff5d3 Ignore more 3ds binary files 2018-01-04 11:54:51 -08:00
meepingsnesroms
bf47859430 Remove binarys 2018-01-04 11:46:13 -08:00
meepingsnesroms
2e0eb4df8e Allow using custom bannertool and makerom for 3ds, for wav format not found error
You can compile the latest version of bannertool for your system and have retroarch build with that instead of the builtin one that fails on windows.
2018-01-04 11:40:03 -08:00
Ian House
5311544c65 Added overlay led driver, fixed a bug in the rpi led driver 2018-01-04 12:56:57 -05:00
Twinaphex
c04b555f04
Merge pull request #6042 from aliaspider/master
(WIIU) add a sprite shader.
2018-01-04 18:00:18 +01:00
aliaspider
e653a33237 fix warning. 2018-01-04 17:38:31 +01:00
aliaspider
a7632620da (WIIU) add a sprite shader. 2018-01-04 17:38:04 +01:00
aliaspider
e63697dca7 (WIIU) fix net logger. 2018-01-04 17:21:16 +01:00
twinaphex
73c36c47e2 (XDK) Xbox buildfixes 2018-01-04 17:00:21 +01:00