Project

General

Profile

Actions

Emulator Issues #6630

closed

Real XFB (and efb2ram?) distortion on OpenGL and DX11 backends.

Added by phire over 10 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
GFX
% Done:

0%

Operating system:
N/A
Issue type:
Bug
Milestone:
Regression:
No
Relates to usability:
No
Relates to performance:
No
Easy:
No
Relates to maintainability:
No
Regression start:
Fixed in:

Description

Easiest to explain this defect with some screenshots (from the opengl backend)
Open both of these in separate tabs and switch between them.

No XFB: http://i.imgur.com/xyYboBK.png
Real XFB: http://i.imgur.com/QPjK0Pj.png

Apart from Real XFB looking just looking worse in general, you should see that the contents of the bottom right triangle are offset to the left by a pixel or so.

DirectX 11 has similar problems, but they aren't as bad as OpenGL (possibly only 0.5 pixels off)

We had a discussion on IRC and both neoBrain and degasus have noticed this, yet have been too lazy to file a bug report, so I've CCed them. According to degasus, efb2ram is affected too.

Looks like this problem is a regression since 3.5, oh and DX9 works fine.

Actions #1

Updated by phire over 10 years ago

I'm guessing either the UV coordinates or XV coordinates of the rectangle are broken.

Actions #2

Updated by nigel.harris.uk over 10 years ago

Its the same issue as I found and documented here?

https://forums.dolphin-emu.org/Thread-d3d11-ogl-video-backend-iq-comparisons

Actions #3

Updated by phire over 10 years ago

@nigel

It's possible this bug is causing the differences between (A) and (B), but hard to tell as that screenshot is less than ideal. This bug shows up best on screenshots of text and other sharp lines.

Actions #4

Updated by phire over 10 years ago

Ok, I've bisected this down to revision addd3926d91d but that should only affect the opengl backend. The DX11 bug must be someone where else.

Not sure why Triangle Strips would be any different to Triangle Fans.

Degaus, it's your commit; Do you want to fix it?

Actions #5

Updated by degasus over 10 years ago

PhireN: If this commit change anything, then I have to fix it. Can you please upload a fifo log which is affected by this commit?

Actions #6

Updated by phire over 10 years ago

Sorry, dff files don't work with real xfb.

It's super easy to replicate, just open any game, choose Real XFB and flick it on and off. Screens with text or other gui elements with straight lines work the best.

The error is easiest to notice along the diagonal between the top right and bottom left corners.

Actions #7

Updated by phire over 10 years ago

Considering the change from Triangle Fans to Triangle strips shouldn't make a difference, it might be a driver bug.

Could someone try replicating this on Intel and AMD gpus?
I've only tested this on my Nvidia gtx 260, on both linux and windows.

Actions #8

Updated by skidau over 10 years ago

For me, OGL started getting this problem again as of r0255e1391244 (on a ATI HD4870). I have not seen this issue in D3D recently.

Actions #9

Updated by phire over 10 years ago

  • Status changed from New to Fixed

This is Fixed as of r994426b3dc0e98c0bfdec727bcb3acbef90c95ef

Actions

Also available in: Atom PDF